diff --git a/stage0/src/Init/Data/Array/Basic.lean b/stage0/src/Init/Data/Array/Basic.lean index 279c774391..af0a6fb236 100644 --- a/stage0/src/Init/Data/Array/Basic.lean +++ b/stage0/src/Init/Data/Array/Basic.lean @@ -717,7 +717,7 @@ export Array (mkArray) | [] => 0 | _::as => as.redLength + 1 -@[inline] def List.toArray {α : Type u} (as : List α) : Array α := +@[inline, matchPattern] def List.toArray {α : Type u} (as : List α) : Array α := as.toArrayAux (Array.mkEmpty as.redLength) namespace Array diff --git a/stage0/src/Lean/Elab/Match.lean b/stage0/src/Lean/Elab/Match.lean index aa0c17b617..9c893ae34b 100644 --- a/stage0/src/Lean/Elab/Match.lean +++ b/stage0/src/Lean/Elab/Match.lean @@ -98,8 +98,8 @@ alts.map mkMatchAltView def mkInaccessible (e : Expr) : Expr := mkAnnotation `_inaccessible e -def isInaccessible? (e : Expr) : Option Expr := -isAnnotation? `_inaccessible e +def inaccessible? (e : Expr) : Option Expr := +annotation? `_inaccessible e inductive PatternVar | localVar (userName : Name) @@ -369,7 +369,7 @@ private partial def withPatternVarsAux {α} (pVars : Array PatternVar) (k : Arra private def withPatternVars {α} (pVars : Array PatternVar) (k : Array PatternVarDecl → TermElabM α) : TermElabM α := withPatternVarsAux pVars k 0 #[] -private partial def elabPatternsAux (patternStxs : Array Syntax) : Nat → Expr → Array Expr → TermElabM (Array Expr) +private partial def elabPatternsAux (patternStxs : Array Syntax) : Nat → Expr → Array Expr → TermElabM (Array Expr × Expr) | i, matchType, patterns => if h : i < patternStxs.size then do matchType ← whnf matchType; @@ -381,7 +381,7 @@ private partial def elabPatternsAux (patternStxs : Array Syntax) : Nat → Expr elabPatternsAux (i+1) (b.instantiate1 pattern) (patterns.push pattern) | _ => throwError "unexpected match type" else - pure patterns + pure (patterns, matchType) def finalizePatternDecls (patternVarDecls : Array PatternVarDecl) : TermElabM (Array LocalDecl) := patternVarDecls.foldlM @@ -400,21 +400,130 @@ patternVarDecls.foldlM pure $ decls.push decl)) #[] -private def elabPatterns (patternVarDecls : Array PatternVarDecl) (patternStxs : Array Syntax) (matchType : Expr) : TermElabM (Array Expr) := do -patterns ← withSynthesize $ elabPatternsAux patternStxs 0 matchType #[]; -patterns ← patterns.mapM instantiateMVars; -decls ← finalizePatternDecls patternVarDecls; -trace `Elab.match fun _ => MessageData.ofArray $ decls.map fun (d : LocalDecl) => (d.userName ++ " : " ++ d.type : MessageData); -trace `Elab.match fun _ => "patterns: " ++ patterns; -pure patterns +namespace ToDepElimPattern -def elabMatchAltView (alt : MatchAltView) (matchType : Expr) : TermElabM (Meta.DepElim.AltLHS × Expr) := do +structure State := +(found : NameSet := {}) + +abbrev M := StateT State TermElabM + +private def alreadyVisited (fvarId : FVarId) : M Bool := do +s ← get; +pure $ s.found.contains fvarId + +private def markAsVisited (fvarId : FVarId) : M Unit := +modify $ fun s => { s with found := s.found.insert fvarId } + +private def throwInvalidPattern {α} (e : Expr) : M α := +liftM $ throwError ("invalid pattern " ++ indentExpr e) + +private def getFieldsBinderInfoAux (ctorVal : ConstructorVal) : Nat → Expr → Array BinderInfo → Array BinderInfo +| i, Expr.forallE _ d b c, bis => + if i < ctorVal.nparams then + getFieldsBinderInfoAux (i+1) b bis + else + getFieldsBinderInfoAux (i+1) b (bis.push c.binderInfo) +| _, _, bis => bis + +private def getFieldsBinderInfo (ctorVal : ConstructorVal) : Array BinderInfo := +getFieldsBinderInfoAux ctorVal 0 ctorVal.type #[] + +partial def main (localDecls : Array LocalDecl) : Expr → M Meta.DepElim.Pattern +| e => + let isLocalDecl (fvarId : FVarId) : Bool := + localDecls.any fun d => d.fvarId == fvarId; + let mkPatternVar (fvarId : FVarId) (e : Expr) : M Meta.DepElim.Pattern := do { + condM (alreadyVisited fvarId) + (pure $ Meta.DepElim.Pattern.inaccessible e) + (do markAsVisited fvarId; pure $ Meta.DepElim.Pattern.var e.fvarId!) + }; + let mkInaccessible (e : Expr) : M Meta.DepElim.Pattern := do { + match e with + | Expr.fvar fvarId _ => + if isLocalDecl fvarId then + mkPatternVar fvarId e + else + pure $ Meta.DepElim.Pattern.inaccessible e + | _ => + pure $ Meta.DepElim.Pattern.inaccessible e + }; + match inaccessible? e with + | some t => mkInaccessible t + | none => + match e.arrayLit? with + | some (α, lits) => do + ps ← lits.mapM main; + pure $ Meta.DepElim.Pattern.arrayLit α ps + | none => + if e.isAppOfArity `namedPattern 3 then do + p ← main $ e.getArg! 2; + match e.getArg! 1 with + | Expr.fvar fvarId _ => pure $ Meta.DepElim.Pattern.as fvarId p + | _ => liftM $ throwError "unexpected occurrence of auxiliary declaration 'namedPattern'" + else if e.isNatLit || e.isStringLit || e.isCharLit then + pure $ Meta.DepElim.Pattern.val e + else if e.isFVar then do + let fvarId := e.fvarId!; + unless (isLocalDecl fvarId) $ throwInvalidPattern e; + mkPatternVar fvarId e + else do + newE ← liftM $ whnf e; + if newE != e then + main newE + else match e.getAppFn with + | Expr.const declName us _ => do + env ← liftM getEnv; + match env.find? declName with + | ConstantInfo.ctorInfo v => do + let args := e.getAppArgs; + unless (args.size == v.nparams + v.nfields) $ throwInvalidPattern e; + let params := args.extract 0 v.nparams; + let fields := args.extract v.nparams args.size; + let binderInfos := getFieldsBinderInfo v; + fields ← fields.mapIdxM fun i field => do { + let binderInfo := binderInfos.get! i; + if binderInfo.isExplicit then + main field + else + mkInaccessible field + }; + pure $ Meta.DepElim.Pattern.ctor declName us params.toList fields.toList + | _ => throwInvalidPattern e + | _ => throwInvalidPattern e + +end ToDepElimPattern + +def toDepElimPattern (localDecls : Array LocalDecl) (e : Expr) : TermElabM Meta.DepElim.Pattern := +(ToDepElimPattern.main localDecls e).run' {} + +private def elabPatterns (patternVarDecls : Array PatternVarDecl) (patternStxs : Array Syntax) (matchType : Expr) : TermElabM (Meta.DepElim.AltLHS × Expr) := do +(patterns, matchType) ← withSynthesize $ elabPatternsAux patternStxs 0 matchType #[]; +localDecls ← finalizePatternDecls patternVarDecls; +patterns ← patterns.mapM instantiateMVars; +patterns.forM $ fun pattern => when pattern.hasExprMVar $ throwError ("pattern contains metavariables " ++ indentExpr pattern); +patterns ← patterns.mapM $ toDepElimPattern localDecls; +trace `Elab.match fun _ => "patterns: " ++ MessageData.ofArray (patterns.map fun (p : Meta.DepElim.Pattern) => p.toMessageData); +pure ({ localDecls := localDecls.toList, patterns := patterns.toList }, matchType) + +def elabMatchAltView (alt : MatchAltView) (matchType : Expr) : TermElabM (Meta.DepElim.AltLHS × Expr) := +withRef alt.ref do (patternVars, alt) ← collectPatternVars alt; -withRef alt.ref $ trace `Elab.match fun _ => "patternVars: " ++ toString patternVars; +trace `Elab.match fun _ => "patternVars: " ++ toString patternVars; withPatternVars patternVars fun patternVarDecls => do - ps ← withRef alt.ref $ elabPatterns patternVarDecls alt.patterns matchType; - -- TODO - pure (⟨[], []⟩, arbitrary _) + (altLHS, matchType) ← elabPatterns patternVarDecls alt.patterns matchType; + rhs ← elabTerm alt.rhs matchType; + let xs := altLHS.localDecls.toArray.map LocalDecl.toExpr; + rhs ← if xs.isEmpty then pure $ mkThunk rhs else mkLambda xs rhs; + trace `Elab.match fun _ => "rhs: " ++ rhs; + pure (altLHS, rhs) + +def mkMotiveType (matchType : Expr) (expectedType : Expr) : TermElabM Expr := do +liftMetaM $ Meta.forallTelescopeReducing matchType fun xs matchType => do + u ← Meta.getLevel matchType; + Meta.mkForall xs (mkSort u) + +def mkElim (elimName : Name) (motiveType : Expr) (lhss : List Meta.DepElim.AltLHS) : TermElabM Meta.DepElim.ElimResult := +liftMetaM $ Meta.DepElim.mkElim elimName motiveType lhss /- ``` @@ -432,7 +541,18 @@ matchType ← elabMatchOptType stx discrStxs.size; matchAlts ← expandMacrosInPatterns $ getMatchAlts stx; discrs ← elabDiscrs discrStxs matchType expectedType; alts ← matchAlts.mapM $ fun alt => elabMatchAltView alt matchType; -throwError ("WIP type: " ++ matchType ++ "\n" ++ discrs ++ "\n" ++ toString (matchAlts.map fun alt => toString alt.patterns)) +let rhss := alts.map Prod.snd; +let altLHSS := alts.map Prod.fst; +motiveType ← mkMotiveType matchType expectedType; +motive ← liftMetaM $ Meta.forallTelescopeReducing matchType fun xs matchType => Meta.mkLambda xs matchType; +elimName ← mkAuxName `elim; +elimResult ← mkElim elimName motiveType altLHSS.toList; +-- TODO: report `eliminator errors`. +let r := mkApp elimResult.elim motive; +let r := mkAppN r discrs; +let r := mkAppN r rhss; +trace `Elab.match fun _ => "result: " ++ r; +pure r /- Auxiliary method for `expandMatchDiscr?` -/ private partial def mkMatchType (discrs : Array Syntax) : Nat → MacroM Syntax diff --git a/stage0/src/Lean/Elab/StructInst.lean b/stage0/src/Lean/Elab/StructInst.lean index f88e3d900a..843251f3d5 100644 --- a/stage0/src/Lean/Elab/StructInst.lean +++ b/stage0/src/Lean/Elab/StructInst.lean @@ -486,8 +486,8 @@ pure r def markDefaultMissing (e : Expr) : Expr := mkAnnotation `structInstDefault e -def isDefaultMissing? (e : Expr) : Option Expr := -isAnnotation? `structInstDefault e +def defaultMissing? (e : Expr) : Option Expr := +annotation? `structInstDefault e def throwFailedToElabField {α} (fieldName : Name) (structName : Name) (msgData : MessageData) : TermElabM α := throwError ("failed to elaborate field '" ++ fieldName ++ "' of '" ++ structName ++ ", " ++ msgData) @@ -581,7 +581,7 @@ partial def findDefaultMissing? (mctx : MetavarContext) : Struct → Option (Fie | FieldVal.nested struct => findDefaultMissing? struct | _ => match field.expr? with | none => unreachable! - | some expr => match isDefaultMissing? expr with + | some expr => match defaultMissing? expr with | some (Expr.mvar mvarId _) => if mctx.isExprAssigned mvarId then none else some field | _ => none @@ -669,7 +669,7 @@ partial def reduce (structNames : Array Name) : Expr → MetaM Expr pure (mkAppN f' args) | e@(Expr.mdata _ b _) => do b ← reduce b; - if (isDefaultMissing? e).isSome && !b.isMVar then + if (defaultMissing? e).isSome && !b.isMVar then pure b else pure $ e.updateMData! b @@ -696,7 +696,7 @@ partial def tryToSynthesizeDefaultAux (structs : Array Struct) (allStructNames : | none => do setMCtx mctx; tryToSynthesizeDefaultAux (i+1) (dist+1) | some val => do val ← liftMetaM $ reduce allStructNames val; - match val.find? $ fun e => (isDefaultMissing? e).isSome with + match val.find? $ fun e => (defaultMissing? e).isSome with | some _ => do setMCtx mctx; tryToSynthesizeDefaultAux (i+1) (dist+1) | none => do mvarDecl ← getMVarDecl mvarId; @@ -718,7 +718,7 @@ partial def step : Struct → M Unit | FieldVal.nested struct => step struct | _ => match field.expr? with | none => unreachable! - | some expr => match isDefaultMissing? expr with + | some expr => match defaultMissing? expr with | some (Expr.mvar mvarId _) => unlessM (liftM $ isExprMVarAssigned mvarId) $ do ctx ← read; diff --git a/stage0/src/Lean/Expr.lean b/stage0/src/Lean/Expr.lean index 06c9bc3889..f8a7f6ce0b 100644 --- a/stage0/src/Lean/Expr.lean +++ b/stage0/src/Lean/Expr.lean @@ -202,6 +202,21 @@ instance : Inhabited Expr := | proj _ _ _ d => d | localE _ _ _ d => d +def ctorName : Expr → String +| bvar _ _ => "bvar" +| fvar _ _ => "fvar" +| mvar _ _ => "mvar" +| sort _ _ => "sort" +| const _ _ _ => "const" +| app _ _ _ => "app" +| lam _ _ _ _ => "lam" +| forallE _ _ _ _ => "forallE" +| letE _ _ _ _ _ => "letE" +| lit _ _ => "lit" +| mdata _ _ _ => "mdata" +| proj _ _ _ _ => "proj" +| localE _ _ _ _ => "localE" + def hash (e : Expr) : USize := e.data.hash @@ -306,6 +321,14 @@ Expr.forallE x t b $ mkDataForBinder (mixHash 37 $ mixHash (hash t) (hash b)) (t.hasLevelParam || b.hasLevelParam) bi +/- Return `Unit -> type` -/ +def mkThunkType (type : Expr) : Expr := +mkForall Name.anonymous BinderInfo.default (Lean.mkConst `Unit) type + +/- Return `fun (_ : Unit), e` -/ +def mkThunk (type : Expr) : Expr := +mkLambda `_ BinderInfo.default (Lean.mkConst `Unit) type + def mkLet (x : Name) (t : Expr) (v : Expr) (b : Expr) (nonDep : Bool := false) : Expr := let x := x.eraseMacroScopes; Expr.letE x t v b $ mkDataForLet (mixHash 41 $ mixHash (hash t) $ mixHash (hash v) (hash b)) @@ -427,14 +450,6 @@ def isLit : Expr → Bool | lit _ _ => true | _ => false -def isNatLit : Expr → Bool -| lit (Literal.natVal _) _ => true -| _ => false - -def isStringLit : Expr → Bool -| lit (Literal.strVal _) _ => true -| _ => false - def getAppFn : Expr → Expr | app f a _ => getAppFn f | e => e @@ -512,6 +527,21 @@ def appArg! : Expr → Expr | app _ a _ => a | _ => panic! "application expected" +def isNatLit : Expr → Bool +| lit (Literal.natVal _) _ => true +| _ => false + +def natLit? : Expr → Option Nat +| lit (Literal.natVal v) _ => v +| _ => none + +def isStringLit : Expr → Bool +| lit (Literal.strVal _) _ => true +| _ => false + +def isCharLit (e : Expr) : Bool := +e.isAppOfArity `Char.ofNat 1 && e.appArg!.isNatLit + def constName! : Expr → Name | const n _ _ => n | _ => panic! "constant expected" @@ -960,9 +990,9 @@ end Expr def mkAnnotation (kind : Name) (e : Expr) : Expr := mkMData (KVMap.empty.insert kind (DataValue.ofBool true)) e -def isAnnotation? (kind : Name) (e : Expr) : Option Expr := +def annotation? (kind : Name) (e : Expr) : Option Expr := match e with -| Expr.mdata d e _ => if d.size == 1 && d.getBool kind false then some e else none +| Expr.mdata d b _ => if d.size == 1 && d.getBool kind false then some b else none | _ => none end Lean diff --git a/stage0/src/Lean/Meta/EqnCompiler/DepElim.lean b/stage0/src/Lean/Meta/EqnCompiler/DepElim.lean index a163c5c58b..710048effc 100644 --- a/stage0/src/Lean/Meta/EqnCompiler/DepElim.lean +++ b/stage0/src/Lean/Meta/EqnCompiler/DepElim.lean @@ -18,105 +18,97 @@ namespace DepElim abbrev VarId := Name inductive Pattern (internal : Bool := false) : Type -| inaccessible (ref : Syntax) (e : Expr) : Pattern -| var (ref : Syntax) (varId : VarId) : Pattern -| ctor (ref : Syntax) (ctorName : Name) (us : List Level) (params : List Expr) (fields : List Pattern) : Pattern -| val (ref : Syntax) (e : Expr) : Pattern -| arrayLit (ref : Syntax) (type : Expr) (xs : List Pattern) : Pattern -| as (ref : Syntax) (varId : VarId) (p : Pattern) : Pattern +| inaccessible (e : Expr) : Pattern +| var (varId : VarId) : Pattern +| ctor (ctorName : Name) (us : List Level) (params : List Expr) (fields : List Pattern) : Pattern +| val (e : Expr) : Pattern +| arrayLit (type : Expr) (xs : List Pattern) : Pattern +| as (varId : VarId) (p : Pattern) : Pattern abbrev IPattern := Pattern true namespace Pattern -instance {b} : Inhabited (Pattern b) := ⟨Pattern.inaccessible Syntax.missing (arbitrary _)⟩ - -def ref {b : Bool} : Pattern b → Syntax -| inaccessible r _ => r -| var r _ => r -| ctor r _ _ _ _ => r -| val r _ => r -| arrayLit r _ _ => r -| as r _ _ => r +instance {b} : Inhabited (Pattern b) := ⟨Pattern.inaccessible (arbitrary _)⟩ partial def toMessageData {b : Bool} : Pattern b → MessageData -| inaccessible _ e => ".(" ++ e ++ ")" -| var _ varId => if b then mkMVar varId else mkFVar varId -| ctor _ ctorName _ _ [] => ctorName -| ctor _ ctorName _ _ pats => "(" ++ ctorName ++ pats.foldl (fun (msg : MessageData) pat => msg ++ " " ++ toMessageData pat) Format.nil ++ ")" -| val _ e => "val!(" ++ e ++ ")" -| arrayLit _ _ pats => "#[" ++ MessageData.joinSep (pats.map toMessageData) ", " ++ "]" -| as _ varId p => (if b then mkMVar varId else mkFVar varId) ++ "@" ++toMessageData p +| inaccessible e => ".(" ++ e ++ ")" +| var varId => if b then mkMVar varId else mkFVar varId +| ctor ctorName _ _ [] => ctorName +| ctor ctorName _ _ pats => "(" ++ ctorName ++ pats.foldl (fun (msg : MessageData) pat => msg ++ " " ++ toMessageData pat) Format.nil ++ ")" +| val e => "val!(" ++ e ++ ")" +| arrayLit _ pats => "#[" ++ MessageData.joinSep (pats.map toMessageData) ", " ++ "]" +| as varId p => (if b then mkMVar varId else mkFVar varId) ++ "@" ++toMessageData p partial def toExpr {b} : Pattern b → MetaM Expr -| inaccessible _ e => pure e -| var _ varId => if b then pure (mkMVar varId) else pure (mkFVar varId) -| val _ e => pure e -| as _ _ p => toExpr p -| arrayLit _ type xs => do +| inaccessible e => pure e +| var varId => if b then pure (mkMVar varId) else pure (mkFVar varId) +| val e => pure e +| as _ p => toExpr p +| arrayLit type xs => do xs ← xs.mapM toExpr; mkArrayLit type xs -| ctor _ ctorName us params fields => do +| ctor ctorName us params fields => do fields ← fields.mapM toExpr; pure $ mkAppN (mkConst ctorName us) (params ++ fields).toArray /- Apply the free variable substitution `s` to the given (internal) pattern -/ partial def applyFVarSubst (s : FVarSubst) : Pattern true → IPattern -| inaccessible r e => inaccessible r $ s.apply e -| ctor r n us ps fs => ctor r n us (ps.map s.apply) $ fs.map applyFVarSubst -| val r e => val r $ s.apply e -| arrayLit r t xs => arrayLit r (s.apply t) $ xs.map applyFVarSubst -| var r id => var r id -| as r v p => as r v $ applyFVarSubst p +| inaccessible e => inaccessible $ s.apply e +| ctor n us ps fs => ctor n us (ps.map s.apply) $ fs.map applyFVarSubst +| val e => val $ s.apply e +| arrayLit t xs => arrayLit (s.apply t) $ xs.map applyFVarSubst +| var id => var id +| as v p => as v $ applyFVarSubst p partial def instantiateMVars : IPattern → MetaM IPattern -| inaccessible r e => inaccessible r <$> Meta.instantiateMVars e -| ctor r n us ps fs => ctor r n us <$> ps.mapM Meta.instantiateMVars <*> fs.mapM instantiateMVars -| val r e => val r <$> Meta.instantiateMVars e -| arrayLit r t xs => arrayLit r <$> Meta.instantiateMVars t <*> xs.mapM instantiateMVars -| var ref mvarId => do +| inaccessible e => inaccessible <$> Meta.instantiateMVars e +| ctor n us ps fs => ctor n us <$> ps.mapM Meta.instantiateMVars <*> fs.mapM instantiateMVars +| val e => val <$> Meta.instantiateMVars e +| arrayLit t xs => arrayLit <$> Meta.instantiateMVars t <*> xs.mapM instantiateMVars +| var mvarId => do mctx ← getMCtx; match mctx.getExprAssignment? mvarId with - | some v => inaccessible ref <$> Meta.instantiateMVars v - | none => pure (var ref mvarId) -| as ref mvarId p => do + | some v => inaccessible <$> Meta.instantiateMVars v + | none => pure (var mvarId) +| as mvarId p => do mctx ← getMCtx; match mctx.getExprAssignment? mvarId with | some v => instantiateMVars p - | none => as ref mvarId <$> instantiateMVars p + | none => as mvarId <$> instantiateMVars p partial def applyMVarRenaming (m : MVarRenaming) : Pattern true → IPattern -| inaccessible r e => inaccessible r $ m.apply e -| ctor r n us ps fs => ctor r n us (ps.map m.apply) $ fs.map applyMVarRenaming -| val r e => val r $ m.apply e -| arrayLit r t xs => arrayLit r (m.apply t) $ xs.map applyMVarRenaming -| var ref mvarId => +| inaccessible e => inaccessible $ m.apply e +| ctor n us ps fs => ctor n us (ps.map m.apply) $ fs.map applyMVarRenaming +| val e => val $ m.apply e +| arrayLit t xs => arrayLit (m.apply t) $ xs.map applyMVarRenaming +| var mvarId => match m.find? mvarId with - | some newMVarId => var ref newMVarId - | none => var ref mvarId -| as ref mvarId p => + | some newMVarId => var newMVarId + | none => var mvarId +| as mvarId p => match m.find? mvarId with - | some newMVarId => as ref newMVarId $ applyMVarRenaming p - | none => as ref mvarId $ applyMVarRenaming p + | some newMVarId => as newMVarId $ applyMVarRenaming p + | none => as mvarId $ applyMVarRenaming p partial def toIPattern (s : FVarSubst) : Pattern → IPattern -| inaccessible r e => inaccessible r $ s.apply e -| ctor r n us ps fs => ctor r n us (ps.map s.apply) $ fs.map toIPattern -| val r e => val r $ s.apply e -| arrayLit r t xs => arrayLit r (s.apply t) $ xs.map toIPattern -| var ref fvarId => +| inaccessible e => inaccessible $ s.apply e +| ctor n us ps fs => ctor n us (ps.map s.apply) $ fs.map toIPattern +| val e => val $ s.apply e +| arrayLit t xs => arrayLit (s.apply t) $ xs.map toIPattern +| var fvarId => match s.get fvarId with - | Expr.mvar mvarId _ => Pattern.var ref mvarId + | Expr.mvar mvarId _ => Pattern.var mvarId | _ => unreachable! -| as ref fvarId p => +| as fvarId p => match s.get fvarId with - | Expr.mvar mvarId _ => Pattern.as ref mvarId $ toIPattern p + | Expr.mvar mvarId _ => Pattern.as mvarId $ toIPattern p | _ => unreachable! end Pattern structure AltLHS := -(fvarDecls : List LocalDecl) -- Free variables used in the patterns. +(localDecls : List LocalDecl) -- Free variables used in the patterns. (patterns : List Pattern) -- We use `List Pattern` since we have nary match-expressions. structure Alt := @@ -289,29 +281,26 @@ private def localDeclsToMVarsAux : List LocalDecl → List MVarId → FVarSubst let s := s.insert d.fvarId mvar; localDeclsToMVarsAux ds (mvar.mvarId! :: mvars) s -private def localDeclsToMVars (fvarDecls : List LocalDecl) : MetaM (List MVarId × FVarSubst) := -localDeclsToMVarsAux fvarDecls [] {} - -private def mkThunk (type : Expr) : Expr := -Lean.mkForall `u BinderInfo.default (Lean.mkConst `Unit) type +private def localDeclsToMVars (localDecls : List LocalDecl) : MetaM (List MVarId × FVarSubst) := +localDeclsToMVarsAux localDecls [] {} private partial def withAltsAux {α} (motive : Expr) : List AltLHS → List Alt → Array Expr → (List Alt → Array Expr → MetaM α) → MetaM α | [], alts, minors, k => k alts.reverse minors | lhs::lhss, alts, minors, k => do - let xs := lhs.fvarDecls.toArray.map LocalDecl.toExpr; - minorType ← withExistingLocalDecls lhs.fvarDecls do { + let xs := lhs.localDecls.toArray.map LocalDecl.toExpr; + minorType ← withExistingLocalDecls lhs.localDecls do { args ← lhs.patterns.toArray.mapM Pattern.toExpr; let minorType := mkAppN motive args; mkForall xs minorType }; - let minorType := if minorType.isForall then minorType else mkThunk minorType; + let minorType := if minorType.isForall then minorType else mkThunkType minorType; let idx := alts.length; let minorName := (`h).appendIndexAfter (idx+1); trace! `Meta.EqnCompiler.matchDebug ("minor premise " ++ minorName ++ " : " ++ minorType); withLocalDecl minorName minorType BinderInfo.default fun minor => do let rhs := if xs.isEmpty then mkApp minor (mkConst `Unit.unit) else mkAppN minor xs; let minors := minors.push minor; - (mvars, s) ← localDeclsToMVars lhs.fvarDecls; + (mvars, s) ← localDeclsToMVars lhs.localDecls; let patterns := lhs.patterns.map (fun p => p.toIPattern s); let rhs := s.apply rhs; let alts := { idx := idx, rhs := rhs, mvars := mvars, patterns := patterns : Alt } :: alts; @@ -340,21 +329,21 @@ match p.vars with private def hasAsPattern (p : Problem) : Bool := p.alts.any fun alt => match alt.patterns with - | Pattern.as _ _ _ :: _ => true - | _ => false + | Pattern.as _ _ :: _ => true + | _ => false /- Return true if the next pattern of each remaining alternative is an inaccessible term or a variable -/ private def isVariableTransition (p : Problem) : Bool := p.alts.all fun alt => match alt.patterns with - | Pattern.inaccessible _ _ :: _ => true - | Pattern.var _ _ :: _ => true - | _ => false + | Pattern.inaccessible _ :: _ => true + | Pattern.var _ :: _ => true + | _ => false /- Return true if the next pattern of each remaining alternative is a constructor application -/ private def isConstructorTransition (p : Problem) : Bool := p.alts.all fun alt => match alt.patterns with - | Pattern.ctor _ _ _ _ _ :: _ => true - | _ => false + | Pattern.ctor _ _ _ _ :: _ => true + | _ => false /- Return true if the next pattern of the remaining alternatives contain variables AND constructors. -/ private def isCompleteTransition (p : Problem) : Bool := @@ -362,9 +351,9 @@ let (ok, hasVar, hasCtor) := p.alts.foldl (fun (acc : Bool × Bool × Bool) (alt : Alt) => let (ok, hasVar, hasCtor) := acc; match alt.patterns with - | Pattern.ctor _ _ _ _ _ :: _ => (ok, hasVar, true) - | Pattern.var _ _ :: _ => (ok, true, hasCtor) - | _ => (false, hasVar, hasCtor)) + | Pattern.ctor _ _ _ _ :: _ => (ok, hasVar, true) + | Pattern.var _ :: _ => (ok, true, hasCtor) + | _ => (false, hasVar, hasCtor)) (true, false, false); ok && hasVar && hasCtor @@ -374,9 +363,9 @@ let (ok, hasVar, hasVal) := p.alts.foldl (fun (acc : Bool × Bool × Bool) (alt : Alt) => let (ok, hasVar, hasVal) := acc; match alt.patterns with - | Pattern.val _ _ :: _ => (ok, hasVar, true) - | Pattern.var _ _ :: _ => (ok, true, hasVal) - | _ => (false, hasVar, hasVal)) + | Pattern.val _ :: _ => (ok, hasVar, true) + | Pattern.var _ :: _ => (ok, true, hasVal) + | _ => (false, hasVar, hasVal)) (true, false, false); ok && hasVar && hasVal @@ -386,9 +375,9 @@ let (ok, hasVar, hasArray) := p.alts.foldl (fun (acc : Bool × Bool × Bool) (alt : Alt) => let (ok, hasVar, hasArray) := acc; match alt.patterns with - | Pattern.arrayLit _ _ _ :: _ => (ok, hasVar, true) - | Pattern.var _ _ :: _ => (ok, true, hasArray) - | _ => (false, hasVar, hasArray)) + | Pattern.arrayLit _ _ :: _ => (ok, hasVar, true) + | Pattern.var _ :: _ => (ok, true, hasArray) + | _ => (false, hasVar, hasArray)) (true, false, false); ok && hasVar && hasArray @@ -418,7 +407,7 @@ match p.vars with | [] => unreachable! | x :: xs => do alts ← p.alts.mapM fun alt => match alt.patterns with - | Pattern.as _ mvarId p :: ps => do + | Pattern.as mvarId p :: ps => do assignExprMVar mvarId x; rhs ← instantiateMVars alt.rhs; let mvars := alt.mvars.erase mvarId; @@ -434,8 +423,8 @@ match p.vars with | [] => unreachable! | x :: xs => do alts ← p.alts.mapM fun alt => match alt.patterns with - | Pattern.inaccessible _ _ :: ps => pure { alt with patterns := ps } - | Pattern.var _ mvarId :: ps => do + | Pattern.inaccessible _ :: ps => pure { alt with patterns := ps } + | Pattern.var mvarId :: ps => do -- trace! `Meta.EqnCompiler.matchDebug (">> assign " ++ mkMVar mvarId ++ " := " ++ x); assignExprMVar mvarId x; rhs ← instantiateMVars alt.rhs; @@ -449,8 +438,8 @@ match p.vars with private def isFirstPatternCtor (ctorName : Name) (alt : Alt) : Bool := match alt.patterns with -| Pattern.ctor _ n _ _ _ :: _ => n == ctorName -| _ => false +| Pattern.ctor n _ _ _ :: _ => n == ctorName +| _ => false private def processConstructor (process : Problem → State → MetaM State) (p : Problem) (s : State) : MetaM State := do trace! `Meta.EqnCompiler.match ("constructor step"); @@ -471,8 +460,8 @@ match p.vars with let examples := examples.map $ Example.applyFVarSubst subst; let newAlts := p.alts.filter $ isFirstPatternCtor subgoal.ctorName; let newAlts := newAlts.map fun alt => match alt.patterns with - | Pattern.ctor _ _ _ _ fields :: ps => { alt with patterns := fields ++ ps } - | _ => unreachable!; + | Pattern.ctor _ _ _ fields :: ps => { alt with patterns := fields ++ ps } + | _ => unreachable!; newAlts ← newAlts.mapM fun alt => alt.applyFVarSubst subst; newAlts ← newAlts.mapM fun alt => alt.copy; process { mvarId := subgoal.mvarId, vars := newVars, alts := newAlts, examples := examples } s) @@ -481,17 +470,17 @@ match p.vars with private def throwInductiveTypeExpected {α} (type : Expr) : MetaM α := do throwOther ("failed to compile pattern matching, inductive type expected" ++ indentExpr type) -private partial def tryConstructorAux (alt : Alt) (ref : Syntax) (mvarId : MVarId) (ctorName : Name) (us : List Level) (params : Array Expr) (mvars : Array Expr) +private partial def tryConstructorAux (alt : Alt) (mvarId : MVarId) (ctorName : Name) (us : List Level) (params : Array Expr) (mvars : Array Expr) : Nat → Array MVarId → Array IPattern → MetaM Alt | i, newMVars, fields => do if h : i < mvars.size then do let mvar := mvars.get ⟨i, h⟩; e ← instantiateMVars mvar; match e with - | Expr.mvar mvarId _ => tryConstructorAux (i+1) (newMVars.push mvarId) (fields.push (Pattern.var ref mvarId)) - | _ => tryConstructorAux (i+1) newMVars (fields.push (Pattern.inaccessible ref e)) + | Expr.mvar mvarId _ => tryConstructorAux (i+1) (newMVars.push mvarId) (fields.push (Pattern.var mvarId)) + | _ => tryConstructorAux (i+1) newMVars (fields.push (Pattern.inaccessible e)) else do - let p := Pattern.ctor ref ctorName us params.toList fields.toList; + let p := Pattern.ctor ctorName us params.toList fields.toList; e ← p.toExpr; assignExprMVar mvarId e; ps ← alt.patterns.mapM Pattern.instantiateMVars; @@ -503,17 +492,17 @@ private partial def tryConstructorAux (alt : Alt) (ref : Syntax) (mvarId : MVarI mvars ← mvars.filterM fun mvarId => not <$> isExprMVarAssigned mvarId; pure { alt with rhs := rhs, mvars := mvars, patterns := ps } -private def tryConstructor? (alt : Alt) (ref : Syntax) (mvarId : MVarId) (ctorName : Name) (us : List Level) (params : Array Expr) (expectedType : Expr) +private def tryConstructor? (alt : Alt) (mvarId : MVarId) (ctorName : Name) (us : List Level) (params : Array Expr) (expectedType : Expr) : MetaM (Option Alt) := do let ctor := mkAppN (mkConst ctorName us) params; ctorType ← inferType ctor; (mvars, _, resultType) ← forallMetaTelescopeReducing ctorType; trace! `Meta.EqnCompiler.matchDebug ("ctorName: " ++ ctorName ++ ", resultType: " ++ resultType ++ ", expectedType: " ++ expectedType); condM (isDefEq resultType expectedType) - (Option.some <$> tryConstructorAux alt ref mvarId ctorName us params mvars 0 #[] #[]) + (Option.some <$> tryConstructorAux alt mvarId ctorName us params mvars 0 #[] #[]) (pure none) -private def expandAlt (alt : Alt) (ref : Syntax) (mvarId : MVarId) : MetaM (List Alt) := do +private def expandAlt (alt : Alt) (mvarId : MVarId) : MetaM (List Alt) := do env ← getEnv; mvarDecl ← getMVarDecl mvarId; let expectedType := mvarDecl.type; @@ -531,7 +520,7 @@ matchConst env expectedType.getAppFn (fun _ => throwInductiveTypeExpected expect let I := expectedType.getAppFn; let Iargs := expectedType.getAppArgs; let params := Iargs.extract 0 val.nparams; - alt? ← tryConstructor? alt ref mvarId ctor us params expectedType; + alt? ← tryConstructor? alt mvarId ctor us params expectedType; match alt? with | none => pure result | some alt => pure (alt :: result)) @@ -545,10 +534,10 @@ env ← getEnv; newAlts ← p.alts.foldlM (fun (newAlts : List Alt) alt => match alt.patterns with - | Pattern.ctor _ _ _ _ _ :: ps => pure (alt :: newAlts) - | p@(Pattern.var ref mvarId) :: ps => do + | Pattern.ctor _ _ _ _ :: ps => pure (alt :: newAlts) + | p@(Pattern.var mvarId) :: ps => do let alt := { alt with patterns := ps }; - alts ← expandAlt alt ref mvarId; + alts ← expandAlt alt mvarId; pure (alts ++ newAlts) | _ => unreachable!) []; @@ -558,14 +547,14 @@ private def collectValues (p : Problem) : Array Expr := p.alts.foldl (fun (values : Array Expr) alt => match alt.patterns with - | Pattern.val _ v :: _ => if values.contains v then values else values.push v - | _ => values) + | Pattern.val v :: _ => if values.contains v then values else values.push v + | _ => values) #[] private def isFirstPatternVar (alt : Alt) : Bool := match alt.patterns with -| Pattern.var _ _ :: _ => true -| _ => false +| Pattern.var _ :: _ => true +| _ => false private def processValue (process : Problem → State → MetaM State) (p : Problem) (s : State) : MetaM State := do trace! `Meta.EqnCompiler.match ("value step"); @@ -584,14 +573,14 @@ match p.vars with let examples := p.examples.map $ Example.replaceFVarId x.fvarId! (Example.val value); let examples := examples.map $ Example.applyFVarSubst subst; let newAlts := p.alts.filter fun alt => match alt.patterns with - | Pattern.val _ v :: _ => v == value - | Pattern.var _ _ :: _ => true + | Pattern.val v :: _ => v == value + | Pattern.var _ :: _ => true | _ => false; newAlts ← newAlts.mapM fun alt => alt.applyFVarSubst subst; newAlts ← newAlts.mapM fun alt => alt.copy; newAlts ← newAlts.mapM fun alt => match alt.patterns with - | Pattern.val _ _ :: ps => pure { alt with patterns := ps } - | Pattern.var _ mvarId :: ps => do + | Pattern.val _ :: ps => pure { alt with patterns := ps } + | Pattern.var mvarId :: ps => do assignExprMVar mvarId value; ps ← ps.mapM Pattern.instantiateMVars; rhs ← instantiateMVars alt.rhs; @@ -611,8 +600,8 @@ private def collectArraySizes (p : Problem) : Array Nat := p.alts.foldl (fun (sizes : Array Nat) alt => match alt.patterns with - | Pattern.arrayLit _ _ ps :: _ => let sz := ps.length; if sizes.contains sz then sizes else sizes.push sz - | _ => sizes) + | Pattern.arrayLit _ ps :: _ => let sz := ps.length; if sizes.contains sz then sizes else sizes.push sz + | _ => sizes) #[] private def processArrayLit (process : Problem → State → MetaM State) (p : Problem) (s : State) : MetaM State := do @@ -635,14 +624,14 @@ match p.vars with let examples := p.examples.map $ Example.replaceFVarId x.fvarId! subex; let examples := examples.map $ Example.applyFVarSubst subst; let newAlts := p.alts.filter fun alt => match alt.patterns with - | Pattern.arrayLit _ _ ps :: _ => ps.length == size - | Pattern.var _ _ :: _ => true - | _ => false; + | Pattern.arrayLit _ ps :: _ => ps.length == size + | Pattern.var _ :: _ => true + | _ => false; newAlts ← newAlts.mapM fun alt => alt.applyFVarSubst subst; newAlts ← newAlts.mapM fun alt => alt.copy; newAlts ← newAlts.mapM fun alt => match alt.patterns with - | Pattern.arrayLit _ _ pats :: ps => pure { alt with patterns := pats ++ ps } - | Pattern.var ref mvarId :: ps => do + | Pattern.arrayLit _ pats :: ps => pure { alt with patterns := pats ++ ps } + | Pattern.var mvarId :: ps => do α ← getArrayArgType x; newMVars ← size.foldM (fun _ (newMVars : List Expr) => do @@ -655,7 +644,7 @@ match p.vars with rhs ← instantiateMVars alt.rhs; let mvars := alt.mvars.erase mvarId; let mvars := newMVars.map Expr.mvarId! ++ mvars; - let ps := newMVars.map (fun mvar => Pattern.var ref mvar.mvarId!) ++ ps; + let ps := newMVars.map (fun mvar => Pattern.var mvar.mvarId!) ++ ps; pure { alt with rhs := rhs, mvars := mvars, patterns := ps } | _ => unreachable!; process { mvarId := subgoal.mvarId, vars := newVars, alts := newAlts, examples := examples } s @@ -690,18 +679,6 @@ private partial def process : Problem → State → MetaM State -- TODO: remaining cases throwOther ("not implement yet " ++ msg) -def getUnusedLevelParam (majors : List Expr) (lhss : List AltLHS) : MetaM Level := do -let s : CollectLevelParams.State := {}; -s ← majors.foldlM - (fun s major => do - major ← instantiateMVars major; - majorType ← inferType major; - majorType ← instantiateMVars majorType; - let s := collectLevelParams s major; - pure $ collectLevelParams s majorType) - s; -pure s.getUnusedLevelParam - def mkElim (elimName : Name) (motiveType : Expr) (lhss : List AltLHS) : MetaM ElimResult := withLocalDecl `motive motiveType BinderInfo.default fun motive => do forallTelescopeReducing motiveType fun majors _ => do @@ -724,8 +701,21 @@ withAlts motive lhss fun alts minors => do []; pure { elim := elim, counterExamples := s.counterExamples, unusedAltIdxs := unusedAltIdxs.reverse } + /- Helper methods for testins mkElim -/ +private def getUnusedLevelParam (majors : List Expr) (lhss : List AltLHS) : MetaM Level := do +let s : CollectLevelParams.State := {}; +s ← majors.foldlM + (fun s major => do + major ← instantiateMVars major; + majorType ← inferType major; + majorType ← instantiateMVars majorType; + let s := collectLevelParams s major; + pure $ collectLevelParams s majorType) + s; +pure s.getUnusedLevelParam + /- Return `Prop` if `inProf == true` and `Sort u` otherwise, where `u` is a fresh universe level parameter. -/ private def mkElimSort (majors : List Expr) (lhss : List AltLHS) (inProp : Bool) : MetaM Expr := if inProp then diff --git a/stage0/src/Lean/Util/CollectLevelParams.lean b/stage0/src/Lean/Util/CollectLevelParams.lean index 2b417436fc..e4882371b9 100644 --- a/stage0/src/Lean/Util/CollectLevelParams.lean +++ b/stage0/src/Lean/Util/CollectLevelParams.lean @@ -61,4 +61,7 @@ end CollectLevelParams def collectLevelParams (s : CollectLevelParams.State) (e : Expr) : CollectLevelParams.State := CollectLevelParams.main e s +def CollectLevelParams.State.collect (s : CollectLevelParams.State) (e : Expr) : CollectLevelParams.State := +collectLevelParams s e + end Lean diff --git a/stage0/src/Lean/Util/Recognizers.lean b/stage0/src/Lean/Util/Recognizers.lean index 7381628a32..9f19df3cab 100644 --- a/stage0/src/Lean/Util/Recognizers.lean +++ b/stage0/src/Lean/Util/Recognizers.lean @@ -45,19 +45,19 @@ p.app4? `HEq | Expr.forallE _ α β _ => if β.hasLooseBVars then none else some (α, β) | _ => none -partial def listLitAux : Expr → List Expr → Option (List Expr) +partial def listLitAux : Expr → List Expr → Option (Expr × List Expr) | e, acc => if e.isAppOfArity `List.nil 1 then - some acc.reverse + some (e.appArg!, acc.reverse) else if e.isAppOfArity `List.cons 3 then listLitAux e.appArg! (e.appFn!.appArg! :: acc) else none -def listLit? (e : Expr) : Option (List Expr) := +def listLit? (e : Expr) : Option (Expr × List Expr) := listLitAux e [] -def arrayLit? (e : Expr) : Option (List Expr) := +def arrayLit? (e : Expr) : Option (Expr × List Expr) := match e.app2? `List.toArray with | some (_, e) => e.listLit? | none => none diff --git a/stage0/stdlib/Lean/Compiler/ConstFolding.c b/stage0/stdlib/Lean/Compiler/ConstFolding.c index 70f360ae4a..f0b584f396 100644 --- a/stage0/stdlib/Lean/Compiler/ConstFolding.c +++ b/stage0/stdlib/Lean/Compiler/ConstFolding.c @@ -63,7 +63,6 @@ lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Compiler_boolFoldFns___closed__5; lean_object* l_Lean_Compiler_foldUIntSub(uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldToNat___rarg(lean_object*); -lean_object* l_Lean_Compiler_unFoldFns___closed__12; lean_object* l_Lean_Compiler_natFoldFns___closed__19; lean_object* l_Nat_decLt___boxed(lean_object*, lean_object*); lean_object* l_Lean_Compiler_foldNatDecLe___closed__2; @@ -90,7 +89,6 @@ lean_object* l_Lean_Compiler_foldNatMul___boxed(lean_object*); extern lean_object* l_uint64Sz___closed__1; lean_object* l_Lean_Compiler_binFoldFns___closed__2; lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__22; -lean_object* l_Lean_Compiler_unFoldFns___closed__11; lean_object* l_Lean_Compiler_uintFoldToNatFns; lean_object* l_Lean_Compiler_foldNatDecLe___closed__1; uint32_t lean_uint32_of_nat(lean_object*); @@ -161,7 +159,6 @@ lean_object* l_Lean_Compiler_numScalarTypes___closed__15; lean_object* l_Lean_Compiler_numScalarTypes___closed__14; lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__12; extern lean_object* l_Nat_HasAdd___closed__1; -lean_object* l_Lean_Compiler_numScalarTypes___closed__28; lean_object* l_List_foldl___main___at_Lean_Compiler_uintBinFoldFns___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Compiler_boolFoldFns___closed__8; lean_object* l_Lean_Compiler_foldUIntMod___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*); @@ -188,6 +185,7 @@ lean_object* l_Lean_Compiler_mkLcProof(lean_object*); lean_object* l_Lean_Compiler_mkNatLt___closed__10; lean_object* l_Lean_Compiler_numScalarTypes___closed__9; lean_object* l_Lean_Compiler_mkUIntTypeName(lean_object*); +extern lean_object* l_Lean_Expr_isCharLit___closed__3; lean_object* l_Lean_Compiler_unFoldFns___closed__2; lean_object* l_Lean_Compiler_boolFoldFns___closed__2; lean_object* l_Lean_Compiler_boolFoldFns___closed__4; @@ -315,13 +313,13 @@ lean_object* l_Lean_Compiler_numScalarTypes___closed__11; lean_object* l_Lean_Compiler_mkNatLt___closed__8; extern lean_object* l_Lean_levelOne; lean_object* l_Lean_Compiler_foldUIntMul(uint8_t, lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_isCharLit___closed__4; lean_object* l_Lean_Compiler_foldNatDecEq___closed__2; lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__6; lean_object* lean_get_num_lit(lean_object*); lean_object* l_Lean_Compiler_foldNatDecLt___closed__1; lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Compiler_boolFoldFns; -lean_object* l_Lean_Compiler_unFoldFns___closed__10; lean_object* l_Lean_Compiler_getBoolLit___closed__1; lean_object* l_Lean_Compiler_findUnFoldFn___boxed(lean_object*); lean_object* l_Lean_Compiler_preUIntBinFoldFns___closed__10; @@ -375,22 +373,14 @@ return x_2; lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__2() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ofNat"); -return x_1; -} -} -lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Compiler_numScalarTypes___closed__1; -x_2 = l_Lean_Compiler_numScalarTypes___closed__2; +x_2 = l_Lean_Expr_isCharLit___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__4() { +lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__3() { _start: { lean_object* x_1; @@ -398,24 +388,24 @@ x_1 = lean_mk_string("toNat"); return x_1; } } -lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__5() { +lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Compiler_numScalarTypes___closed__1; -x_2 = l_Lean_Compiler_numScalarTypes___closed__4; +x_2 = l_Lean_Compiler_numScalarTypes___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__6() { +lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = lean_unsigned_to_nat(8u); x_2 = l_Lean_Compiler_numScalarTypes___closed__1; -x_3 = l_Lean_Compiler_numScalarTypes___closed__3; -x_4 = l_Lean_Compiler_numScalarTypes___closed__5; +x_3 = l_Lean_Compiler_numScalarTypes___closed__2; +x_4 = l_Lean_Compiler_numScalarTypes___closed__4; x_5 = lean_unsigned_to_nat(256u); x_6 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_6, 0, x_1); @@ -426,7 +416,7 @@ lean_ctor_set(x_6, 4, x_5); return x_6; } } -lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__7() { +lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__6() { _start: { lean_object* x_1; lean_object* x_2; @@ -435,12 +425,22 @@ x_2 = l_Lean_Compiler_mkUIntTypeName(x_1); return x_2; } } +lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Compiler_numScalarTypes___closed__6; +x_2 = l_Lean_Expr_isCharLit___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_numScalarTypes___closed__7; -x_2 = l_Lean_Compiler_numScalarTypes___closed__2; +x_1 = l_Lean_Compiler_numScalarTypes___closed__6; +x_2 = l_Lean_Compiler_numScalarTypes___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -448,21 +448,11 @@ return x_3; lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__9() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_numScalarTypes___closed__7; -x_2 = l_Lean_Compiler_numScalarTypes___closed__4; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__10() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = lean_unsigned_to_nat(16u); -x_2 = l_Lean_Compiler_numScalarTypes___closed__7; -x_3 = l_Lean_Compiler_numScalarTypes___closed__8; -x_4 = l_Lean_Compiler_numScalarTypes___closed__9; +x_2 = l_Lean_Compiler_numScalarTypes___closed__6; +x_3 = l_Lean_Compiler_numScalarTypes___closed__7; +x_4 = l_Lean_Compiler_numScalarTypes___closed__8; x_5 = lean_unsigned_to_nat(65536u); x_6 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_6, 0, x_1); @@ -473,7 +463,7 @@ lean_ctor_set(x_6, 4, x_5); return x_6; } } -lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__11() { +lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__10() { _start: { lean_object* x_1; lean_object* x_2; @@ -482,12 +472,22 @@ x_2 = l_Lean_Compiler_mkUIntTypeName(x_1); return x_2; } } +lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Compiler_numScalarTypes___closed__10; +x_2 = l_Lean_Expr_isCharLit___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_numScalarTypes___closed__11; -x_2 = l_Lean_Compiler_numScalarTypes___closed__2; +x_1 = l_Lean_Compiler_numScalarTypes___closed__10; +x_2 = l_Lean_Compiler_numScalarTypes___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -495,21 +495,11 @@ return x_3; lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__13() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_numScalarTypes___closed__11; -x_2 = l_Lean_Compiler_numScalarTypes___closed__4; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__14() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = lean_unsigned_to_nat(32u); -x_2 = l_Lean_Compiler_numScalarTypes___closed__11; -x_3 = l_Lean_Compiler_numScalarTypes___closed__12; -x_4 = l_Lean_Compiler_numScalarTypes___closed__13; +x_2 = l_Lean_Compiler_numScalarTypes___closed__10; +x_3 = l_Lean_Compiler_numScalarTypes___closed__11; +x_4 = l_Lean_Compiler_numScalarTypes___closed__12; x_5 = lean_cstr_to_nat("4294967296"); x_6 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_6, 0, x_1); @@ -520,7 +510,7 @@ lean_ctor_set(x_6, 4, x_5); return x_6; } } -lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__15() { +lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__14() { _start: { lean_object* x_1; lean_object* x_2; @@ -529,12 +519,22 @@ x_2 = l_Lean_Compiler_mkUIntTypeName(x_1); return x_2; } } +lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Compiler_numScalarTypes___closed__14; +x_2 = l_Lean_Expr_isCharLit___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__16() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_numScalarTypes___closed__15; -x_2 = l_Lean_Compiler_numScalarTypes___closed__2; +x_1 = l_Lean_Compiler_numScalarTypes___closed__14; +x_2 = l_Lean_Compiler_numScalarTypes___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -542,21 +542,11 @@ return x_3; lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__17() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_numScalarTypes___closed__15; -x_2 = l_Lean_Compiler_numScalarTypes___closed__4; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__18() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = lean_unsigned_to_nat(64u); -x_2 = l_Lean_Compiler_numScalarTypes___closed__15; -x_3 = l_Lean_Compiler_numScalarTypes___closed__16; -x_4 = l_Lean_Compiler_numScalarTypes___closed__17; +x_2 = l_Lean_Compiler_numScalarTypes___closed__14; +x_3 = l_Lean_Compiler_numScalarTypes___closed__15; +x_4 = l_Lean_Compiler_numScalarTypes___closed__16; x_5 = l_uint64Sz___closed__1; x_6 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_6, 0, x_1); @@ -567,7 +557,7 @@ lean_ctor_set(x_6, 4, x_5); return x_6; } } -lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__19() { +lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__18() { _start: { lean_object* x_1; @@ -575,12 +565,22 @@ x_1 = lean_mk_string("USize"); return x_1; } } -lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__20() { +lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Compiler_numScalarTypes___closed__19; +x_2 = l_Lean_Compiler_numScalarTypes___closed__18; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__20() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Compiler_numScalarTypes___closed__19; +x_2 = l_Lean_Expr_isCharLit___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -589,8 +589,8 @@ lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__21() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_numScalarTypes___closed__20; -x_2 = l_Lean_Compiler_numScalarTypes___closed__2; +x_1 = l_Lean_Compiler_numScalarTypes___closed__19; +x_2 = l_Lean_Compiler_numScalarTypes___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -598,21 +598,11 @@ return x_3; lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__22() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_numScalarTypes___closed__20; -x_2 = l_Lean_Compiler_numScalarTypes___closed__4; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__23() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_System_Platform_numBits; -x_2 = l_Lean_Compiler_numScalarTypes___closed__20; -x_3 = l_Lean_Compiler_numScalarTypes___closed__21; -x_4 = l_Lean_Compiler_numScalarTypes___closed__22; +x_2 = l_Lean_Compiler_numScalarTypes___closed__19; +x_3 = l_Lean_Compiler_numScalarTypes___closed__20; +x_4 = l_Lean_Compiler_numScalarTypes___closed__21; x_5 = l_usizeSz___closed__1; x_6 = lean_alloc_ctor(0, 5, 0); lean_ctor_set(x_6, 0, x_1); @@ -623,23 +613,35 @@ lean_ctor_set(x_6, 4, x_5); return x_6; } } -lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__24() { +lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Compiler_numScalarTypes___closed__23; +x_2 = l_Lean_Compiler_numScalarTypes___closed__22; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } +lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__24() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Compiler_numScalarTypes___closed__17; +x_2 = l_Lean_Compiler_numScalarTypes___closed__23; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_numScalarTypes___closed__18; +x_1 = l_Lean_Compiler_numScalarTypes___closed__13; x_2 = l_Lean_Compiler_numScalarTypes___closed__24; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -651,7 +653,7 @@ lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__26() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_numScalarTypes___closed__14; +x_1 = l_Lean_Compiler_numScalarTypes___closed__9; x_2 = l_Lean_Compiler_numScalarTypes___closed__25; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -663,7 +665,7 @@ lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_numScalarTypes___closed__10; +x_1 = l_Lean_Compiler_numScalarTypes___closed__5; x_2 = l_Lean_Compiler_numScalarTypes___closed__26; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -671,23 +673,11 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l_Lean_Compiler_numScalarTypes___closed__28() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_numScalarTypes___closed__6; -x_2 = l_Lean_Compiler_numScalarTypes___closed__27; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} lean_object* _init_l_Lean_Compiler_numScalarTypes() { _start: { lean_object* x_1; -x_1 = l_Lean_Compiler_numScalarTypes___closed__28; +x_1 = l_Lean_Compiler_numScalarTypes___closed__27; return x_1; } } @@ -1025,7 +1015,7 @@ lean_object* l_Lean_Compiler_mkUInt32Lit(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Compiler_numScalarTypes___closed__14; +x_2 = l_Lean_Compiler_numScalarTypes___closed__13; x_3 = l_Lean_Compiler_mkUIntLit(x_2, x_1); return x_3; } @@ -4071,7 +4061,7 @@ lean_object* _init_l_Lean_Compiler_unFoldFns___closed__5() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Char"); +x_1 = lean_alloc_closure((void*)(l_Lean_Compiler_foldCharOfNat___boxed), 2, 0); return x_1; } } @@ -4079,9 +4069,11 @@ lean_object* _init_l_Lean_Compiler_unFoldFns___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); +x_1 = l_Lean_Expr_isCharLit___closed__4; x_2 = l_Lean_Compiler_unFoldFns___closed__5; -x_3 = lean_name_mk_string(x_1, x_2); +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); return x_3; } } @@ -4089,61 +4081,31 @@ lean_object* _init_l_Lean_Compiler_unFoldFns___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_unFoldFns___closed__6; -x_2 = l_Lean_Compiler_numScalarTypes___closed__2; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Compiler_unFoldFns___closed__8() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Compiler_foldCharOfNat___boxed), 2, 0); -return x_1; -} -} -lean_object* _init_l_Lean_Compiler_unFoldFns___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_unFoldFns___closed__7; -x_2 = l_Lean_Compiler_unFoldFns___closed__8; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Compiler_unFoldFns___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Compiler_unFoldFns___closed__9; +x_2 = l_Lean_Compiler_unFoldFns___closed__6; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l_Lean_Compiler_unFoldFns___closed__11() { +lean_object* _init_l_Lean_Compiler_unFoldFns___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Compiler_unFoldFns___closed__4; -x_2 = l_Lean_Compiler_unFoldFns___closed__10; +x_2 = l_Lean_Compiler_unFoldFns___closed__7; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l_Lean_Compiler_unFoldFns___closed__12() { +lean_object* _init_l_Lean_Compiler_unFoldFns___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Compiler_unFoldFns___closed__11; +x_1 = l_Lean_Compiler_unFoldFns___closed__8; x_2 = l_Lean_Compiler_uintFoldToNatFns; x_3 = l_List_append___rarg(x_1, x_2); return x_3; @@ -4153,7 +4115,7 @@ lean_object* _init_l_Lean_Compiler_unFoldFns() { _start: { lean_object* x_1; -x_1 = l_Lean_Compiler_unFoldFns___closed__12; +x_1 = l_Lean_Compiler_unFoldFns___closed__9; return x_1; } } @@ -4454,8 +4416,6 @@ l_Lean_Compiler_numScalarTypes___closed__26 = _init_l_Lean_Compiler_numScalarTyp lean_mark_persistent(l_Lean_Compiler_numScalarTypes___closed__26); l_Lean_Compiler_numScalarTypes___closed__27 = _init_l_Lean_Compiler_numScalarTypes___closed__27(); lean_mark_persistent(l_Lean_Compiler_numScalarTypes___closed__27); -l_Lean_Compiler_numScalarTypes___closed__28 = _init_l_Lean_Compiler_numScalarTypes___closed__28(); -lean_mark_persistent(l_Lean_Compiler_numScalarTypes___closed__28); l_Lean_Compiler_numScalarTypes = _init_l_Lean_Compiler_numScalarTypes(); lean_mark_persistent(l_Lean_Compiler_numScalarTypes); l_Lean_Compiler_foldUIntAdd___closed__1 = _init_l_Lean_Compiler_foldUIntAdd___closed__1(); @@ -4736,12 +4696,6 @@ l_Lean_Compiler_unFoldFns___closed__8 = _init_l_Lean_Compiler_unFoldFns___closed lean_mark_persistent(l_Lean_Compiler_unFoldFns___closed__8); l_Lean_Compiler_unFoldFns___closed__9 = _init_l_Lean_Compiler_unFoldFns___closed__9(); lean_mark_persistent(l_Lean_Compiler_unFoldFns___closed__9); -l_Lean_Compiler_unFoldFns___closed__10 = _init_l_Lean_Compiler_unFoldFns___closed__10(); -lean_mark_persistent(l_Lean_Compiler_unFoldFns___closed__10); -l_Lean_Compiler_unFoldFns___closed__11 = _init_l_Lean_Compiler_unFoldFns___closed__11(); -lean_mark_persistent(l_Lean_Compiler_unFoldFns___closed__11); -l_Lean_Compiler_unFoldFns___closed__12 = _init_l_Lean_Compiler_unFoldFns___closed__12(); -lean_mark_persistent(l_Lean_Compiler_unFoldFns___closed__12); l_Lean_Compiler_unFoldFns = _init_l_Lean_Compiler_unFoldFns(); lean_mark_persistent(l_Lean_Compiler_unFoldFns); return lean_mk_io_result(lean_box(0)); diff --git a/stage0/stdlib/Lean/Compiler/InitAttr.c b/stage0/stdlib/Lean/Compiler/InitAttr.c index f9e87a9b5f..69683de9c6 100644 --- a/stage0/stdlib/Lean/Compiler/InitAttr.c +++ b/stage0/stdlib/Lean/Compiler/InitAttr.c @@ -48,8 +48,8 @@ lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_fold___main___at_Lean_mkInitAttr___spec__2___boxed(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); 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*); +extern lean_object* l_Lean_mkThunkType___closed__1; lean_object* l___private_Lean_Compiler_InitAttr_2__isUnitType___boxed(lean_object*); -lean_object* l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; lean_object* l_Lean_mkInitAttr(lean_object*); extern lean_object* l_Char_HasRepr___closed__1; lean_object* l_Std_RBNode_fold___main___at_Lean_mkInitAttr___spec__2(lean_object*, lean_object*); @@ -203,14 +203,6 @@ lean_dec(x_1); return x_2; } } -lean_object* _init_l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Unit"); -return x_1; -} -} uint8_t l___private_Lean_Compiler_InitAttr_2__isUnitType(lean_object* x_1) { _start: { @@ -226,7 +218,7 @@ if (lean_obj_tag(x_3) == 0) { lean_object* x_4; lean_object* x_5; uint8_t x_6; x_4 = lean_ctor_get(x_2, 1); -x_5 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_5 = l_Lean_mkThunkType___closed__1; x_6 = lean_string_dec_eq(x_4, x_5); return x_6; } @@ -2160,8 +2152,6 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l___private_Lean_Compiler_InitAttr_1__getIOTypeArg___closed__1 = _init_l___private_Lean_Compiler_InitAttr_1__getIOTypeArg___closed__1(); lean_mark_persistent(l___private_Lean_Compiler_InitAttr_1__getIOTypeArg___closed__1); -l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1 = _init_l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1(); -lean_mark_persistent(l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1); l___private_Init_Data_Array_QSort_1__partitionAux___main___at_Lean_mkInitAttr___spec__4___closed__1 = _init_l___private_Init_Data_Array_QSort_1__partitionAux___main___at_Lean_mkInitAttr___spec__4___closed__1(); lean_mark_persistent(l___private_Init_Data_Array_QSort_1__partitionAux___main___at_Lean_mkInitAttr___spec__4___closed__1); l_Lean_registerParametricAttribute___at_Lean_mkInitAttr___spec__1___closed__1 = _init_l_Lean_registerParametricAttribute___at_Lean_mkInitAttr___spec__1___closed__1(); diff --git a/stage0/stdlib/Lean/Delaborator.c b/stage0/stdlib/Lean/Delaborator.c index 16bee9ae12..76a363a682 100644 --- a/stage0/stdlib/Lean/Delaborator.c +++ b/stage0/stdlib/Lean/Delaborator.c @@ -15,6 +15,7 @@ extern "C" { #endif extern lean_object* l_Lean_mkHole___closed__3; lean_object* l_List_firstM___main___at_Lean_Delaborator_delabFor___main___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_ctorName___closed__7; extern lean_object* l_Lean_Name_toString___closed__1; lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Delaborator_delabForall___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_withAppFn___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -23,7 +24,6 @@ lean_object* l_Lean_Delaborator_withProj(lean_object*); lean_object* l_Lean_Level_quote___main(lean_object*); lean_object* l_Lean_Delaborator_delabProjectionApp___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_quote___main___lambda__1___closed__6; -lean_object* l_Lean_Delaborator_getExprKind___closed__27; lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Delaborator_delabFor___main___spec__5(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_explicit___elambda__1___closed__2; lean_object* l_Lean_Delaborator_getExprKind___closed__9; @@ -39,6 +39,7 @@ lean_object* l_Lean_mkTermIdFromIdent(lean_object*); lean_object* l_Lean_LocalDecl_userName(lean_object*); extern lean_object* l_Lean_Nat_HasQuote___closed__2; lean_object* l_unreachable_x21___rarg(lean_object*); +extern lean_object* l_Lean_mkThunk___closed__1; lean_object* l_Lean_Delaborator_DelabM_inhabited(lean_object*); lean_object* l_Lean_Delaborator_getExpr___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_getExpr(lean_object*, lean_object*, lean_object*); @@ -62,7 +63,6 @@ lean_object* l_Lean_Delaborator_withBindingBody___rarg(lean_object*, lean_object extern lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___closed__10; lean_object* l___regBuiltin_Lean_Delaborator_delabAppImplicit___closed__1; lean_object* l_Array_findIdxAux___main___at_Lean_Delaborator_annotatePos___main___spec__1(lean_object*, lean_object*); -lean_object* l_Lean_Delaborator_getExprKind___closed__31; lean_object* l_Lean_Delaborator_delabLam(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_whenNotPPOption(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getPPBinderTypes___closed__3; @@ -81,6 +81,7 @@ lean_object* l_Lean_ppOptions___closed__1; extern lean_object* l_Lean_Level_LevelToFormat_Result_format___main___closed__1; extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Delaborator_getImplicitParams___closed__1; +extern lean_object* l_Lean_Expr_ctorName___closed__1; lean_object* l_Lean_Delaborator_withAppArg(lean_object*); lean_object* l_Lean_Delaborator_delabCoeFun(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_descend___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -89,15 +90,18 @@ extern lean_object* l_Lean_Parser_Level_max___elambda__1___closed__1; lean_object* l_Lean_Level_dec___main(lean_object*); lean_object* l_Lean_Level_quote___main___closed__5; extern lean_object* l_Lean_Parser_Level_num___elambda__1___closed__1; +extern lean_object* l_Lean_Expr_ctorName___closed__2; lean_object* l_ReaderT_failure___at_Lean_Delaborator_DelabM_inhabited___spec__1___rarg(lean_object*); lean_object* l_Lean_Delaborator_mkDelabAttribute___closed__10; lean_object* l_Lean_Delaborator_delabProjectionApp___lambda__1___closed__1; lean_object* l_Lean_Delaborator_delabLam___lambda__1___closed__3; +extern lean_object* l_Lean_Expr_ctorName___closed__8; lean_object* l_Std_PersistentHashMap_findAtAux___main___at_Lean_Delaborator_delabFor___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Delaborator_hasIdent(lean_object*, lean_object*); lean_object* l_Lean_Delaborator_delabCoe___closed__1; lean_object* l_Lean_Delaborator_getExprKind___closed__23; lean_object* l_Lean_Delaborator_withAppFnArgs___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_ctorName___closed__4; lean_object* l_Lean_Delaborator_DelabM_inhabited___closed__1; extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); @@ -124,7 +128,6 @@ extern lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__1; lean_object* l_Lean_Level_HasQuote___closed__1; lean_object* l___regBuiltin_Lean_Delaborator_delabOfNat(lean_object*); lean_object* l_Lean_Level_quote___main___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__2; lean_object* l_Lean_Level_HasQuote; lean_object* l___regBuiltin_Lean_Delaborator_delabAppImplicit(lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -142,11 +145,9 @@ extern lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__4; extern lean_object* l_Lean_mkAppStx___closed__7; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* lean_get_projection_info(lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__5; uint8_t l_Lean_getPPBinderTypes(lean_object*); lean_object* l_Lean_Delaborator_delabAppImplicit(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_failure___at_Lean_Delaborator_DelabM_inhabited___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Delaborator_getExprKind___closed__32; lean_object* l_Lean_Delaborator_getExprKind___closed__10; lean_object* l_Lean_Delaborator_delabSort___closed__3; extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; @@ -155,7 +156,6 @@ lean_object* l_Lean_Level_quote___main___lambda__1___boxed(lean_object*, lean_ob extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__1; lean_object* l_Lean_Level_quote___main___lambda__1___closed__1; lean_object* l_Lean_Level_quote___main___closed__6; -extern lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__2; lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); lean_object* l_Lean_Delaborator_delabSort___closed__7; lean_object* l_Lean_Delaborator_annotateCurPos(lean_object*, lean_object*, lean_object*, lean_object*); @@ -228,7 +228,6 @@ lean_object* l_Nat_repr(lean_object*); uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); extern lean_object* l_Lean_Level_LevelToFormat_Result_format___main___closed__5; extern lean_object* l_Lean_Parser_Term_namedHole___elambda__1___closed__2; -lean_object* l_Lean_Delaborator_getExprKind___closed__26; lean_object* l_Lean_Delaborator_delabFor___main(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2; lean_object* l_Lean_Syntax_getId(lean_object*); @@ -242,12 +241,14 @@ lean_object* l_ReaderT_pure___at_Lean_Delaborator_DelabM_monadQuotation___spec__ extern lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__2; lean_object* l_Lean_Delaborator_delabLam___lambda__1___closed__2; extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; +extern lean_object* l_Lean_Expr_ctorName___closed__3; extern size_t l_Std_PersistentHashMap_insertAux___main___rarg___closed__2; lean_object* l_Lean_Delaborator_getPPOption(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Delaborator_2__delabBinders___main___closed__1; lean_object* l_Lean_Level_quote___main___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_delabForall___closed__1; extern lean_object* l___private_Lean_Meta_RecursorInfo_5__getMajorPosDepElim___closed__5; +extern lean_object* l_Lean_Expr_isCharLit___closed__3; lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Delaborator_delabForall___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_numLitKind___closed__2; lean_object* l_Std_RBNode_find___main___at_Lean_Delaborator_getPPOption___spec__1___boxed(lean_object*, lean_object*); @@ -263,7 +264,6 @@ size_t lean_usize_modn(size_t, lean_object*); lean_object* l_Lean_Delaborator_delabProjectionApp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_delabAppExplicit___lambda__1___closed__1; extern lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__2; -lean_object* l_Lean_Delaborator_getExprKind___closed__33; lean_object* l_Lean_Level_quote___main___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConst(lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); @@ -301,13 +301,13 @@ lean_object* l_Lean_getPPCoercions___boxed(lean_object*); uint8_t l_Lean_Syntax_isAtom(lean_object*); lean_object* l_Lean_Delaborator_delabCoe___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; -extern lean_object* l_Lean_Meta_mkAuxName___closed__1; lean_object* l_Lean_Delaborator_delabAppImplicit___closed__6; lean_object* l_Lean_Delaborator_delabProjectionApp___closed__2; lean_object* l_Lean_Delaborator_getExprKind___closed__5; lean_object* l_Lean_Delaborator_getExprKind___closed__22; extern lean_object* l_Lean_Parser_Level_hole___elambda__1___closed__1; extern lean_object* l_Lean_mkAppStx___closed__3; +extern lean_object* l_Lean_Expr_ctorName___closed__9; lean_object* l_Std_PersistentHashMap_findAux___main___at_Lean_Delaborator_delabFor___main___spec__3(lean_object*, size_t, lean_object*); extern lean_object* l_Lean_Parser_Command_openRenamingItem___elambda__1___closed__5; lean_object* l_Lean_Delaborator_getPPOption___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -328,6 +328,7 @@ lean_object* l_Lean_Level_quote___main___lambda__1___closed__4; uint8_t l_Lean_BinderInfo_beq(uint8_t, uint8_t); lean_object* l_Lean_Delaborator_mkDelabAttribute___closed__2; lean_object* l_Lean_Expr_bindingName_x21(lean_object*); +extern lean_object* l_Lean_Expr_ctorName___closed__10; lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_Lean_ppOptions___closed__2; @@ -369,7 +370,6 @@ lean_object* l_Lean_Delaborator_mkDelabAttribute___closed__1; lean_object* l_Lean_getPPAll___closed__2; lean_object* l_Lean_getPPUniverses___closed__1; lean_object* l_Lean_getPPUniverses___boxed(lean_object*); -extern lean_object* l_Lean_Meta_evalNat___main___closed__8; lean_object* l_Lean_Delaborator_delabOfNat___closed__3; lean_object* l_Lean_mkStxStrLit(lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); @@ -408,11 +408,13 @@ uint8_t l_Lean_Expr_binderInfo(lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_getState___rarg(lean_object*, lean_object*); lean_object* l_Lean_Level_quote___main___lambda__9___closed__2; +extern lean_object* l_Lean_Expr_ctorName___closed__12; lean_object* l_Lean_Delaborator_delabConst___closed__4; lean_object* l_Lean_Delaborator_delabAppImplicit___closed__4; lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Delaborator_delabFor___main___spec__5___boxed(lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Delaborator_delabLam(lean_object*); lean_object* l_Lean_Level_quote___main___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_ctorName___closed__6; lean_object* l_Lean_Delaborator_delabSort___closed__8; lean_object* l_Array_anyRangeMAux___main___at_Lean_Delaborator_delabLam___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Delaborator_1__shouldGroupWithNext(lean_object*, lean_object*, lean_object*); @@ -436,6 +438,7 @@ lean_object* l_Std_PersistentHashMap_find_x3f___at_Lean_Delaborator_delabFor___m lean_object* l_Lean_Delaborator_mkDelabAttribute___closed__11; lean_object* l_Lean_Delaborator_delabProj(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Delaborator_withAppFnArgs___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Expr_ctorName___closed__11; lean_object* l_Lean_Delaborator_withAppArg___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__9; lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); @@ -451,10 +454,10 @@ lean_object* l_Lean_Delaborator_delabAttribute___closed__5; lean_object* l_Lean_Delaborator_delabCoe(lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Delaborator_DelabM_monadQuotation___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Delaborator_1__shouldGroupWithNext___closed__1; +extern lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__4; lean_object* l_Lean_Delaborator_getImplicitParams___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); lean_object* l_Lean_Delaborator_withAppFnArgs___main(lean_object*); -lean_object* l_Lean_Delaborator_getExprKind___closed__30; uint8_t l_Lean_getPPAll(lean_object*); lean_object* l_Lean_Delaborator_getExprKind___closed__3; lean_object* l_Lean_Delaborator_delabOfNat___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -462,7 +465,6 @@ extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer_ lean_object* l_Lean_Delaborator_getExprKind___closed__18; lean_object* l_Lean_Delaborator_delabAttribute___closed__3; lean_object* l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(lean_object*); -lean_object* l_Lean_Delaborator_getExprKind___closed__28; lean_object* l_Lean_Delaborator_getExprKind___closed__14; extern lean_object* l_Lean_mkAppStx___closed__2; lean_object* l_Lean_Expr_bindingBody_x21(lean_object*); @@ -475,9 +477,7 @@ lean_object* l___private_Lean_Delaborator_2__delabBinders___main(lean_object*, l lean_object* l_Lean_Delaborator_delabConst___closed__3; lean_object* l___regBuiltin_Lean_Delaborator_delabForall(lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Delaborator_hasIdent___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Delaborator_getExprKind___closed__29; extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__4; -lean_object* l_Lean_Delaborator_getExprKind___closed__25; lean_object* l_Array_anyRangeMAux___main___at_Lean_Delaborator_delabForall___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Level_quote___main___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getPPBinderTypes___closed__4; @@ -1927,37 +1927,41 @@ return x_4; lean_object* _init_l_Lean_Delaborator_getExprKind___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("bvar"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Expr_ctorName___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } lean_object* _init_l_Lean_Delaborator_getExprKind___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Delaborator_getExprKind___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Delaborator_getExprKind___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Delaborator_getExprKind___closed__2; +x_1 = l_Lean_Delaborator_getExprKind___closed__1; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } +lean_object* _init_l_Lean_Delaborator_getExprKind___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Expr_ctorName___closed__2; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} lean_object* _init_l_Lean_Delaborator_getExprKind___closed__4() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("fvar"); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Delaborator_getExprKind___closed__3; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } lean_object* _init_l_Lean_Delaborator_getExprKind___closed__5() { @@ -1965,7 +1969,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Delaborator_getExprKind___closed__4; +x_2 = l_Lean_Expr_ctorName___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -1983,54 +1987,26 @@ return x_2; lean_object* _init_l_Lean_Delaborator_getExprKind___closed__7() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("mvar"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Expr_ctorName___closed__4; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } lean_object* _init_l_Lean_Delaborator_getExprKind___closed__8() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Delaborator_getExprKind___closed__7; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Delaborator_getExprKind___closed__7; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } lean_object* _init_l_Lean_Delaborator_getExprKind___closed__9() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Delaborator_getExprKind___closed__8; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Delaborator_getExprKind___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_sort___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Delaborator_getExprKind___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Delaborator_getExprKind___closed__10; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Delaborator_getExprKind___closed__12() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_mkAppStx___closed__7; @@ -2038,22 +2014,54 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Delaborator_getExprKind___closed__13() { +lean_object* _init_l_Lean_Delaborator_getExprKind___closed__10() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Delaborator_getExprKind___closed__12; +x_1 = l_Lean_Delaborator_getExprKind___closed__9; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } +lean_object* _init_l_Lean_Delaborator_getExprKind___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Expr_ctorName___closed__6; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Delaborator_getExprKind___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Delaborator_getExprKind___closed__11; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Delaborator_getExprKind___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Expr_ctorName___closed__7; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} lean_object* _init_l_Lean_Delaborator_getExprKind___closed__14() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("lam"); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Delaborator_getExprKind___closed__13; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } lean_object* _init_l_Lean_Delaborator_getExprKind___closed__15() { @@ -2061,7 +2069,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Delaborator_getExprKind___closed__14; +x_2 = l_Lean_Expr_ctorName___closed__8; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -2079,37 +2087,41 @@ return x_2; lean_object* _init_l_Lean_Delaborator_getExprKind___closed__17() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("forallE"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Expr_ctorName___closed__9; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } lean_object* _init_l_Lean_Delaborator_getExprKind___closed__18() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Delaborator_getExprKind___closed__17; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Delaborator_getExprKind___closed__19() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Delaborator_getExprKind___closed__18; +x_1 = l_Lean_Delaborator_getExprKind___closed__17; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } +lean_object* _init_l_Lean_Delaborator_getExprKind___closed__19() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Expr_ctorName___closed__10; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} lean_object* _init_l_Lean_Delaborator_getExprKind___closed__20() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("letE"); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Delaborator_getExprKind___closed__19; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; } } lean_object* _init_l_Lean_Delaborator_getExprKind___closed__21() { @@ -2117,7 +2129,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Delaborator_getExprKind___closed__20; +x_2 = l_Lean_Expr_ctorName___closed__11; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -2135,102 +2147,18 @@ return x_2; lean_object* _init_l_Lean_Delaborator_getExprKind___closed__23() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("lit"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Expr_ctorName___closed__12; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } lean_object* _init_l_Lean_Delaborator_getExprKind___closed__24() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Delaborator_getExprKind___closed__23; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Delaborator_getExprKind___closed__25() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Delaborator_getExprKind___closed__24; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Delaborator_getExprKind___closed__26() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("mdata"); -return x_1; -} -} -lean_object* _init_l_Lean_Delaborator_getExprKind___closed__27() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Delaborator_getExprKind___closed__26; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Delaborator_getExprKind___closed__28() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Delaborator_getExprKind___closed__27; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Delaborator_getExprKind___closed__29() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_proj___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Delaborator_getExprKind___closed__30() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Delaborator_getExprKind___closed__29; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Delaborator_getExprKind___closed__31() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("localE"); -return x_1; -} -} -lean_object* _init_l_Lean_Delaborator_getExprKind___closed__32() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Delaborator_getExprKind___closed__31; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Delaborator_getExprKind___closed__33() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Delaborator_getExprKind___closed__32; +x_1 = l_Lean_Delaborator_getExprKind___closed__23; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; @@ -2260,7 +2188,7 @@ if (x_8 == 0) lean_object* x_9; lean_object* x_10; x_9 = lean_ctor_get(x_4, 0); lean_dec(x_9); -x_10 = l_Lean_Delaborator_getExprKind___closed__3; +x_10 = l_Lean_Delaborator_getExprKind___closed__2; lean_ctor_set(x_4, 0, x_10); return x_4; } @@ -2270,7 +2198,7 @@ lean_object* x_11; lean_object* x_12; lean_object* x_13; x_11 = lean_ctor_get(x_4, 1); lean_inc(x_11); lean_dec(x_4); -x_12 = l_Lean_Delaborator_getExprKind___closed__3; +x_12 = l_Lean_Delaborator_getExprKind___closed__2; x_13 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_13, 0, x_12); lean_ctor_set(x_13, 1, x_11); @@ -2288,7 +2216,7 @@ if (x_14 == 0) lean_object* x_15; lean_object* x_16; x_15 = lean_ctor_get(x_4, 0); lean_dec(x_15); -x_16 = l_Lean_Delaborator_getExprKind___closed__6; +x_16 = l_Lean_Delaborator_getExprKind___closed__4; lean_ctor_set(x_4, 0, x_16); return x_4; } @@ -2298,7 +2226,7 @@ lean_object* x_17; lean_object* x_18; lean_object* x_19; x_17 = lean_ctor_get(x_4, 1); lean_inc(x_17); lean_dec(x_4); -x_18 = l_Lean_Delaborator_getExprKind___closed__6; +x_18 = l_Lean_Delaborator_getExprKind___closed__4; x_19 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); @@ -2316,7 +2244,7 @@ if (x_20 == 0) lean_object* x_21; lean_object* x_22; x_21 = lean_ctor_get(x_4, 0); lean_dec(x_21); -x_22 = l_Lean_Delaborator_getExprKind___closed__9; +x_22 = l_Lean_Delaborator_getExprKind___closed__6; lean_ctor_set(x_4, 0, x_22); return x_4; } @@ -2326,7 +2254,7 @@ lean_object* x_23; lean_object* x_24; lean_object* x_25; x_23 = lean_ctor_get(x_4, 1); lean_inc(x_23); lean_dec(x_4); -x_24 = l_Lean_Delaborator_getExprKind___closed__9; +x_24 = l_Lean_Delaborator_getExprKind___closed__6; x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_23); @@ -2344,7 +2272,7 @@ if (x_26 == 0) lean_object* x_27; lean_object* x_28; x_27 = lean_ctor_get(x_4, 0); lean_dec(x_27); -x_28 = l_Lean_Delaborator_getExprKind___closed__11; +x_28 = l_Lean_Delaborator_getExprKind___closed__8; lean_ctor_set(x_4, 0, x_28); return x_4; } @@ -2354,7 +2282,7 @@ lean_object* x_29; lean_object* x_30; lean_object* x_31; x_29 = lean_ctor_get(x_4, 1); lean_inc(x_29); lean_dec(x_4); -x_30 = l_Lean_Delaborator_getExprKind___closed__11; +x_30 = l_Lean_Delaborator_getExprKind___closed__8; x_31 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_31, 0, x_30); lean_ctor_set(x_31, 1, x_29); @@ -2373,7 +2301,7 @@ lean_dec(x_33); x_34 = lean_ctor_get(x_7, 0); lean_inc(x_34); lean_dec(x_7); -x_35 = l_Lean_Delaborator_getExprKind___closed__12; +x_35 = l_Lean_Delaborator_getExprKind___closed__9; x_36 = l_Lean_Name_append___main(x_35, x_34); lean_ctor_set(x_5, 0, x_36); return x_4; @@ -2387,7 +2315,7 @@ lean_dec(x_4); x_38 = lean_ctor_get(x_7, 0); lean_inc(x_38); lean_dec(x_7); -x_39 = l_Lean_Delaborator_getExprKind___closed__12; +x_39 = l_Lean_Delaborator_getExprKind___closed__9; x_40 = l_Lean_Name_append___main(x_39, x_38); lean_ctor_set(x_5, 0, x_40); x_41 = lean_alloc_ctor(0, 2, 0); @@ -2416,7 +2344,7 @@ lean_object* x_46; lean_object* x_47; lean_object* x_48; x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); lean_dec(x_45); -x_47 = l_Lean_Delaborator_getExprKind___closed__12; +x_47 = l_Lean_Delaborator_getExprKind___closed__9; x_48 = l_Lean_Name_append___main(x_47, x_46); lean_ctor_set(x_5, 0, x_48); return x_4; @@ -2426,7 +2354,7 @@ else lean_object* x_49; lean_dec(x_45); lean_free_object(x_5); -x_49 = l_Lean_Delaborator_getExprKind___closed__13; +x_49 = l_Lean_Delaborator_getExprKind___closed__10; lean_ctor_set(x_4, 0, x_49); return x_4; } @@ -2448,7 +2376,7 @@ lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); lean_dec(x_52); -x_54 = l_Lean_Delaborator_getExprKind___closed__12; +x_54 = l_Lean_Delaborator_getExprKind___closed__9; x_55 = l_Lean_Name_append___main(x_54, x_53); lean_ctor_set(x_5, 0, x_55); x_56 = lean_alloc_ctor(0, 2, 0); @@ -2461,7 +2389,7 @@ else lean_object* x_57; lean_object* x_58; lean_dec(x_52); lean_free_object(x_5); -x_57 = l_Lean_Delaborator_getExprKind___closed__13; +x_57 = l_Lean_Delaborator_getExprKind___closed__10; x_58 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_58, 0, x_57); lean_ctor_set(x_58, 1, x_50); @@ -2480,7 +2408,7 @@ if (x_59 == 0) lean_object* x_60; lean_object* x_61; x_60 = lean_ctor_get(x_4, 0); lean_dec(x_60); -x_61 = l_Lean_Delaborator_getExprKind___closed__16; +x_61 = l_Lean_Delaborator_getExprKind___closed__12; lean_ctor_set(x_4, 0, x_61); return x_4; } @@ -2490,7 +2418,7 @@ lean_object* x_62; lean_object* x_63; lean_object* x_64; x_62 = lean_ctor_get(x_4, 1); lean_inc(x_62); lean_dec(x_4); -x_63 = l_Lean_Delaborator_getExprKind___closed__16; +x_63 = l_Lean_Delaborator_getExprKind___closed__12; x_64 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_64, 0, x_63); lean_ctor_set(x_64, 1, x_62); @@ -2508,7 +2436,7 @@ if (x_65 == 0) lean_object* x_66; lean_object* x_67; x_66 = lean_ctor_get(x_4, 0); lean_dec(x_66); -x_67 = l_Lean_Delaborator_getExprKind___closed__19; +x_67 = l_Lean_Delaborator_getExprKind___closed__14; lean_ctor_set(x_4, 0, x_67); return x_4; } @@ -2518,7 +2446,7 @@ lean_object* x_68; lean_object* x_69; lean_object* x_70; x_68 = lean_ctor_get(x_4, 1); lean_inc(x_68); lean_dec(x_4); -x_69 = l_Lean_Delaborator_getExprKind___closed__19; +x_69 = l_Lean_Delaborator_getExprKind___closed__14; x_70 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_70, 0, x_69); lean_ctor_set(x_70, 1, x_68); @@ -2536,7 +2464,7 @@ if (x_71 == 0) lean_object* x_72; lean_object* x_73; x_72 = lean_ctor_get(x_4, 0); lean_dec(x_72); -x_73 = l_Lean_Delaborator_getExprKind___closed__22; +x_73 = l_Lean_Delaborator_getExprKind___closed__16; lean_ctor_set(x_4, 0, x_73); return x_4; } @@ -2546,7 +2474,7 @@ lean_object* x_74; lean_object* x_75; lean_object* x_76; x_74 = lean_ctor_get(x_4, 1); lean_inc(x_74); lean_dec(x_4); -x_75 = l_Lean_Delaborator_getExprKind___closed__22; +x_75 = l_Lean_Delaborator_getExprKind___closed__16; x_76 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_76, 0, x_75); lean_ctor_set(x_76, 1, x_74); @@ -2564,7 +2492,7 @@ if (x_77 == 0) lean_object* x_78; lean_object* x_79; x_78 = lean_ctor_get(x_4, 0); lean_dec(x_78); -x_79 = l_Lean_Delaborator_getExprKind___closed__25; +x_79 = l_Lean_Delaborator_getExprKind___closed__18; lean_ctor_set(x_4, 0, x_79); return x_4; } @@ -2574,7 +2502,7 @@ lean_object* x_80; lean_object* x_81; lean_object* x_82; x_80 = lean_ctor_get(x_4, 1); lean_inc(x_80); lean_dec(x_4); -x_81 = l_Lean_Delaborator_getExprKind___closed__25; +x_81 = l_Lean_Delaborator_getExprKind___closed__18; x_82 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_82, 0, x_81); lean_ctor_set(x_82, 1, x_80); @@ -2597,7 +2525,7 @@ if (x_84 == 0) lean_object* x_85; lean_object* x_86; x_85 = lean_ctor_get(x_4, 0); lean_dec(x_85); -x_86 = l_Lean_Delaborator_getExprKind___closed__28; +x_86 = l_Lean_Delaborator_getExprKind___closed__20; lean_ctor_set(x_4, 0, x_86); return x_4; } @@ -2607,7 +2535,7 @@ lean_object* x_87; lean_object* x_88; lean_object* x_89; x_87 = lean_ctor_get(x_4, 1); lean_inc(x_87); lean_dec(x_4); -x_88 = l_Lean_Delaborator_getExprKind___closed__28; +x_88 = l_Lean_Delaborator_getExprKind___closed__20; x_89 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_89, 0, x_88); lean_ctor_set(x_89, 1, x_87); @@ -2634,7 +2562,7 @@ lean_dec(x_93); x_94 = lean_ctor_get(x_90, 0); lean_inc(x_94); lean_dec(x_90); -x_95 = l_Lean_Delaborator_getExprKind___closed__27; +x_95 = l_Lean_Delaborator_getExprKind___closed__19; x_96 = l_Lean_Name_append___main(x_95, x_94); lean_ctor_set(x_5, 0, x_96); return x_4; @@ -2648,7 +2576,7 @@ lean_dec(x_4); x_98 = lean_ctor_get(x_90, 0); lean_inc(x_98); lean_dec(x_90); -x_99 = l_Lean_Delaborator_getExprKind___closed__27; +x_99 = l_Lean_Delaborator_getExprKind___closed__19; x_100 = l_Lean_Name_append___main(x_99, x_98); lean_ctor_set(x_5, 0, x_100); x_101 = lean_alloc_ctor(0, 2, 0); @@ -2669,7 +2597,7 @@ if (x_102 == 0) lean_object* x_103; lean_object* x_104; x_103 = lean_ctor_get(x_4, 0); lean_dec(x_103); -x_104 = l_Lean_Delaborator_getExprKind___closed__28; +x_104 = l_Lean_Delaborator_getExprKind___closed__20; lean_ctor_set(x_4, 0, x_104); return x_4; } @@ -2679,7 +2607,7 @@ lean_object* x_105; lean_object* x_106; lean_object* x_107; x_105 = lean_ctor_get(x_4, 1); lean_inc(x_105); lean_dec(x_4); -x_106 = l_Lean_Delaborator_getExprKind___closed__28; +x_106 = l_Lean_Delaborator_getExprKind___closed__20; x_107 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_107, 0, x_106); lean_ctor_set(x_107, 1, x_105); @@ -2699,7 +2627,7 @@ if (x_108 == 0) lean_object* x_109; lean_object* x_110; x_109 = lean_ctor_get(x_4, 0); lean_dec(x_109); -x_110 = l_Lean_Delaborator_getExprKind___closed__30; +x_110 = l_Lean_Delaborator_getExprKind___closed__22; lean_ctor_set(x_4, 0, x_110); return x_4; } @@ -2709,7 +2637,7 @@ lean_object* x_111; lean_object* x_112; lean_object* x_113; x_111 = lean_ctor_get(x_4, 1); lean_inc(x_111); lean_dec(x_4); -x_112 = l_Lean_Delaborator_getExprKind___closed__30; +x_112 = l_Lean_Delaborator_getExprKind___closed__22; x_113 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_113, 0, x_112); lean_ctor_set(x_113, 1, x_111); @@ -2727,7 +2655,7 @@ if (x_114 == 0) lean_object* x_115; lean_object* x_116; x_115 = lean_ctor_get(x_4, 0); lean_dec(x_115); -x_116 = l_Lean_Delaborator_getExprKind___closed__33; +x_116 = l_Lean_Delaborator_getExprKind___closed__24; lean_ctor_set(x_4, 0, x_116); return x_4; } @@ -2737,7 +2665,7 @@ lean_object* x_117; lean_object* x_118; lean_object* x_119; x_117 = lean_ctor_get(x_4, 1); lean_inc(x_117); lean_dec(x_4); -x_118 = l_Lean_Delaborator_getExprKind___closed__33; +x_118 = l_Lean_Delaborator_getExprKind___closed__24; x_119 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_119, 0, x_118); lean_ctor_set(x_119, 1, x_117); @@ -2767,7 +2695,7 @@ if (lean_is_exclusive(x_4)) { lean_dec_ref(x_4); x_122 = lean_box(0); } -x_123 = l_Lean_Delaborator_getExprKind___closed__3; +x_123 = l_Lean_Delaborator_getExprKind___closed__2; if (lean_is_scalar(x_122)) { x_124 = lean_alloc_ctor(0, 2, 0); } else { @@ -2791,7 +2719,7 @@ if (lean_is_exclusive(x_4)) { lean_dec_ref(x_4); x_126 = lean_box(0); } -x_127 = l_Lean_Delaborator_getExprKind___closed__6; +x_127 = l_Lean_Delaborator_getExprKind___closed__4; if (lean_is_scalar(x_126)) { x_128 = lean_alloc_ctor(0, 2, 0); } else { @@ -2815,7 +2743,7 @@ if (lean_is_exclusive(x_4)) { lean_dec_ref(x_4); x_130 = lean_box(0); } -x_131 = l_Lean_Delaborator_getExprKind___closed__9; +x_131 = l_Lean_Delaborator_getExprKind___closed__6; if (lean_is_scalar(x_130)) { x_132 = lean_alloc_ctor(0, 2, 0); } else { @@ -2839,7 +2767,7 @@ if (lean_is_exclusive(x_4)) { lean_dec_ref(x_4); x_134 = lean_box(0); } -x_135 = l_Lean_Delaborator_getExprKind___closed__11; +x_135 = l_Lean_Delaborator_getExprKind___closed__8; if (lean_is_scalar(x_134)) { x_136 = lean_alloc_ctor(0, 2, 0); } else { @@ -2865,7 +2793,7 @@ if (lean_is_exclusive(x_4)) { x_139 = lean_ctor_get(x_120, 0); lean_inc(x_139); lean_dec(x_120); -x_140 = l_Lean_Delaborator_getExprKind___closed__12; +x_140 = l_Lean_Delaborator_getExprKind___closed__9; x_141 = l_Lean_Name_append___main(x_140, x_139); x_142 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_142, 0, x_141); @@ -2902,7 +2830,7 @@ lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; x_148 = lean_ctor_get(x_147, 0); lean_inc(x_148); lean_dec(x_147); -x_149 = l_Lean_Delaborator_getExprKind___closed__12; +x_149 = l_Lean_Delaborator_getExprKind___closed__9; x_150 = l_Lean_Name_append___main(x_149, x_148); x_151 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_151, 0, x_150); @@ -2919,7 +2847,7 @@ else { lean_object* x_153; lean_object* x_154; lean_dec(x_147); -x_153 = l_Lean_Delaborator_getExprKind___closed__13; +x_153 = l_Lean_Delaborator_getExprKind___closed__10; if (lean_is_scalar(x_145)) { x_154 = lean_alloc_ctor(0, 2, 0); } else { @@ -2944,7 +2872,7 @@ if (lean_is_exclusive(x_4)) { lean_dec_ref(x_4); x_156 = lean_box(0); } -x_157 = l_Lean_Delaborator_getExprKind___closed__16; +x_157 = l_Lean_Delaborator_getExprKind___closed__12; if (lean_is_scalar(x_156)) { x_158 = lean_alloc_ctor(0, 2, 0); } else { @@ -2968,7 +2896,7 @@ if (lean_is_exclusive(x_4)) { lean_dec_ref(x_4); x_160 = lean_box(0); } -x_161 = l_Lean_Delaborator_getExprKind___closed__19; +x_161 = l_Lean_Delaborator_getExprKind___closed__14; if (lean_is_scalar(x_160)) { x_162 = lean_alloc_ctor(0, 2, 0); } else { @@ -2992,7 +2920,7 @@ if (lean_is_exclusive(x_4)) { lean_dec_ref(x_4); x_164 = lean_box(0); } -x_165 = l_Lean_Delaborator_getExprKind___closed__22; +x_165 = l_Lean_Delaborator_getExprKind___closed__16; if (lean_is_scalar(x_164)) { x_166 = lean_alloc_ctor(0, 2, 0); } else { @@ -3016,7 +2944,7 @@ if (lean_is_exclusive(x_4)) { lean_dec_ref(x_4); x_168 = lean_box(0); } -x_169 = l_Lean_Delaborator_getExprKind___closed__25; +x_169 = l_Lean_Delaborator_getExprKind___closed__18; if (lean_is_scalar(x_168)) { x_170 = lean_alloc_ctor(0, 2, 0); } else { @@ -3045,7 +2973,7 @@ if (lean_is_exclusive(x_4)) { lean_dec_ref(x_4); x_173 = lean_box(0); } -x_174 = l_Lean_Delaborator_getExprKind___closed__28; +x_174 = l_Lean_Delaborator_getExprKind___closed__20; if (lean_is_scalar(x_173)) { x_175 = lean_alloc_ctor(0, 2, 0); } else { @@ -3079,7 +3007,7 @@ if (lean_is_exclusive(x_4)) { x_180 = lean_ctor_get(x_176, 0); lean_inc(x_180); lean_dec(x_176); -x_181 = l_Lean_Delaborator_getExprKind___closed__27; +x_181 = l_Lean_Delaborator_getExprKind___closed__19; x_182 = l_Lean_Name_append___main(x_181, x_180); x_183 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_183, 0, x_182); @@ -3107,7 +3035,7 @@ if (lean_is_exclusive(x_4)) { lean_dec_ref(x_4); x_186 = lean_box(0); } -x_187 = l_Lean_Delaborator_getExprKind___closed__28; +x_187 = l_Lean_Delaborator_getExprKind___closed__20; if (lean_is_scalar(x_186)) { x_188 = lean_alloc_ctor(0, 2, 0); } else { @@ -3133,7 +3061,7 @@ if (lean_is_exclusive(x_4)) { lean_dec_ref(x_4); x_190 = lean_box(0); } -x_191 = l_Lean_Delaborator_getExprKind___closed__30; +x_191 = l_Lean_Delaborator_getExprKind___closed__22; if (lean_is_scalar(x_190)) { x_192 = lean_alloc_ctor(0, 2, 0); } else { @@ -3157,7 +3085,7 @@ if (lean_is_exclusive(x_4)) { lean_dec_ref(x_4); x_194 = lean_box(0); } -x_195 = l_Lean_Delaborator_getExprKind___closed__33; +x_195 = l_Lean_Delaborator_getExprKind___closed__24; if (lean_is_scalar(x_194)) { x_196 = lean_alloc_ctor(0, 2, 0); } else { @@ -7953,7 +7881,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Delaborator_delabAttribute; -x_3 = l_Lean_Delaborator_getExprKind___closed__5; +x_3 = l_Lean_Delaborator_getExprKind___closed__3; x_4 = l___regBuiltin_Lean_Delaborator_delabFVar___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -8124,7 +8052,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Delaborator_delabAttribute; -x_3 = l_Lean_Delaborator_getExprKind___closed__8; +x_3 = l_Lean_Delaborator_getExprKind___closed__5; x_4 = l___regBuiltin_Lean_Delaborator_delabMVar___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -8135,7 +8063,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l_Lean_Parser_Term_sort___elambda__1___closed__5; +x_2 = l_Lean_Parser_Term_sort___elambda__1___closed__4; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -8469,7 +8397,7 @@ lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_14); x_17 = l_Lean_Delaborator_delabSort___closed__2; x_18 = lean_array_push(x_17, x_16); -x_19 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_19 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_20 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_20, 0, x_19); lean_ctor_set(x_20, 1, x_18); @@ -8517,7 +8445,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Delaborator_delabAttribute; -x_3 = l_Lean_Delaborator_getExprKind___closed__10; +x_3 = l_Lean_Delaborator_getExprKind___closed__7; x_4 = l___regBuiltin_Lean_Delaborator_delabSort___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -10257,7 +10185,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Delaborator_delabAttribute; -x_3 = l_Lean_Delaborator_getExprKind___closed__12; +x_3 = l_Lean_Delaborator_getExprKind___closed__9; x_4 = l___regBuiltin_Lean_Delaborator_delabAppExplicit___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -11745,7 +11673,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Delaborator_delabAttribute; -x_3 = l_Lean_Delaborator_getExprKind___closed__12; +x_3 = l_Lean_Delaborator_getExprKind___closed__9; x_4 = l___regBuiltin_Lean_Delaborator_delabAppImplicit___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -11925,7 +11853,7 @@ lean_dec(x_14); x_15 = lean_ctor_get(x_10, 0); lean_inc(x_15); lean_dec(x_10); -x_16 = l_Lean_Meta_mkAuxName___closed__1; +x_16 = l_Lean_mkThunk___closed__1; x_17 = l___private_Lean_Delaborator_1__shouldGroupWithNext___closed__2; x_18 = l_Lean_Delaborator_withBindingBody___rarg(x_16, x_17, x_1, x_2, x_13); if (lean_obj_tag(x_18) == 0) @@ -12188,7 +12116,7 @@ lean_dec(x_9); x_64 = lean_ctor_get(x_10, 0); lean_inc(x_64); lean_dec(x_10); -x_65 = l_Lean_Meta_mkAuxName___closed__1; +x_65 = l_Lean_mkThunk___closed__1; x_66 = l___private_Lean_Delaborator_1__shouldGroupWithNext___closed__2; x_67 = l_Lean_Delaborator_withBindingBody___rarg(x_65, x_66, x_1, x_2, x_63); if (lean_obj_tag(x_67) == 0) @@ -12492,7 +12420,7 @@ lean_dec(x_122); x_123 = lean_ctor_get(x_10, 0); lean_inc(x_123); lean_dec(x_10); -x_124 = l_Lean_Meta_mkAuxName___closed__1; +x_124 = l_Lean_mkThunk___closed__1; x_125 = l___private_Lean_Delaborator_1__shouldGroupWithNext___closed__2; x_126 = l_Lean_Delaborator_withBindingBody___rarg(x_124, x_125, x_1, x_2, x_121); if (lean_obj_tag(x_126) == 0) @@ -12755,7 +12683,7 @@ lean_dec(x_9); x_172 = lean_ctor_get(x_10, 0); lean_inc(x_172); lean_dec(x_10); -x_173 = l_Lean_Meta_mkAuxName___closed__1; +x_173 = l_Lean_mkThunk___closed__1; x_174 = l___private_Lean_Delaborator_1__shouldGroupWithNext___closed__2; x_175 = l_Lean_Delaborator_withBindingBody___rarg(x_173, x_174, x_1, x_2, x_171); if (lean_obj_tag(x_175) == 0) @@ -16175,7 +16103,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Delaborator_delabAttribute; -x_3 = l_Lean_Delaborator_getExprKind___closed__15; +x_3 = l_Lean_Delaborator_getExprKind___closed__11; x_4 = l___regBuiltin_Lean_Delaborator_delabLam___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -16919,7 +16847,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Delaborator_delabAttribute; -x_3 = l_Lean_Delaborator_getExprKind___closed__18; +x_3 = l_Lean_Delaborator_getExprKind___closed__13; x_4 = l___regBuiltin_Lean_Delaborator_delabForall___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -17173,7 +17101,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Delaborator_delabAttribute; -x_3 = l_Lean_Delaborator_getExprKind___closed__24; +x_3 = l_Lean_Delaborator_getExprKind___closed__17; x_4 = l___regBuiltin_Lean_Delaborator_delabLit___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -17303,7 +17231,7 @@ lean_object* _init_l___regBuiltin_Lean_Delaborator_delabOfNat___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Delaborator_getExprKind___closed__12; +x_1 = l_Lean_Delaborator_getExprKind___closed__9; x_2 = l_Lean_Meta_evalNat___main___closed__6; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -17314,7 +17242,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___regBuiltin_Lean_Delaborator_delabOfNat___closed__1; -x_2 = l_Lean_Meta_evalNat___main___closed__8; +x_2 = l_Lean_Expr_isCharLit___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -17423,7 +17351,7 @@ x_24 = l_Lean_Delaborator_delabProj___closed__1; x_25 = lean_array_push(x_23, x_24); x_26 = lean_mk_syntax_num_lit(x_8); x_27 = lean_array_push(x_25, x_26); -x_28 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_28 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_29 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_27); @@ -17442,7 +17370,7 @@ x_33 = l_Lean_Delaborator_delabProj___closed__1; x_34 = lean_array_push(x_32, x_33); x_35 = lean_mk_syntax_num_lit(x_8); x_36 = lean_array_push(x_34, x_35); -x_37 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_37 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_38 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_38, 1, x_36); @@ -17473,7 +17401,7 @@ x_45 = l_Lean_Delaborator_delabProj___closed__1; x_46 = lean_array_push(x_44, x_45); x_47 = lean_mk_syntax_num_lit(x_8); x_48 = lean_array_push(x_46, x_47); -x_49 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_49 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_50 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_50, 0, x_49); lean_ctor_set(x_50, 1, x_48); @@ -17541,7 +17469,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Delaborator_delabAttribute; -x_3 = l_Lean_Delaborator_getExprKind___closed__29; +x_3 = l_Lean_Delaborator_getExprKind___closed__21; x_4 = l___regBuiltin_Lean_Delaborator_delabProj___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -17860,7 +17788,7 @@ x_59 = lean_box(0); x_60 = lean_name_mk_string(x_59, x_8); x_61 = lean_mk_syntax_ident(x_60); x_62 = lean_array_push(x_58, x_61); -x_63 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_63 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_64 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_64, 0, x_63); lean_ctor_set(x_64, 1, x_62); @@ -17881,7 +17809,7 @@ x_70 = lean_box(0); x_71 = lean_name_mk_string(x_70, x_8); x_72 = lean_mk_syntax_ident(x_71); x_73 = lean_array_push(x_69, x_72); -x_74 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_74 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_75 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_75, 0, x_74); lean_ctor_set(x_75, 1, x_73); @@ -17914,7 +17842,7 @@ x_84 = lean_box(0); x_85 = lean_name_mk_string(x_84, x_8); x_86 = lean_mk_syntax_ident(x_85); x_87 = lean_array_push(x_83, x_86); -x_88 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_88 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_89 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_89, 0, x_88); lean_ctor_set(x_89, 1, x_87); @@ -18065,7 +17993,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Delaborator_delabAttribute; -x_3 = l_Lean_Delaborator_getExprKind___closed__12; +x_3 = l_Lean_Delaborator_getExprKind___closed__9; x_4 = l___regBuiltin_Lean_Delaborator_delabProjectionApp___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -18345,7 +18273,7 @@ lean_object* _init_l___regBuiltin_Lean_Delaborator_delabCoe___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Delaborator_getExprKind___closed__12; +x_1 = l_Lean_Delaborator_getExprKind___closed__9; x_2 = l_Lean_Elab_Term_tryCoe___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -18390,7 +18318,7 @@ lean_object* _init_l___regBuiltin_Lean_Delaborator_delabCoeFun___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Delaborator_getExprKind___closed__12; +x_1 = l_Lean_Delaborator_getExprKind___closed__9; x_2 = l___regBuiltin_Lean_Delaborator_delabCoeFun___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -18712,24 +18640,6 @@ l_Lean_Delaborator_getExprKind___closed__23 = _init_l_Lean_Delaborator_getExprKi lean_mark_persistent(l_Lean_Delaborator_getExprKind___closed__23); l_Lean_Delaborator_getExprKind___closed__24 = _init_l_Lean_Delaborator_getExprKind___closed__24(); lean_mark_persistent(l_Lean_Delaborator_getExprKind___closed__24); -l_Lean_Delaborator_getExprKind___closed__25 = _init_l_Lean_Delaborator_getExprKind___closed__25(); -lean_mark_persistent(l_Lean_Delaborator_getExprKind___closed__25); -l_Lean_Delaborator_getExprKind___closed__26 = _init_l_Lean_Delaborator_getExprKind___closed__26(); -lean_mark_persistent(l_Lean_Delaborator_getExprKind___closed__26); -l_Lean_Delaborator_getExprKind___closed__27 = _init_l_Lean_Delaborator_getExprKind___closed__27(); -lean_mark_persistent(l_Lean_Delaborator_getExprKind___closed__27); -l_Lean_Delaborator_getExprKind___closed__28 = _init_l_Lean_Delaborator_getExprKind___closed__28(); -lean_mark_persistent(l_Lean_Delaborator_getExprKind___closed__28); -l_Lean_Delaborator_getExprKind___closed__29 = _init_l_Lean_Delaborator_getExprKind___closed__29(); -lean_mark_persistent(l_Lean_Delaborator_getExprKind___closed__29); -l_Lean_Delaborator_getExprKind___closed__30 = _init_l_Lean_Delaborator_getExprKind___closed__30(); -lean_mark_persistent(l_Lean_Delaborator_getExprKind___closed__30); -l_Lean_Delaborator_getExprKind___closed__31 = _init_l_Lean_Delaborator_getExprKind___closed__31(); -lean_mark_persistent(l_Lean_Delaborator_getExprKind___closed__31); -l_Lean_Delaborator_getExprKind___closed__32 = _init_l_Lean_Delaborator_getExprKind___closed__32(); -lean_mark_persistent(l_Lean_Delaborator_getExprKind___closed__32); -l_Lean_Delaborator_getExprKind___closed__33 = _init_l_Lean_Delaborator_getExprKind___closed__33(); -lean_mark_persistent(l_Lean_Delaborator_getExprKind___closed__33); l_Lean_Delaborator_getPPOption___closed__1 = _init_l_Lean_Delaborator_getPPOption___closed__1(); lean_mark_persistent(l_Lean_Delaborator_getPPOption___closed__1); l_Lean_Delaborator_delab___closed__1 = _init_l_Lean_Delaborator_delab___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index f7fab7c6fd..648facde52 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -107,6 +107,7 @@ lean_object* l_Lean_Elab_Term_synthesizeAppInstMVars(lean_object*, lean_object*, lean_object* l___private_Lean_Elab_App_18__elabAppLValsAux___main___closed__1; lean_object* l___regBuiltin_Lean_Elab_Term_elabId(lean_object*); lean_object* l_Lean_Elab_Term_addNamedArg___closed__6; +extern lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__1; lean_object* l___private_Lean_Elab_App_13__resolveLValAux___closed__2; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_21__elabAppFn___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); @@ -133,7 +134,6 @@ lean_object* l_Lean_FindMVar_main___main___at___private_Lean_Elab_App_6__hasType extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; lean_object* l_List_foldlM___main___at___private_Lean_Elab_App_16__mkBaseProjections___spec__1___closed__2; extern lean_object* l_Lean_Format_repr___main___closed__13; -extern lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__2; lean_object* l___private_Lean_Elab_App_17__addLValArg___main___closed__3; lean_object* l___private_Lean_Elab_App_21__elabAppFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); @@ -18551,7 +18551,7 @@ lean_dec(x_11); if (x_13 == 0) { uint8_t x_14; uint8_t x_329; lean_object* x_437; uint8_t x_438; -x_437 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_437 = l_Lean_Parser_Term_proj___elambda__1___closed__1; lean_inc(x_1); x_438 = l_Lean_Syntax_isOfKind(x_1, x_437); if (x_438 == 0) @@ -22071,7 +22071,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; -x_3 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_3 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_4 = l___regBuiltin_Lean_Elab_Term_elabProj___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; diff --git a/stage0/stdlib/Lean/Elab/Binders.c b/stage0/stdlib/Lean/Elab/Binders.c index d318e9186f..4732902d24 100644 --- a/stage0/stdlib/Lean/Elab/Binders.c +++ b/stage0/stdlib/Lean/Elab/Binders.c @@ -60,13 +60,13 @@ extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3_ lean_object* l___private_Lean_Elab_Binders_6__matchBinder(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_9__getFunBinderIdsAux_x3f___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabArrow___closed__1; +extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__1; extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___closed__2; lean_object* l_Lean_Elab_Term_elabFunBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_declareTacticSyntax___closed__2; lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_compileDecl(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Binders_11__expandFunBindersAux___main___closed__6; -extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); @@ -6123,7 +6123,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_SourceInfo_inhabited___closed__1; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__1; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); diff --git a/stage0/stdlib/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Lean/Elab/BuiltinNotation.c index 048a9115f3..b5892d41af 100644 --- a/stage0/stdlib/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Lean/Elab/BuiltinNotation.c @@ -107,7 +107,6 @@ lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__4; extern lean_object* l_Lean_Parser_Term_pow___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_expandSubtype(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_parser_x21___elambda__1___closed__2; -extern lean_object* l_Lean_Meta_evalNat___main___closed__10; lean_object* l_Lean_Elab_Term_compileDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMul___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandIf___closed__7; @@ -140,6 +139,7 @@ lean_object* l_Lean_Elab_Term_elabDiv___closed__3; lean_object* l___regBuiltin_Lean_Elab_Term_elabHEq___closed__1; lean_object* l_Lean_Elab_Term_elabBNe(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg_x21(lean_object*); +extern lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabLT___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); @@ -191,7 +191,6 @@ lean_object* l_Lean_Elab_Term_addDecl(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabTParserMacro(lean_object*); -extern lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Term_add___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_expandShow___closed__2; lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__24; @@ -431,6 +430,7 @@ lean_object* l_Lean_Elab_Term_elabOrM___boxed(lean_object*, lean_object*, lean_o lean_object* l___private_Lean_Elab_BuiltinNotation_1__elabParserMacroAux___closed__3; lean_object* l___private_Lean_Elab_BuiltinNotation_5__getPropToDecide___closed__2; lean_object* l___private_Lean_Elab_BuiltinNotation_3__mkNativeReflAuxDecl___closed__1; +extern lean_object* l_Lean_Meta_evalNat___main___closed__9; lean_object* l_Lean_Elab_Term_elabGE___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_seqRight___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_expandIf___closed__2; @@ -807,7 +807,7 @@ x_19 = lean_array_push(x_18, x_15); x_20 = l_Lean_Elab_Term_expandDollarProj___closed__1; x_21 = lean_array_push(x_19, x_20); x_22 = lean_array_push(x_21, x_17); -x_23 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_23 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_24 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_22); @@ -7407,7 +7407,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_elabSub___closed__2; -x_2 = l_Lean_Meta_evalNat___main___closed__10; +x_2 = l_Lean_Meta_evalNat___main___closed__9; 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 205f306cf8..2326b6fc80 100644 --- a/stage0/stdlib/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Lean/Elab/Declaration.c @@ -19,6 +19,7 @@ lean_object* l___private_Lean_Elab_Declaration_7__expandMutualPreamble_x3f___clo lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_expandOptDeclSig(lean_object*); extern lean_object* l_Lean_Parser_Command_abbrev___elambda__1___closed__2; +extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__1; lean_object* l___private_Lean_Elab_Declaration_7__expandMutualPreamble_x3f___closed__7; lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); @@ -77,7 +78,6 @@ lean_object* lean_array_fget(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Declaration_7__expandMutualPreamble_x3f___closed__12; -extern lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; lean_object* l___private_Lean_Elab_Declaration_6__splitMutualPreamble(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_tacticBlock___elambda__1___closed__7; @@ -808,7 +808,7 @@ x_32 = lean_ctor_get(x_29, 1); x_33 = lean_ctor_get(x_31, 0); lean_inc(x_33); lean_dec(x_31); -x_34 = l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; +x_34 = l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__1; lean_inc(x_33); x_35 = l_Lean_CollectLevelParams_main___main(x_33, x_34); x_36 = lean_ctor_get(x_35, 2); @@ -863,7 +863,7 @@ lean_dec(x_29); x_49 = lean_ctor_get(x_47, 0); lean_inc(x_49); lean_dec(x_47); -x_50 = l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; +x_50 = l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__1; lean_inc(x_49); x_51 = l_Lean_CollectLevelParams_main___main(x_49, x_50); x_52 = lean_ctor_get(x_51, 2); diff --git a/stage0/stdlib/Lean/Elab/Definition.c b/stage0/stdlib/Lean/Elab/Definition.c index 06fad439cf..f6bc93019a 100644 --- a/stage0/stdlib/Lean/Elab/Definition.c +++ b/stage0/stdlib/Lean/Elab/Definition.c @@ -19,6 +19,7 @@ lean_object* l_Lean_Elab_Term_removeUnused(lean_object*, lean_object*, lean_obje lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; +extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__1; lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); @@ -53,7 +54,6 @@ lean_object* l_Lean_Elab_Command_mkDeclName(lean_object*, lean_object*, lean_obj lean_object* l_Lean_Elab_Command_elabDefLike___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_state_sharecommon(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_levelMVarToParam(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(lean_object*); lean_object* l_Lean_Elab_Command_DefKind_isTheorem___boxed(lean_object*); uint8_t l_Lean_Elab_Command_DefKind_isDefOrAbbrevOrOpaque(uint8_t); @@ -666,7 +666,7 @@ x_45 = lean_state_sharecommon(x_44, x_38); x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); lean_dec(x_45); -x_47 = l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; +x_47 = l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__1; lean_inc(x_43); x_48 = l_Lean_CollectLevelParams_main___main(x_43, x_47); lean_inc(x_46); diff --git a/stage0/stdlib/Lean/Elab/Inductive.c b/stage0/stdlib/Lean/Elab/Inductive.c index 89d3367e3d..22992f2aa0 100644 --- a/stage0/stdlib/Lean/Elab/Inductive.c +++ b/stage0/stdlib/Lean/Elab/Inductive.c @@ -31,6 +31,7 @@ extern lean_object* l_Lean_Expr_eq_x3f___closed__2; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Inductive_4__checkLevelNames___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Inductive_30__replaceIndFVarsWithConsts___spec__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__6; +extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__1; lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Lean_Elab_Command_checkValidInductiveModifier___closed__5; @@ -165,7 +166,6 @@ lean_object* l___private_Lean_Elab_Inductive_23__updateResultingUniverse(lean_ob uint8_t l_Lean_Level_isParam(lean_object*); lean_object* l___private_Lean_Elab_Inductive_16__elabCtors___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_below(lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; lean_object* l_List_map___main___at___private_Lean_Elab_Inductive_32__applyInferMod___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); @@ -10222,7 +10222,7 @@ lean_object* l___private_Lean_Elab_Inductive_28__collectLevelParamsInInductive(l _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__1; x_3 = l_List_foldl___main___at___private_Lean_Elab_Inductive_28__collectLevelParamsInInductive___spec__2(x_2, x_1); x_4 = lean_ctor_get(x_3, 2); lean_inc(x_4); diff --git a/stage0/stdlib/Lean/Elab/Match.c b/stage0/stdlib/Lean/Elab/Match.c index 4806ae9b95..8f6000ad5a 100644 --- a/stage0/stdlib/Lean/Elab/Match.c +++ b/stage0/stdlib/Lean/Elab/Match.c @@ -13,6 +13,8 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__2; +lean_object* l___private_Lean_Elab_Match_31__elabMatchCore___closed__4; lean_object* l_List_reverse___rarg(lean_object*); lean_object* l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__2; extern lean_object* l_Lean_mkHole___closed__3; @@ -20,90 +22,107 @@ lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__12; lean_object* l_Lean_Syntax_getIdOfTermId(lean_object*); lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); extern lean_object* l_Lean_Name_toString___closed__1; +lean_object* l___private_Lean_Elab_Match_34__mkNewDiscrs___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_34__mkNewDiscrs___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_8__getMatchAlts(lean_object*); -lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__elabMatchCore___spec__4(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__4; lean_object* l_Lean_Elab_Term_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___closed__1; extern lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__2; +uint8_t l_Lean_Expr_isCharLit(lean_object*); +lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_37__mkNewAlts___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__4; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); +uint8_t l_Lean_Expr_isNatLit(lean_object*); lean_object* l___private_Lean_Elab_Match_15__processVar___closed__1; lean_object* l_Lean_Name_eraseMacroScopes(lean_object*); lean_object* l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId___boxed(lean_object*); -extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -lean_object* l_List_toString___at_Lean_MetavarContext_MkBinding_Exception_toString___spec__2(lean_object*); +lean_object* l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__1; +lean_object* l___private_Lean_Elab_Match_32__mkMatchType___main___closed__1; lean_object* l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__1; -lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__1; +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_Lean_mkSort(lean_object*); lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_32__mkMatchType___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkTermIdFromIdent(lean_object*); -lean_object* l_Lean_LocalDecl_userName(lean_object*); lean_object* l_Lean_Elab_Term_elabMatch(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); lean_object* l_Lean_Meta_isClassExpensive___main(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind; +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_37__mkNewAlts___spec__1___boxed(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___private_Lean_Elab_Match_15__processVar___closed__8; lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_8__getMatchAlts___boxed(lean_object*); +lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__2; +lean_object* l___private_Lean_Elab_Match_32__mkMatchType___main___closed__6; +lean_object* l___private_Lean_Elab_Match_35__mkNewPatterns___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__1; extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* l___private_Lean_Elab_Match_2__expandSimpleMatchWithType___closed__1; +lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*); extern lean_object* l_List_repr___rarg___closed__1; lean_object* l___private_Lean_Elab_Match_16__processIdAux(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__10; -lean_object* l___private_Lean_Elab_Match_30__mkNewPatterns___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_eq___elambda__1___closed__2; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4; lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); extern lean_object* l_Lean_List_format___rarg___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible___closed__1; -lean_object* l___private_Lean_Elab_Match_26__elabMatchCore(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_34__mkNewDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshId(lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkForall(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_32__mkMatchType___main___closed__4; lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_8__getMatchAlts___spec__2(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__3; lean_object* l___private_Lean_Elab_Match_15__processVar___closed__9; -lean_object* l___private_Lean_Elab_Match_28__mkOptType(lean_object*); extern lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__2; -lean_object* l___private_Lean_Elab_Match_27__mkMatchType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__2; extern lean_object* l_Lean_identKind___closed__2; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__2; extern lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__1; extern lean_object* l_Lean_Parser_Term_match___elambda__1___closed__1; -lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__2; +lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkMotiveType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__5; -lean_object* l_Lean_Elab_Term_isInaccessible_x3f(lean_object*); lean_object* l_Lean_Elab_Term_elabMVarWithIdKind(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_23__withPatternVars___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__14; +lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkMVar(lean_object*); lean_object* l_Lean_Meta_isClassQuick___main(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_33__mkOptType(lean_object*); extern lean_object* l_Array_empty___closed__1; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_25__elabPatterns___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_30__elabPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main(uint8_t, lean_object*); lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__2___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_Elab_Match_33__expandMatchDiscr_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_31__elabMatchCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_37__mkNewAlts(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_31__elabMatchCore___closed__2; lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__3; lean_object* l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_StateT_bind___at___private_Lean_Elab_Match_16__processIdAux___spec__4(lean_object*, lean_object*); -lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__1; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_annotation_x3f(lean_object*, lean_object*); +extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__1; lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabInaccessible(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; -lean_object* l___private_Lean_Elab_Match_32__mkNewAlts(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_35__mkNewPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_31__elabMatchCore___closed__1; +lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); @@ -112,18 +131,18 @@ extern lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__2; lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_getAppFn___main(lean_object*); lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_25__elabPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_String_splitAux___main___closed__1; -lean_object* l___private_Lean_Elab_Match_25__elabPatterns___closed__1; +extern lean_object* l_Lean_Expr_getAppArgs___closed__1; lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__1; +lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___main___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_Elab_Match_1__expandSimpleMatch___closed__2; lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__10; lean_object* l___private_Lean_Elab_Match_15__processVar(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_25__elabPatterns___closed__2; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__1; lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__12; lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -133,10 +152,11 @@ extern lean_object* l_Lean_mkTermIdFromIdent___closed__1; lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*); lean_object* l___private_Lean_Elab_Match_1__expandSimpleMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_15__processVar___closed__2; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__elabMatchCore___spec__3(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__1; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__7; extern lean_object* l_Lean_mkAppStx___closed__8; -lean_object* l___private_Lean_Elab_Match_26__elabMatchCore___closed__1; lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_3__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); @@ -144,13 +164,12 @@ extern lean_object* l_Lean_Parser_Term_matchDiscr___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__2; lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__1; -lean_object* l___private_Lean_Elab_Match_34__regTraceClasses(lean_object*); lean_object* l___private_Lean_Elab_Match_16__processIdAux___lambda__1___closed__3; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__9; +lean_object* l___private_Lean_Elab_Match_29__getFieldsBinderInfo___boxed(lean_object*); lean_object* l_Lean_Elab_Term_mkFreshTypeMVar(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern(lean_object*); lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*); -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_finalizePatternDecls(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__1; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -158,17 +177,19 @@ lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__4; extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__7; -lean_object* l___private_Lean_Elab_Match_26__elabMatchCore___closed__2; lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_20__collect___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__8; lean_object* l_Lean_Elab_Term_finalizePatternDecls___boxed(lean_object*, lean_object*, lean_object*); -extern lean_object* l_IO_FS_Handle_putStrLn___rarg___closed__1; -lean_object* l___private_Lean_Elab_Match_26__elabMatchCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_35__mkNewPatterns___main___boxed(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___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_35__mkNewPatterns___main___closed__1; +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__13; lean_object* l___private_Lean_Elab_Match_21__collectPatternVars(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_toDepElimPattern(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_HasRepr___rarg___closed__1; lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*); @@ -178,75 +199,87 @@ lean_object* l___private_Lean_Elab_Match_10__mkMVarSyntax(lean_object*, lean_obj lean_object* l___private_Lean_Elab_Match_21__collectPatternVars___closed__1; lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* lean_expr_instantiate_rev_range(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_Inhabited___closed__1; +lean_object* l___private_Lean_Elab_Match_30__elabPatterns___closed__2; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__6; +lean_object* l___private_Lean_Elab_Match_39__regTraceClasses(lean_object*); +lean_object* l___private_Lean_Elab_Match_30__elabPatterns___closed__1; extern lean_object* l_Lean_Nat_HasQuote___closed__1; lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__5; +lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_38__expandMatchDiscr_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_2__expandSimpleMatchWithType___closed__2; lean_object* l_Lean_Elab_Term_CollectPatternVars_withRef___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabMatch(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__1; lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__2; lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__2; +lean_object* l___private_Lean_Elab_Match_26__markAsVisited(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_toStringAux___main___at___private_Lean_Elab_Match_6__elabDiscrsAux___main___spec__2(uint8_t, lean_object*); lean_object* l___private_Lean_Elab_Match_15__processVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_25__alreadyVisited___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_isInaccessible_x3f___boxed(lean_object*); lean_object* l_List_toStringAux___main___at_Lean_Elab_Term_elabMatchAltView___spec__2___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern(lean_object*); extern lean_object* l_Lean_EqnCompiler_matchPatternAttr; extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__6; -lean_object* l___private_Lean_Elab_Match_26__elabMatchCore___closed__4; lean_object* l___private_Lean_Elab_Match_16__processIdAux___closed__1; +lean_object* l___private_Lean_Elab_Match_26__markAsVisited___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Syntax_copyInfo(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAnnotation(lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_16__processIdAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAux___main___at___private_Lean_Elab_Match_16__processIdAux___spec__2(lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__2; +uint8_t l_Lean_Expr_hasExprMVar(lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_String_HasQuote___closed__1; -lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__5; lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous(lean_object*); +lean_object* l_Lean_Elab_Term_ToDepElimPattern_main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_StateT_lift___at___private_Lean_Elab_Match_16__processIdAux___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_25__elabPatterns___spec__2(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_30__elabPatterns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_25__elabPatterns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_9__registerAuxiliaryNodeKind(lean_object*); lean_object* l_Lean_Elab_Term_mkMatchAltView(lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__12; lean_object* l_Nat_repr(lean_object*); lean_object* l___private_Lean_Elab_Match_20__collect(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2; +lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_MessageData_coeOfArrayExpr___closed__2; lean_object* l_Lean_Elab_Term_elabMatchAltView___closed__3; lean_object* l_Lean_Elab_Term_getLocalDecl(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_2__expandSimpleMatchWithType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_5__elabMatchOptType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_9__registerAuxiliaryNodeKind___closed__2; uint8_t l_Lean_LocalDecl_binderInfo(lean_object*); lean_object* l_Lean_Elab_Term_expandMacrosInPatterns(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_logTrace(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__1; lean_object* l_Lean_Elab_Term_mkInaccessible___closed__2; -lean_object* l___private_Lean_Elab_Match_32__mkNewAlts___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2; +lean_object* l_Lean_Elab_Term_inaccessible_x3f___boxed(lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__4(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_15__processVar___closed__4; lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l_Lean_choiceKind; extern lean_object* l_List_repr___rarg___closed__2; lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__3; +lean_object* l___private_Lean_Elab_Match_29__getFieldsBinderInfo(lean_object*); +lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__2; lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; lean_object* l_Lean_Elab_expandMacros___main(lean_object*, lean_object*, lean_object*, lean_object*); @@ -254,69 +287,80 @@ extern lean_object* l_List_reprAux___main___rarg___closed__1; lean_object* l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__6; lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_32__mkNewAlts___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_37__mkNewAlts___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*); +lean_object* l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Name_isAtomic(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6; lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg___closed__1; lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_25__alreadyVisited(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_expandMacrosInPatterns___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__1; +lean_object* l___private_Lean_Elab_Match_35__mkNewPatterns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__6; extern lean_object* l_Lean_Options_empty; +lean_object* l___private_Lean_Elab_Match_30__elabPatterns___closed__3; lean_object* l_List_toStringAux___main___at___private_Lean_Elab_Match_6__elabDiscrsAux___main___spec__2___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__3; lean_object* l_StateT_bind___at___private_Lean_Elab_Match_16__processIdAux___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_filterAux___main___at___private_Lean_Elab_Match_8__getMatchAlts___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabInaccessible(lean_object*); lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__3; +uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_38__expandMatchDiscr_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_25__elabPatterns___closed__3; +uint8_t l_Array_isEmpty___rarg(lean_object*); extern lean_object* l_Lean_Parser_Term_arrow___elambda__1___closed__2; lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_30__mkNewPatterns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_31__elabMatchCore___closed__6; lean_object* l_Lean_Meta_mkFreshId___rarg(lean_object*); extern lean_object* l_Lean_Parser_Term_inaccessible___elambda__1___closed__1; lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___closed__2; extern lean_object* l_Lean_Parser_Term_let___elambda__1___closed__2; +lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_redLength___main___rarg(lean_object*); lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__6; -lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_inaccessible_x3f(lean_object*); +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Elab_Util_4__regTraceClasses___closed__1; -lean_object* l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___closed__1; lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg___closed__3; uint8_t l_Lean_Expr_isForall(lean_object*); lean_object* l_Lean_Meta_whnf(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkInaccessible(lean_object*); lean_object* l_Lean_mkFVar(lean_object*); +uint8_t l_Lean_Expr_isAppOfArity___main(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__1; uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); extern lean_object* l_Lean_NameSet_empty; -lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__11; lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__7; lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_PatternVar_hasToString___closed__1; +lean_object* l_Lean_LocalDecl_fvarId(lean_object*); +lean_object* l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f___closed__1; extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Lean_MessageData_ofArray(lean_object*); lean_object* l_List_toString___at_Lean_Elab_Term_elabMatchAltView___spec__1(lean_object*); extern lean_object* l_Lean_Meta_mkEqRefl___closed__2; -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_32__mkNewAlts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_termElabAttribute; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_expandMacrosInPatterns___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__elabMatchCore___spec__1(lean_object*, lean_object*); lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkInaccessible___closed__1; lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_DepElim_mkElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__1; lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_withRef(lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_32__mkMatchType(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_15__processVar___closed__7; extern lean_object* l_Lean_Parser_Command_openRenamingItem___elambda__1___closed__5; lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__2; @@ -326,27 +370,36 @@ lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1(lean_object*, lean_ob lean_object* l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__3; extern lean_object* l_Lean_Syntax_inhabited; lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern uint8_t l_Lean_BinderInfo_inhabited; lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__1; lean_object* l_Lean_Elab_Term_elabMVarWithIdKind___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_isAnnotation_x3f(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3; lean_object* l_List_map___main___at_Lean_MessageData_coeOfListExpr___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__8; lean_object* l___private_Lean_Elab_Match_13__getNumExplicitCtorParams(lean_object*, lean_object*, lean_object*); lean_object* l_StateT_lift___at___private_Lean_Elab_Match_16__processIdAux___spec__1(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Term_finalizePatternDecls___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_mkMotiveType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkHole(lean_object*); lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3; extern lean_object* l_Lean_Parser_Term_inaccessible___elambda__1___closed__2; lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_36__mkNewAlt(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_main_module(lean_object*); +uint8_t lean_expr_eqv(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__3; +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__3; +lean_object* l___private_Lean_Elab_Match_31__elabMatchCore(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux(lean_object*); +lean_object* l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__6; +lean_object* l_Lean_Expr_getRevArg_x21___main(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__5; -lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__4; +lean_object* l_Lean_Elab_Term_mkMotiveType___closed__1; +lean_object* l_Lean_mkApp(lean_object*, lean_object*); extern lean_object* l_Lean_SourceInfo_inhabited___closed__1; lean_object* l_Lean_Elab_Term_elabInaccessible___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_18__processId(lean_object*, lean_object*, lean_object*, lean_object*); @@ -357,85 +410,101 @@ lean_object* l___private_Lean_Elab_Match_23__withPatternVars(lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__2; uint8_t l_Lean_BinderInfo_isExplicit(uint8_t); lean_object* l_Lean_Syntax_getKind(lean_object*); +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_20__collect___main___spec__3___closed__3; lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___closed__3; +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__elabMatchCore___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_setOptionFromString___closed__1; -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_32__mkNewAlts___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_20__collect___main(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_30__mkNewPatterns___main___closed__1; -lean_object* l___private_Lean_Elab_Match_30__mkNewPatterns___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__1; +lean_object* l___private_Lean_Elab_Match_31__elabMatchCore___closed__3; lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected___rarg___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5; uint8_t l_Lean_TagAttribute_hasTag(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__9; +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_14__throwAmbiguous___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Util_1__mkPanicMessage___closed__2; lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__8; -lean_object* l___private_Lean_Elab_Match_31__mkNewAlt(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__2; extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__1; lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__4; lean_object* l_Lean_Parser_registerBuiltinNodeKind(lean_object*, lean_object*); extern lean_object* l_Lean_mkHole___closed__1; -lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7; lean_object* l_Lean_Elab_Term_isExprMVarAssigned(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_31__elabMatchCore___closed__5; lean_object* l___regBuiltin_Lean_Elab_Term_elabMatch___closed__1; lean_object* l___private_Lean_Elab_Match_9__registerAuxiliaryNodeKind___closed__1; +lean_object* l___private_Lean_Elab_Match_36__mkNewAlt___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Closure_mkNextUserName___rarg___closed__2; lean_object* l___private_Lean_Elab_Match_24__elabPatternsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_26__elabMatchCore___closed__3; lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_letIdDecl___closed__2; +uint8_t l_Lean_Expr_isFVar(lean_object*); extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__1; +lean_object* l___private_Lean_Elab_Match_37__mkNewAlts___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__9; lean_object* l_Lean_Elab_Term_withSynthesize___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_4__expandMatchOptType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); extern lean_object* l_Lean_TraceState_Inhabited___closed__1; +lean_object* l_Lean_Elab_Term_mkMotiveType___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkTermIdFrom(lean_object*, lean_object*); +lean_object* l_Lean_Expr_arrayLit_x3f(lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__1; extern lean_object* l_Lean_Parser_Term_matchAlt___closed__2; -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__3(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_12__throwCtorExpected(lean_object*); +lean_object* l_Lean_Meta_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkFreshExprMVarWithId(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); -lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__3; +uint8_t l_Lean_Expr_isStringLit(lean_object*); +lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_List_toString___at___private_Lean_Elab_Match_6__elabDiscrsAux___main___spec__1(lean_object*); lean_object* l___private_Lean_Elab_Match_15__processVar___closed__3; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_32__mkMatchType___main___closed__7; lean_object* l___private_Lean_Elab_Match_1__expandSimpleMatch___closed__4; lean_object* l_Lean_Elab_Term_elabMatchAltView___closed__1; lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__11; extern lean_object* l_Lean_mkHole___closed__2; lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__11; -lean_object* l___private_Lean_Elab_Match_27__mkMatchType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__10; -lean_object* l___private_Lean_Elab_Match_26__elabMatchCore___closed__5; +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_37__mkNewAlts___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_15__processVar___closed__6; +lean_object* l___private_Lean_Elab_Match_32__mkMatchType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_6__forallTelescopeReducingAux___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_30__mkNewPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__5(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* lean_nat_mod(lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_CollectPatternVars_main(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; +lean_object* l___private_Lean_Elab_Match_32__mkMatchType___main___closed__5; lean_object* l_List_map___main___at___private_Lean_Elab_Match_16__processIdAux___spec__3(lean_object*); extern lean_object* l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +lean_object* l___private_Lean_Elab_Match_32__mkMatchType___main___closed__3; lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_34__mkNewDiscrs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__5; extern lean_object* l_Nat_Inhabited; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__3; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(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_Elab_Term_PatternVar_hasToString(lean_object*); lean_object* l___private_Lean_Meta_Basic_5__forallTelescopeReducingAuxAux___main___at___private_Lean_Elab_Match_13__getNumExplicitCtorParams___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__13; +lean_object* l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__5; lean_object* l___private_Lean_Elab_Match_7__elabDiscrs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind___closed__1; lean_object* l_List_toStringAux___main___at_Lean_Elab_Term_elabMatchAltView___spec__2(uint8_t, lean_object*); @@ -446,35 +515,40 @@ extern lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__1; lean_object* l_Lean_indentExpr(lean_object*); extern lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__8; lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Match_22__withPatternVarsAux___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_32__mkNewAlts___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_11__getMVarSyntaxMVarId(lean_object*); +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_2__fromMetaException(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___closed__2; lean_object* l___private_Lean_Elab_Match_22__withPatternVarsAux___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2; -lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__6; +lean_object* l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__3; extern lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__1; lean_object* l___private_Lean_Elab_Match_7__elabDiscrs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Elab_Match_32__mkMatchType___main___closed__2; lean_object* l___private_Lean_Elab_Match_15__processVar___closed__5; lean_object* l___private_Lean_Elab_Match_16__processIdAux___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabMVarWithIdKind(lean_object*); lean_object* l___private_Lean_Elab_Match_17__processCtor(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__9; lean_object* l___private_Lean_Elab_Match_16__processIdAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_forallTelescopeReducing___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_4__expandMatchOptType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__3; extern lean_object* l_Lean_Parser_Term_char___elambda__1___closed__1; +lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___main(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__1; lean_object* l___private_Lean_Elab_Match_5__elabMatchOptType___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Elab_Match_31__mkNewAlt___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Match_19__throwInvalidPattern___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_replaceRef(lean_object*, lean_object*); lean_object* l_Lean_Meta_getFVarLocalDecl(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +lean_object* l_Lean_mkThunk(lean_object*); lean_object* l___private_Lean_Elab_Match_6__elabDiscrsAux___main___closed__6; +lean_object* l___private_Lean_Elab_Match_32__mkMatchType___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkMatchAltView(lean_object* x_1) { _start: { @@ -2391,20 +2465,20 @@ x_3 = l_Lean_mkAnnotation(x_2, x_1); return x_3; } } -lean_object* l_Lean_Elab_Term_isInaccessible_x3f(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_inaccessible_x3f(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l_Lean_Elab_Term_mkInaccessible___closed__2; -x_3 = l_Lean_isAnnotation_x3f(x_2, x_1); +x_3 = l_Lean_annotation_x3f(x_2, x_1); return x_3; } } -lean_object* l_Lean_Elab_Term_isInaccessible_x3f___boxed(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_inaccessible_x3f___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Elab_Term_isInaccessible_x3f(x_1); +x_2 = l_Lean_Elab_Term_inaccessible_x3f(x_1); lean_dec(x_1); return x_2; } @@ -16095,7 +16169,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Util_4__regTraceClasses___closed__1; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -16948,206 +17022,208 @@ x_8 = lean_nat_dec_lt(x_2, x_7); lean_dec(x_7); if (x_8 == 0) { -lean_object* x_9; +lean_object* x_9; lean_object* x_10; lean_dec(x_5); -lean_dec(x_3); lean_dec(x_2); x_9 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_9, 0, x_4); -lean_ctor_set(x_9, 1, x_6); -return x_9; -} -else -{ -lean_object* x_10; -lean_inc(x_5); -x_10 = l_Lean_Elab_Term_whnf(x_3, x_5, x_6); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -if (lean_obj_tag(x_11) == 7) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -x_14 = lean_ctor_get(x_11, 2); -lean_inc(x_14); -lean_dec(x_11); -x_15 = lean_array_fget(x_1, x_2); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_13); -x_17 = 1; -lean_inc(x_5); -lean_inc(x_16); -lean_inc(x_15); -x_18 = l_Lean_Elab_Term_elabTerm(x_15, x_16, x_17, x_5, x_12); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -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 = lean_ctor_get(x_5, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_5, 1); -lean_inc(x_22); -x_23 = lean_ctor_get(x_5, 2); -lean_inc(x_23); -x_24 = lean_ctor_get(x_5, 3); -lean_inc(x_24); -x_25 = lean_ctor_get(x_5, 4); -lean_inc(x_25); -x_26 = lean_ctor_get(x_5, 5); -lean_inc(x_26); -x_27 = lean_ctor_get(x_5, 6); -lean_inc(x_27); -x_28 = lean_ctor_get(x_5, 7); -lean_inc(x_28); -x_29 = lean_ctor_get(x_5, 8); -lean_inc(x_29); -x_30 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); -x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 1); -x_32 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 2); -x_33 = lean_ctor_get(x_5, 9); -lean_inc(x_33); -x_34 = l_Lean_Elab_replaceRef(x_15, x_33); -lean_dec(x_33); -lean_dec(x_15); -x_35 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_35, 0, x_21); -lean_ctor_set(x_35, 1, x_22); -lean_ctor_set(x_35, 2, x_23); -lean_ctor_set(x_35, 3, x_24); -lean_ctor_set(x_35, 4, x_25); -lean_ctor_set(x_35, 5, x_26); -lean_ctor_set(x_35, 6, x_27); -lean_ctor_set(x_35, 7, x_28); -lean_ctor_set(x_35, 8, x_29); -lean_ctor_set(x_35, 9, x_34); -lean_ctor_set_uint8(x_35, sizeof(void*)*10, x_30); -lean_ctor_set_uint8(x_35, sizeof(void*)*10 + 1, x_31); -lean_ctor_set_uint8(x_35, sizeof(void*)*10 + 2, x_32); -x_36 = l_Lean_Elab_Term_ensureHasType(x_16, x_19, x_35, x_20); -if (lean_obj_tag(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; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = lean_unsigned_to_nat(1u); -x_40 = lean_nat_add(x_2, x_39); -lean_dec(x_2); -x_41 = lean_expr_instantiate1(x_14, x_37); -lean_dec(x_14); -x_42 = lean_array_push(x_4, x_37); -x_2 = x_40; -x_3 = x_41; -x_4 = x_42; -x_6 = x_38; -goto _start; -} -else -{ -uint8_t x_44; -lean_dec(x_14); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_44 = !lean_is_exclusive(x_36); -if (x_44 == 0) -{ -return x_36; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_36, 0); -x_46 = lean_ctor_get(x_36, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_36); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -else -{ -uint8_t x_48; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_48 = !lean_is_exclusive(x_18); -if (x_48 == 0) -{ -return x_18; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_18, 0); -x_50 = lean_ctor_get(x_18, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_18); -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 -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -lean_dec(x_11); -lean_dec(x_4); -lean_dec(x_2); -x_52 = lean_ctor_get(x_10, 1); -lean_inc(x_52); -lean_dec(x_10); -x_53 = l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3; -x_54 = l_Lean_Elab_Term_throwError___rarg(x_53, x_5, x_52); -return x_54; -} -} -else -{ -uint8_t x_55; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_55 = !lean_is_exclusive(x_10); -if (x_55 == 0) -{ +lean_ctor_set(x_9, 1, x_3); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_6); return x_10; } else { -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_10, 0); -x_57 = lean_ctor_get(x_10, 1); +lean_object* x_11; +lean_inc(x_5); +x_11 = l_Lean_Elab_Term_whnf(x_3, x_5, x_6); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 7) +{ +lean_object* x_13; 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_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +x_15 = lean_ctor_get(x_12, 2); +lean_inc(x_15); +lean_dec(x_12); +x_16 = lean_array_fget(x_1, x_2); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_14); +x_18 = 1; +lean_inc(x_5); +lean_inc(x_17); +lean_inc(x_16); +x_19 = l_Lean_Elab_Term_elabTerm(x_16, x_17, x_18, x_5, x_13); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_ctor_get(x_5, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_5, 1); +lean_inc(x_23); +x_24 = lean_ctor_get(x_5, 2); +lean_inc(x_24); +x_25 = lean_ctor_get(x_5, 3); +lean_inc(x_25); +x_26 = lean_ctor_get(x_5, 4); +lean_inc(x_26); +x_27 = lean_ctor_get(x_5, 5); +lean_inc(x_27); +x_28 = lean_ctor_get(x_5, 6); +lean_inc(x_28); +x_29 = lean_ctor_get(x_5, 7); +lean_inc(x_29); +x_30 = lean_ctor_get(x_5, 8); +lean_inc(x_30); +x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); +x_32 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 1); +x_33 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 2); +x_34 = lean_ctor_get(x_5, 9); +lean_inc(x_34); +x_35 = l_Lean_Elab_replaceRef(x_16, x_34); +lean_dec(x_34); +lean_dec(x_16); +x_36 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_36, 0, x_22); +lean_ctor_set(x_36, 1, x_23); +lean_ctor_set(x_36, 2, x_24); +lean_ctor_set(x_36, 3, x_25); +lean_ctor_set(x_36, 4, x_26); +lean_ctor_set(x_36, 5, x_27); +lean_ctor_set(x_36, 6, x_28); +lean_ctor_set(x_36, 7, x_29); +lean_ctor_set(x_36, 8, x_30); +lean_ctor_set(x_36, 9, x_35); +lean_ctor_set_uint8(x_36, sizeof(void*)*10, x_31); +lean_ctor_set_uint8(x_36, sizeof(void*)*10 + 1, x_32); +lean_ctor_set_uint8(x_36, sizeof(void*)*10 + 2, x_33); +x_37 = l_Lean_Elab_Term_ensureHasType(x_17, x_20, x_36, x_21); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_unsigned_to_nat(1u); +x_41 = lean_nat_add(x_2, x_40); +lean_dec(x_2); +x_42 = lean_expr_instantiate1(x_15, x_38); +lean_dec(x_15); +x_43 = lean_array_push(x_4, x_38); +x_2 = x_41; +x_3 = x_42; +x_4 = x_43; +x_6 = x_39; +goto _start; +} +else +{ +uint8_t x_45; +lean_dec(x_15); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_45 = !lean_is_exclusive(x_37); +if (x_45 == 0) +{ +return x_37; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_37, 0); +x_47 = lean_ctor_get(x_37, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_37); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +else +{ +uint8_t x_49; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_49 = !lean_is_exclusive(x_19); +if (x_49 == 0) +{ +return x_19; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_19, 0); +x_51 = lean_ctor_get(x_19, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_19); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_dec(x_12); +lean_dec(x_4); +lean_dec(x_2); +x_53 = lean_ctor_get(x_11, 1); +lean_inc(x_53); +lean_dec(x_11); +x_54 = l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3; +x_55 = l_Lean_Elab_Term_throwError___rarg(x_54, x_5, x_53); +return x_55; +} +} +else +{ +uint8_t x_56; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_56 = !lean_is_exclusive(x_11); +if (x_56 == 0) +{ +return x_11; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_11, 0); +x_58 = lean_ctor_get(x_11, 1); +lean_inc(x_58); lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_10); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; +lean_dec(x_11); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; } } } @@ -17364,7 +17440,2219 @@ lean_dec(x_1); return x_4; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_25__elabPatterns___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_25__alreadyVisited(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; lean_object* x_7; lean_object* x_8; +x_5 = l_Lean_NameSet_contains(x_2, x_1); +x_6 = lean_box(x_5); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_2); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_4); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Match_25__alreadyVisited___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Lean_Elab_Match_25__alreadyVisited(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Match_26__markAsVisited(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = lean_box(0); +x_6 = l_Std_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_2, x_1, x_5); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_7, 1, x_6); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_4); +return x_8; +} +} +lean_object* l___private_Lean_Elab_Match_26__markAsVisited___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Lean_Elab_Match_26__markAsVisited(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* _init_l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("invalid pattern "); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___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_Elab_Match_27__throwInvalidPattern___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_5 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_5, 0, x_1); +x_6 = l_Lean_indentExpr(x_5); +x_7 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__3; +x_8 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_6); +x_9 = l_Lean_Elab_Term_throwError___rarg(x_8, x_3, x_4); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +return x_9; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_9); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +} +lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_2); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_3) == 7) +{ +lean_object* x_5; uint64_t x_6; lean_object* x_7; uint8_t x_8; +x_5 = lean_ctor_get(x_3, 2); +x_6 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); +x_7 = lean_ctor_get(x_1, 3); +x_8 = lean_nat_dec_lt(x_2, x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_2, x_9); +lean_dec(x_2); +x_11 = (uint8_t)((x_6 << 24) >> 61); +x_12 = lean_box(x_11); +x_13 = lean_array_push(x_4, x_12); +x_2 = x_10; +x_3 = x_5; +x_4 = x_13; +goto _start; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_unsigned_to_nat(1u); +x_16 = lean_nat_add(x_2, x_15); +lean_dec(x_2); +x_2 = x_16; +x_3 = x_5; +goto _start; +} +} +else +{ +lean_dec(x_2); +return x_4; +} +} +} +lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___main(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___main(x_1, x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Match_29__getFieldsBinderInfo(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = lean_ctor_get(x_1, 0); +x_3 = lean_ctor_get(x_2, 2); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_Array_empty___closed__1; +x_6 = l___private_Lean_Elab_Match_28__getFieldsBinderInfoAux___main(x_1, x_4, x_3, x_5); +return x_6; +} +} +lean_object* l___private_Lean_Elab_Match_29__getFieldsBinderInfo___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lean_Elab_Match_29__getFieldsBinderInfo(x_1); +lean_dec(x_1); +return x_2; +} +} +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__1(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; +x_6 = lean_nat_dec_lt(x_5, x_4); +if (x_6 == 0) +{ +uint8_t x_7; +lean_dec(x_5); +x_7 = 0; +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_array_fget(x_3, x_5); +x_9 = l_Lean_LocalDecl_fvarId(x_8); +lean_dec(x_8); +x_10 = lean_name_eq(x_9, x_2); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_5, x_11); +lean_dec(x_5); +x_5 = x_12; +goto _start; +} +else +{ +lean_dec(x_5); +return x_10; +} +} +} +} +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__2(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; +x_6 = lean_nat_dec_lt(x_5, x_4); +if (x_6 == 0) +{ +uint8_t x_7; +lean_dec(x_5); +x_7 = 0; +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_array_fget(x_3, x_5); +x_9 = l_Lean_LocalDecl_fvarId(x_8); +lean_dec(x_8); +x_10 = lean_name_eq(x_9, x_2); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_5, x_11); +lean_dec(x_5); +x_5 = x_12; +goto _start; +} +else +{ +lean_dec(x_5); +return x_10; +} +} +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_array_get_size(x_4); +x_9 = lean_nat_dec_lt(x_3, x_8); +lean_dec(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_10 = x_4; +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_5); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_7); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_26; lean_object* x_27; uint8_t x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; uint8_t x_35; +x_13 = lean_array_fget(x_4, x_3); +x_14 = lean_unsigned_to_nat(0u); +x_15 = lean_array_fset(x_4, x_3, x_14); +x_26 = x_13; +x_31 = l_Lean_BinderInfo_inhabited; +x_32 = lean_box(x_31); +x_33 = lean_array_get(x_32, x_2, x_3); +x_34 = lean_unbox(x_33); +lean_dec(x_33); +x_35 = l_Lean_BinderInfo_isExplicit(x_34); +if (x_35 == 0) +{ +if (lean_obj_tag(x_26) == 1) +{ +lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_36 = lean_ctor_get(x_26, 0); +lean_inc(x_36); +x_37 = lean_array_get_size(x_1); +x_38 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__2(x_1, x_36, x_1, x_37, x_14); +lean_dec(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +lean_dec(x_36); +x_39 = lean_box(0); +x_27 = x_39; +goto block_30; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_40 = l___private_Lean_Elab_Match_25__alreadyVisited(x_36, x_5, x_6, x_7); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_unbox(x_42); +lean_dec(x_42); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_44 = lean_ctor_get(x_40, 1); +lean_inc(x_44); +lean_dec(x_40); +x_45 = lean_ctor_get(x_41, 1); +lean_inc(x_45); +lean_dec(x_41); +x_46 = l_Lean_Expr_fvarId_x21(x_26); +lean_dec(x_26); +x_47 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_47, 0, x_46); +x_48 = l___private_Lean_Elab_Match_26__markAsVisited(x_36, x_45, x_6, x_44); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +x_51 = !lean_is_exclusive(x_49); +if (x_51 == 0) +{ +lean_object* x_52; +x_52 = lean_ctor_get(x_49, 0); +lean_dec(x_52); +lean_ctor_set(x_49, 0, x_47); +x_16 = x_49; +x_17 = x_50; +goto block_25; +} +else +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_49, 1); +lean_inc(x_53); +lean_dec(x_49); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_47); +lean_ctor_set(x_54, 1, x_53); +x_16 = x_54; +x_17 = x_50; +goto block_25; +} +} +else +{ +lean_object* x_55; uint8_t x_56; +lean_dec(x_36); +x_55 = lean_ctor_get(x_40, 1); +lean_inc(x_55); +lean_dec(x_40); +x_56 = !lean_is_exclusive(x_41); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_41, 0); +lean_dec(x_57); +x_58 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_58, 0, x_26); +lean_ctor_set(x_41, 0, x_58); +x_16 = x_41; +x_17 = x_55; +goto block_25; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_41, 1); +lean_inc(x_59); +lean_dec(x_41); +x_60 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_60, 0, x_26); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +x_16 = x_61; +x_17 = x_55; +goto block_25; +} +} +} +} +else +{ +lean_object* x_62; +x_62 = lean_box(0); +x_27 = x_62; +goto block_30; +} +} +else +{ +lean_object* x_63; +lean_inc(x_6); +lean_inc(x_1); +x_63 = l_Lean_Elab_Term_ToDepElimPattern_main___main(x_1, x_26, x_5, x_6, x_7); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_16 = x_64; +x_17 = x_65; +goto block_25; +} +else +{ +uint8_t x_66; +lean_dec(x_15); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_66 = !lean_is_exclusive(x_63); +if (x_66 == 0) +{ +return x_63; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_63, 0); +x_68 = lean_ctor_get(x_63, 1); +lean_inc(x_68); +lean_inc(x_67); +lean_dec(x_63); +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; +} +} +} +block_25: +{ +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_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_3, x_20); +x_22 = x_18; +x_23 = lean_array_fset(x_15, x_3, x_22); +lean_dec(x_3); +x_3 = x_21; +x_4 = x_23; +x_5 = x_19; +x_7 = x_17; +goto _start; +} +block_30: +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_27); +x_28 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_28, 0, x_26); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_5); +x_16 = x_29; +x_17 = x_7; +goto block_25; +} +} +} +} +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4(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; +x_6 = lean_nat_dec_lt(x_5, x_4); +if (x_6 == 0) +{ +uint8_t x_7; +lean_dec(x_5); +x_7 = 0; +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_array_fget(x_3, x_5); +x_9 = l_Lean_LocalDecl_fvarId(x_8); +lean_dec(x_8); +x_10 = lean_name_eq(x_9, x_2); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_5, x_11); +lean_dec(x_5); +x_5 = x_12; +goto _start; +} +else +{ +lean_dec(x_5); +return x_10; +} +} +} +} +lean_object* l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5(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_2) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +lean_dec(x_4); +lean_dec(x_1); +x_6 = lean_box(0); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_6); +lean_ctor_set(x_7, 1, x_3); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_5); +return x_8; +} +else +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_2); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_2, 0); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +lean_inc(x_1); +x_12 = l_Lean_Elab_Term_ToDepElimPattern_main___main(x_1, x_10, x_3, x_4, x_5); +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; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_dec(x_13); +x_17 = l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5(x_1, x_11, x_16, x_4, x_14); +if (lean_obj_tag(x_17) == 0) +{ +uint8_t x_18; +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_17, 0); +x_20 = !lean_is_exclusive(x_19); +if (x_20 == 0) +{ +lean_object* x_21; +x_21 = lean_ctor_get(x_19, 0); +lean_ctor_set(x_2, 1, x_21); +lean_ctor_set(x_2, 0, x_15); +lean_ctor_set(x_19, 0, x_2); +return x_17; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_19, 0); +x_23 = lean_ctor_get(x_19, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_19); +lean_ctor_set(x_2, 1, x_22); +lean_ctor_set(x_2, 0, x_15); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_2); +lean_ctor_set(x_24, 1, x_23); +lean_ctor_set(x_17, 0, x_24); +return x_17; +} +} +else +{ +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; +x_25 = lean_ctor_get(x_17, 0); +x_26 = lean_ctor_get(x_17, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_17); +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +if (lean_is_exclusive(x_25)) { + lean_ctor_release(x_25, 0); + lean_ctor_release(x_25, 1); + x_29 = x_25; +} else { + lean_dec_ref(x_25); + x_29 = lean_box(0); +} +lean_ctor_set(x_2, 1, x_27); +lean_ctor_set(x_2, 0, x_15); +if (lean_is_scalar(x_29)) { + x_30 = lean_alloc_ctor(0, 2, 0); +} else { + x_30 = x_29; +} +lean_ctor_set(x_30, 0, x_2); +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_26); +return x_31; +} +} +else +{ +uint8_t x_32; +lean_dec(x_15); +lean_free_object(x_2); +x_32 = !lean_is_exclusive(x_17); +if (x_32 == 0) +{ +return x_17; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_17, 0); +x_34 = lean_ctor_get(x_17, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_17); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +else +{ +uint8_t x_36; +lean_free_object(x_2); +lean_dec(x_11); +lean_dec(x_4); +lean_dec(x_1); +x_36 = !lean_is_exclusive(x_12); +if (x_36 == 0) +{ +return x_12; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_12, 0); +x_38 = lean_ctor_get(x_12, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_12); +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_2, 0); +x_41 = lean_ctor_get(x_2, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_2); +lean_inc(x_4); +lean_inc(x_1); +x_42 = l_Lean_Elab_Term_ToDepElimPattern_main___main(x_1, x_40, x_3, x_4, x_5); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = lean_ctor_get(x_43, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_dec(x_43); +x_47 = l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5(x_1, x_41, x_46, x_4, x_44); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_50 = x_47; +} else { + lean_dec_ref(x_47); + x_50 = lean_box(0); +} +x_51 = lean_ctor_get(x_48, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_48, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + x_53 = x_48; +} else { + lean_dec_ref(x_48); + x_53 = lean_box(0); +} +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_45); +lean_ctor_set(x_54, 1, x_51); +if (lean_is_scalar(x_53)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_53; +} +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_52); +if (lean_is_scalar(x_50)) { + x_56 = lean_alloc_ctor(0, 2, 0); +} else { + x_56 = x_50; +} +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_49); +return x_56; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +lean_dec(x_45); +x_57 = lean_ctor_get(x_47, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_47, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + x_59 = x_47; +} else { + lean_dec_ref(x_47); + x_59 = lean_box(0); +} +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(1, 2, 0); +} else { + x_60 = x_59; +} +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_58); +return x_60; +} +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_41); +lean_dec(x_4); +lean_dec(x_1); +x_61 = lean_ctor_get(x_42, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_42, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_63 = x_42; +} else { + lean_dec_ref(x_42); + x_63 = lean_box(0); +} +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(1, 2, 0); +} else { + x_64 = x_63; +} +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +} +} +} +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__6(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; +x_6 = lean_nat_dec_lt(x_5, x_4); +if (x_6 == 0) +{ +uint8_t x_7; +lean_dec(x_5); +x_7 = 0; +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_array_fget(x_3, x_5); +x_9 = l_Lean_LocalDecl_fvarId(x_8); +lean_dec(x_8); +x_10 = lean_name_eq(x_9, x_2); +lean_dec(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_5, x_11); +lean_dec(x_5); +x_5 = x_12; +goto _start; +} +else +{ +lean_dec(x_5); +return x_10; +} +} +} +} +lean_object* _init_l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("unexpected occurrence of auxiliary declaration 'namedPattern'"); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_ToDepElimPattern_main___main___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_Elab_Term_ToDepElimPattern_main___main(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_Elab_Term_inaccessible_x3f(x_2); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; +x_7 = l_Lean_Expr_arrayLit_x3f(x_2); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = l___private_Lean_Elab_Match_20__collect___main___lambda__2___closed__6; +x_9 = lean_unsigned_to_nat(3u); +x_10 = l_Lean_Expr_isAppOfArity___main(x_2, x_8, x_9); +if (x_10 == 0) +{ +uint8_t x_11; +x_11 = l_Lean_Expr_isNatLit(x_2); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = l_Lean_Expr_isStringLit(x_2); +if (x_12 == 0) +{ +uint8_t x_13; +x_13 = l_Lean_Expr_isCharLit(x_2); +if (x_13 == 0) +{ +uint8_t x_14; +x_14 = l_Lean_Expr_isFVar(x_2); +if (x_14 == 0) +{ +lean_object* x_15; +lean_inc(x_4); +lean_inc(x_2); +x_15 = l_Lean_Elab_Term_whnf(x_2, x_4, x_5); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_expr_eqv(x_16, x_2); +if (x_18 == 0) +{ +lean_dec(x_2); +x_2 = x_16; +x_5 = x_17; +goto _start; +} +else +{ +lean_object* x_20; +lean_dec(x_16); +x_20 = l_Lean_Expr_getAppFn___main(x_2); +if (lean_obj_tag(x_20) == 4) +{ +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_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_Elab_Term_getEnv___rarg(x_17); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +lean_inc(x_21); +x_26 = lean_environment_find(x_24, x_21); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_1); +x_27 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg(x_2, x_3, x_4, x_25); +lean_dec(x_3); +return x_27; +} +else +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_inc(x_28); +lean_dec(x_26); +if (lean_obj_tag(x_28) == 6) +{ +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; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +lean_dec(x_28); +x_30 = lean_unsigned_to_nat(0u); +x_31 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_30); +x_32 = l_Lean_Expr_getAppArgs___closed__1; +lean_inc(x_31); +x_33 = lean_mk_array(x_31, x_32); +x_34 = lean_unsigned_to_nat(1u); +x_35 = lean_nat_sub(x_31, x_34); +lean_dec(x_31); +lean_inc(x_2); +x_36 = l___private_Lean_Expr_3__getAppArgsAux___main(x_2, x_33, x_35); +x_37 = lean_array_get_size(x_36); +x_38 = lean_ctor_get(x_29, 3); +lean_inc(x_38); +x_39 = lean_ctor_get(x_29, 4); +lean_inc(x_39); +x_40 = lean_nat_add(x_38, x_39); +lean_dec(x_39); +x_41 = lean_nat_dec_eq(x_37, x_40); +lean_dec(x_40); +x_42 = l_Array_extract___rarg(x_36, x_30, x_38); +x_43 = l_Array_extract___rarg(x_36, x_38, x_37); +lean_dec(x_37); +lean_dec(x_36); +x_44 = l___private_Lean_Elab_Match_29__getFieldsBinderInfo(x_29); +lean_dec(x_29); +x_45 = x_43; +x_46 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3___boxed), 7, 4); +lean_closure_set(x_46, 0, x_1); +lean_closure_set(x_46, 1, x_44); +lean_closure_set(x_46, 2, x_30); +lean_closure_set(x_46, 3, x_45); +if (x_41 == 0) +{ +uint8_t x_83; +x_83 = 0; +x_47 = x_83; +goto block_82; +} +else +{ +uint8_t x_84; +x_84 = 1; +x_47 = x_84; +goto block_82; +} +block_82: +{ +if (x_47 == 0) +{ +lean_object* x_48; uint8_t x_49; +lean_dec(x_46); +lean_dec(x_42); +lean_dec(x_22); +lean_dec(x_21); +x_48 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg(x_2, x_3, x_4, x_25); +lean_dec(x_3); +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) +{ +return x_48; +} +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; +} +} +else +{ +lean_object* x_53; lean_object* x_54; +lean_dec(x_2); +x_53 = x_46; +x_54 = lean_apply_3(x_53, x_3, x_4, x_25); +if (lean_obj_tag(x_54) == 0) +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) +{ +lean_object* x_56; uint8_t x_57; +x_56 = lean_ctor_get(x_54, 0); +x_57 = !lean_is_exclusive(x_56); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_58 = lean_ctor_get(x_56, 0); +x_59 = l_Array_toList___rarg(x_42); +lean_dec(x_42); +x_60 = l_Array_toList___rarg(x_58); +lean_dec(x_58); +x_61 = lean_alloc_ctor(2, 4, 0); +lean_ctor_set(x_61, 0, x_21); +lean_ctor_set(x_61, 1, x_22); +lean_ctor_set(x_61, 2, x_59); +lean_ctor_set(x_61, 3, x_60); +lean_ctor_set(x_56, 0, x_61); +return x_54; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_62 = lean_ctor_get(x_56, 0); +x_63 = lean_ctor_get(x_56, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_56); +x_64 = l_Array_toList___rarg(x_42); +lean_dec(x_42); +x_65 = l_Array_toList___rarg(x_62); +lean_dec(x_62); +x_66 = lean_alloc_ctor(2, 4, 0); +lean_ctor_set(x_66, 0, x_21); +lean_ctor_set(x_66, 1, x_22); +lean_ctor_set(x_66, 2, x_64); +lean_ctor_set(x_66, 3, x_65); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_63); +lean_ctor_set(x_54, 0, x_67); +return x_54; +} +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_68 = lean_ctor_get(x_54, 0); +x_69 = lean_ctor_get(x_54, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_54); +x_70 = lean_ctor_get(x_68, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_68, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + lean_ctor_release(x_68, 1); + x_72 = x_68; +} else { + lean_dec_ref(x_68); + x_72 = lean_box(0); +} +x_73 = l_Array_toList___rarg(x_42); +lean_dec(x_42); +x_74 = l_Array_toList___rarg(x_70); +lean_dec(x_70); +x_75 = lean_alloc_ctor(2, 4, 0); +lean_ctor_set(x_75, 0, x_21); +lean_ctor_set(x_75, 1, x_22); +lean_ctor_set(x_75, 2, x_73); +lean_ctor_set(x_75, 3, x_74); +if (lean_is_scalar(x_72)) { + x_76 = lean_alloc_ctor(0, 2, 0); +} else { + x_76 = x_72; +} +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_71); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_69); +return x_77; +} +} +else +{ +uint8_t x_78; +lean_dec(x_42); +lean_dec(x_22); +lean_dec(x_21); +x_78 = !lean_is_exclusive(x_54); +if (x_78 == 0) +{ +return x_54; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_54, 0); +x_80 = lean_ctor_get(x_54, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_54); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +} +} +else +{ +lean_object* x_85; +lean_dec(x_28); +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_1); +x_85 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg(x_2, x_3, x_4, x_25); +lean_dec(x_3); +return x_85; +} +} +} +else +{ +lean_object* x_86; +lean_dec(x_20); +lean_dec(x_1); +x_86 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg(x_2, x_3, x_4, x_17); +lean_dec(x_3); +return x_86; +} +} +} +else +{ +uint8_t x_87; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_87 = !lean_is_exclusive(x_15); +if (x_87 == 0) +{ +return x_15; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_15, 0); +x_89 = lean_ctor_get(x_15, 1); +lean_inc(x_89); +lean_inc(x_88); +lean_dec(x_15); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +return x_90; +} +} +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; uint8_t x_95; +x_91 = l_Lean_Expr_fvarId_x21(x_2); +x_92 = lean_array_get_size(x_1); +x_93 = lean_unsigned_to_nat(0u); +x_94 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4(x_1, x_91, x_1, x_92, x_93); +lean_dec(x_92); +lean_dec(x_1); +if (x_94 == 0) +{ +uint8_t x_136; +x_136 = 0; +x_95 = x_136; +goto block_135; +} +else +{ +uint8_t x_137; +x_137 = 1; +x_95 = x_137; +goto block_135; +} +block_135: +{ +if (x_95 == 0) +{ +lean_object* x_96; uint8_t x_97; +lean_dec(x_91); +x_96 = l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg(x_2, x_3, x_4, x_5); +lean_dec(x_3); +x_97 = !lean_is_exclusive(x_96); +if (x_97 == 0) +{ +return x_96; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_96, 0); +x_99 = lean_ctor_get(x_96, 1); +lean_inc(x_99); +lean_inc(x_98); +lean_dec(x_96); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +return x_100; +} +} +else +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_101 = l___private_Lean_Elab_Match_25__alreadyVisited(x_91, x_3, x_4, x_5); +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_unbox(x_103); +lean_dec(x_103); +if (x_104 == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; +lean_dec(x_2); +x_105 = lean_ctor_get(x_101, 1); +lean_inc(x_105); +lean_dec(x_101); +x_106 = lean_ctor_get(x_102, 1); +lean_inc(x_106); +lean_dec(x_102); +lean_inc(x_91); +x_107 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_107, 0, x_91); +x_108 = l___private_Lean_Elab_Match_26__markAsVisited(x_91, x_106, x_4, x_105); +lean_dec(x_4); +x_109 = !lean_is_exclusive(x_108); +if (x_109 == 0) +{ +lean_object* x_110; uint8_t x_111; +x_110 = lean_ctor_get(x_108, 0); +x_111 = !lean_is_exclusive(x_110); +if (x_111 == 0) +{ +lean_object* x_112; +x_112 = lean_ctor_get(x_110, 0); +lean_dec(x_112); +lean_ctor_set(x_110, 0, x_107); +return x_108; +} +else +{ +lean_object* x_113; lean_object* x_114; +x_113 = lean_ctor_get(x_110, 1); +lean_inc(x_113); +lean_dec(x_110); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_107); +lean_ctor_set(x_114, 1, x_113); +lean_ctor_set(x_108, 0, x_114); +return x_108; +} +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_115 = lean_ctor_get(x_108, 0); +x_116 = lean_ctor_get(x_108, 1); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_108); +x_117 = lean_ctor_get(x_115, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_118 = x_115; +} else { + lean_dec_ref(x_115); + x_118 = lean_box(0); +} +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(0, 2, 0); +} else { + x_119 = x_118; +} +lean_ctor_set(x_119, 0, x_107); +lean_ctor_set(x_119, 1, x_117); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_116); +return x_120; +} +} +else +{ +uint8_t x_121; +lean_dec(x_91); +lean_dec(x_4); +x_121 = !lean_is_exclusive(x_101); +if (x_121 == 0) +{ +lean_object* x_122; uint8_t x_123; +x_122 = lean_ctor_get(x_101, 0); +lean_dec(x_122); +x_123 = !lean_is_exclusive(x_102); +if (x_123 == 0) +{ +lean_object* x_124; lean_object* x_125; +x_124 = lean_ctor_get(x_102, 0); +lean_dec(x_124); +x_125 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_125, 0, x_2); +lean_ctor_set(x_102, 0, x_125); +return x_101; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_126 = lean_ctor_get(x_102, 1); +lean_inc(x_126); +lean_dec(x_102); +x_127 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_127, 0, x_2); +x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_126); +lean_ctor_set(x_101, 0, x_128); +return x_101; +} +} +else +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_129 = lean_ctor_get(x_101, 1); +lean_inc(x_129); +lean_dec(x_101); +x_130 = lean_ctor_get(x_102, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_131 = x_102; +} else { + lean_dec_ref(x_102); + x_131 = lean_box(0); +} +x_132 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_132, 0, x_2); +if (lean_is_scalar(x_131)) { + x_133 = lean_alloc_ctor(0, 2, 0); +} else { + x_133 = x_131; +} +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_130); +x_134 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_129); +return x_134; +} +} +} +} +} +} +else +{ +lean_object* x_138; lean_object* x_139; lean_object* x_140; +lean_dec(x_4); +lean_dec(x_1); +x_138 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_138, 0, x_2); +x_139 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_3); +x_140 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_5); +return x_140; +} +} +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; +lean_dec(x_4); +lean_dec(x_1); +x_141 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_141, 0, x_2); +x_142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_3); +x_143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_5); +return x_143; +} +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; +lean_dec(x_4); +lean_dec(x_1); +x_144 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_144, 0, x_2); +x_145 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_3); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_5); +return x_146; +} +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_147 = lean_unsigned_to_nat(0u); +x_148 = l_Lean_Expr_getAppNumArgsAux___main(x_2, x_147); +x_149 = lean_unsigned_to_nat(2u); +x_150 = lean_nat_sub(x_148, x_149); +x_151 = lean_unsigned_to_nat(1u); +x_152 = lean_nat_sub(x_150, x_151); +lean_dec(x_150); +x_153 = l_Lean_Expr_getRevArg_x21___main(x_2, x_152); +lean_inc(x_4); +x_154 = l_Lean_Elab_Term_ToDepElimPattern_main___main(x_1, x_153, x_3, x_4, x_5); +if (lean_obj_tag(x_154) == 0) +{ +uint8_t x_155; +x_155 = !lean_is_exclusive(x_154); +if (x_155 == 0) +{ +lean_object* x_156; uint8_t x_157; +x_156 = lean_ctor_get(x_154, 0); +x_157 = !lean_is_exclusive(x_156); +if (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; +x_158 = lean_ctor_get(x_154, 1); +x_159 = lean_ctor_get(x_156, 0); +x_160 = lean_ctor_get(x_156, 1); +x_161 = lean_nat_sub(x_148, x_151); +lean_dec(x_148); +x_162 = lean_nat_sub(x_161, x_151); +lean_dec(x_161); +x_163 = l_Lean_Expr_getRevArg_x21___main(x_2, x_162); +lean_dec(x_2); +if (lean_obj_tag(x_163) == 1) +{ +lean_object* x_164; lean_object* x_165; +lean_dec(x_4); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +lean_dec(x_163); +x_165 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_159); +lean_ctor_set(x_156, 0, x_165); +return x_154; +} +else +{ +lean_object* x_166; lean_object* x_167; uint8_t x_168; +lean_dec(x_163); +lean_free_object(x_156); +lean_dec(x_160); +lean_dec(x_159); +lean_free_object(x_154); +x_166 = l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3; +x_167 = l_Lean_Elab_Term_throwError___rarg(x_166, x_4, x_158); +x_168 = !lean_is_exclusive(x_167); +if (x_168 == 0) +{ +return x_167; +} +else +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_169 = lean_ctor_get(x_167, 0); +x_170 = lean_ctor_get(x_167, 1); +lean_inc(x_170); +lean_inc(x_169); +lean_dec(x_167); +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; +} +} +} +else +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_172 = lean_ctor_get(x_154, 1); +x_173 = lean_ctor_get(x_156, 0); +x_174 = lean_ctor_get(x_156, 1); +lean_inc(x_174); +lean_inc(x_173); +lean_dec(x_156); +x_175 = lean_nat_sub(x_148, x_151); +lean_dec(x_148); +x_176 = lean_nat_sub(x_175, x_151); +lean_dec(x_175); +x_177 = l_Lean_Expr_getRevArg_x21___main(x_2, x_176); +lean_dec(x_2); +if (lean_obj_tag(x_177) == 1) +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; +lean_dec(x_4); +x_178 = lean_ctor_get(x_177, 0); +lean_inc(x_178); +lean_dec(x_177); +x_179 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_179, 0, x_178); +lean_ctor_set(x_179, 1, x_173); +x_180 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_174); +lean_ctor_set(x_154, 0, x_180); +return x_154; +} +else +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; +lean_dec(x_177); +lean_dec(x_174); +lean_dec(x_173); +lean_free_object(x_154); +x_181 = l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3; +x_182 = l_Lean_Elab_Term_throwError___rarg(x_181, x_4, x_172); +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_185 = x_182; +} else { + lean_dec_ref(x_182); + x_185 = lean_box(0); +} +if (lean_is_scalar(x_185)) { + x_186 = lean_alloc_ctor(1, 2, 0); +} else { + x_186 = x_185; +} +lean_ctor_set(x_186, 0, x_183); +lean_ctor_set(x_186, 1, x_184); +return x_186; +} +} +} +else +{ +lean_object* x_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; +x_187 = lean_ctor_get(x_154, 0); +x_188 = lean_ctor_get(x_154, 1); +lean_inc(x_188); +lean_inc(x_187); +lean_dec(x_154); +x_189 = lean_ctor_get(x_187, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_187, 1); +lean_inc(x_190); +if (lean_is_exclusive(x_187)) { + lean_ctor_release(x_187, 0); + lean_ctor_release(x_187, 1); + x_191 = x_187; +} else { + lean_dec_ref(x_187); + x_191 = lean_box(0); +} +x_192 = lean_nat_sub(x_148, x_151); +lean_dec(x_148); +x_193 = lean_nat_sub(x_192, x_151); +lean_dec(x_192); +x_194 = l_Lean_Expr_getRevArg_x21___main(x_2, x_193); +lean_dec(x_2); +if (lean_obj_tag(x_194) == 1) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +lean_dec(x_4); +x_195 = lean_ctor_get(x_194, 0); +lean_inc(x_195); +lean_dec(x_194); +x_196 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_189); +if (lean_is_scalar(x_191)) { + x_197 = lean_alloc_ctor(0, 2, 0); +} else { + x_197 = x_191; +} +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_190); +x_198 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_188); +return x_198; +} +else +{ +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_dec(x_194); +lean_dec(x_191); +lean_dec(x_190); +lean_dec(x_189); +x_199 = l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3; +x_200 = l_Lean_Elab_Term_throwError___rarg(x_199, x_4, x_188); +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +if (lean_is_exclusive(x_200)) { + lean_ctor_release(x_200, 0); + lean_ctor_release(x_200, 1); + x_203 = x_200; +} else { + lean_dec_ref(x_200); + x_203 = lean_box(0); +} +if (lean_is_scalar(x_203)) { + x_204 = lean_alloc_ctor(1, 2, 0); +} else { + x_204 = x_203; +} +lean_ctor_set(x_204, 0, x_201); +lean_ctor_set(x_204, 1, x_202); +return x_204; +} +} +} +else +{ +uint8_t x_205; +lean_dec(x_148); +lean_dec(x_4); +lean_dec(x_2); +x_205 = !lean_is_exclusive(x_154); +if (x_205 == 0) +{ +return x_154; +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_206 = lean_ctor_get(x_154, 0); +x_207 = lean_ctor_get(x_154, 1); +lean_inc(x_207); +lean_inc(x_206); +lean_dec(x_154); +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_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; +lean_dec(x_2); +x_209 = lean_ctor_get(x_7, 0); +lean_inc(x_209); +lean_dec(x_7); +x_210 = lean_ctor_get(x_209, 0); +lean_inc(x_210); +x_211 = lean_ctor_get(x_209, 1); +lean_inc(x_211); +lean_dec(x_209); +x_212 = l_List_mapM___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__5(x_1, x_211, x_3, x_4, x_5); +if (lean_obj_tag(x_212) == 0) +{ +uint8_t x_213; +x_213 = !lean_is_exclusive(x_212); +if (x_213 == 0) +{ +lean_object* x_214; uint8_t x_215; +x_214 = lean_ctor_get(x_212, 0); +x_215 = !lean_is_exclusive(x_214); +if (x_215 == 0) +{ +lean_object* x_216; lean_object* x_217; +x_216 = lean_ctor_get(x_214, 0); +x_217 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_217, 0, x_210); +lean_ctor_set(x_217, 1, x_216); +lean_ctor_set(x_214, 0, x_217); +return x_212; +} +else +{ +lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_218 = lean_ctor_get(x_214, 0); +x_219 = lean_ctor_get(x_214, 1); +lean_inc(x_219); +lean_inc(x_218); +lean_dec(x_214); +x_220 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_220, 0, x_210); +lean_ctor_set(x_220, 1, x_218); +x_221 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_221, 0, x_220); +lean_ctor_set(x_221, 1, x_219); +lean_ctor_set(x_212, 0, x_221); +return x_212; +} +} +else +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_222 = lean_ctor_get(x_212, 0); +x_223 = lean_ctor_get(x_212, 1); +lean_inc(x_223); +lean_inc(x_222); +lean_dec(x_212); +x_224 = lean_ctor_get(x_222, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_222, 1); +lean_inc(x_225); +if (lean_is_exclusive(x_222)) { + lean_ctor_release(x_222, 0); + lean_ctor_release(x_222, 1); + x_226 = x_222; +} else { + lean_dec_ref(x_222); + x_226 = lean_box(0); +} +x_227 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_227, 0, x_210); +lean_ctor_set(x_227, 1, x_224); +if (lean_is_scalar(x_226)) { + x_228 = lean_alloc_ctor(0, 2, 0); +} else { + x_228 = x_226; +} +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_225); +x_229 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_229, 0, x_228); +lean_ctor_set(x_229, 1, x_223); +return x_229; +} +} +else +{ +uint8_t x_230; +lean_dec(x_210); +x_230 = !lean_is_exclusive(x_212); +if (x_230 == 0) +{ +return x_212; +} +else +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; +x_231 = lean_ctor_get(x_212, 0); +x_232 = lean_ctor_get(x_212, 1); +lean_inc(x_232); +lean_inc(x_231); +lean_dec(x_212); +x_233 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_233, 0, x_231); +lean_ctor_set(x_233, 1, x_232); +return x_233; +} +} +} +} +else +{ +lean_object* x_234; lean_object* x_235; +lean_dec(x_2); +x_234 = lean_ctor_get(x_6, 0); +lean_inc(x_234); +lean_dec(x_6); +if (lean_obj_tag(x_234) == 1) +{ +lean_object* x_240; lean_object* x_241; lean_object* x_242; uint8_t x_243; +x_240 = lean_ctor_get(x_234, 0); +lean_inc(x_240); +x_241 = lean_array_get_size(x_1); +x_242 = lean_unsigned_to_nat(0u); +x_243 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__6(x_1, x_240, x_1, x_241, x_242); +lean_dec(x_241); +lean_dec(x_1); +if (x_243 == 0) +{ +lean_object* x_244; +lean_dec(x_240); +lean_dec(x_4); +x_244 = lean_box(0); +x_235 = x_244; +goto block_239; +} +else +{ +lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; +x_245 = l___private_Lean_Elab_Match_25__alreadyVisited(x_240, x_3, x_4, x_5); +x_246 = lean_ctor_get(x_245, 0); +lean_inc(x_246); +x_247 = lean_ctor_get(x_246, 0); +lean_inc(x_247); +x_248 = lean_unbox(x_247); +lean_dec(x_247); +if (x_248 == 0) +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; uint8_t x_254; +x_249 = lean_ctor_get(x_245, 1); +lean_inc(x_249); +lean_dec(x_245); +x_250 = lean_ctor_get(x_246, 1); +lean_inc(x_250); +lean_dec(x_246); +x_251 = l_Lean_Expr_fvarId_x21(x_234); +lean_dec(x_234); +x_252 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_252, 0, x_251); +x_253 = l___private_Lean_Elab_Match_26__markAsVisited(x_240, x_250, x_4, x_249); +lean_dec(x_4); +x_254 = !lean_is_exclusive(x_253); +if (x_254 == 0) +{ +lean_object* x_255; uint8_t x_256; +x_255 = lean_ctor_get(x_253, 0); +x_256 = !lean_is_exclusive(x_255); +if (x_256 == 0) +{ +lean_object* x_257; +x_257 = lean_ctor_get(x_255, 0); +lean_dec(x_257); +lean_ctor_set(x_255, 0, x_252); +return x_253; +} +else +{ +lean_object* x_258; lean_object* x_259; +x_258 = lean_ctor_get(x_255, 1); +lean_inc(x_258); +lean_dec(x_255); +x_259 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_259, 0, x_252); +lean_ctor_set(x_259, 1, x_258); +lean_ctor_set(x_253, 0, x_259); +return x_253; +} +} +else +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_260 = lean_ctor_get(x_253, 0); +x_261 = lean_ctor_get(x_253, 1); +lean_inc(x_261); +lean_inc(x_260); +lean_dec(x_253); +x_262 = lean_ctor_get(x_260, 1); +lean_inc(x_262); +if (lean_is_exclusive(x_260)) { + lean_ctor_release(x_260, 0); + lean_ctor_release(x_260, 1); + x_263 = x_260; +} else { + lean_dec_ref(x_260); + x_263 = lean_box(0); +} +if (lean_is_scalar(x_263)) { + x_264 = lean_alloc_ctor(0, 2, 0); +} else { + x_264 = x_263; +} +lean_ctor_set(x_264, 0, x_252); +lean_ctor_set(x_264, 1, x_262); +x_265 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_265, 0, x_264); +lean_ctor_set(x_265, 1, x_261); +return x_265; +} +} +else +{ +uint8_t x_266; +lean_dec(x_240); +lean_dec(x_4); +x_266 = !lean_is_exclusive(x_245); +if (x_266 == 0) +{ +lean_object* x_267; uint8_t x_268; +x_267 = lean_ctor_get(x_245, 0); +lean_dec(x_267); +x_268 = !lean_is_exclusive(x_246); +if (x_268 == 0) +{ +lean_object* x_269; lean_object* x_270; +x_269 = lean_ctor_get(x_246, 0); +lean_dec(x_269); +x_270 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_270, 0, x_234); +lean_ctor_set(x_246, 0, x_270); +return x_245; +} +else +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; +x_271 = lean_ctor_get(x_246, 1); +lean_inc(x_271); +lean_dec(x_246); +x_272 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_272, 0, x_234); +x_273 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_273, 0, x_272); +lean_ctor_set(x_273, 1, x_271); +lean_ctor_set(x_245, 0, x_273); +return x_245; +} +} +else +{ +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; +x_274 = lean_ctor_get(x_245, 1); +lean_inc(x_274); +lean_dec(x_245); +x_275 = lean_ctor_get(x_246, 1); +lean_inc(x_275); +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + lean_ctor_release(x_246, 1); + x_276 = x_246; +} else { + lean_dec_ref(x_246); + x_276 = lean_box(0); +} +x_277 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_277, 0, x_234); +if (lean_is_scalar(x_276)) { + x_278 = lean_alloc_ctor(0, 2, 0); +} else { + x_278 = x_276; +} +lean_ctor_set(x_278, 0, x_277); +lean_ctor_set(x_278, 1, x_275); +x_279 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_279, 0, x_278); +lean_ctor_set(x_279, 1, x_274); +return x_279; +} +} +} +} +else +{ +lean_object* x_280; +lean_dec(x_4); +lean_dec(x_1); +x_280 = lean_box(0); +x_235 = x_280; +goto block_239; +} +block_239: +{ +lean_object* x_236; lean_object* x_237; lean_object* x_238; +lean_dec(x_235); +x_236 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_236, 0, x_234); +x_237 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_237, 0, x_236); +lean_ctor_set(x_237, 1, x_3); +x_238 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_238, 0, x_237); +lean_ctor_set(x_238, 1, x_5); +return x_238; +} +} +} +} +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__1___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_Elab_Term_ToDepElimPattern_main___main___spec__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__2___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_Elab_Term_ToDepElimPattern_main___main___spec__2(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___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_Array_umapMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_2); +return x_8; +} +} +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__4___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_Elab_Term_ToDepElimPattern_main___main___spec__4(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_ToDepElimPattern_main___main___spec__6___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_Elab_Term_ToDepElimPattern_main___main___spec__6(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = lean_box(x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_Term_ToDepElimPattern_main(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_Elab_Term_ToDepElimPattern_main___main(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +lean_object* l_Lean_Elab_Term_toDepElimPattern(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; +x_5 = l_Lean_NameSet_empty; +x_6 = l_Lean_Elab_Term_ToDepElimPattern_main___main(x_1, x_2, x_5, x_3, x_4); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_6, 0); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +lean_dec(x_8); +lean_ctor_set(x_6, 0, x_9); +return x_6; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_6, 0); +x_11 = lean_ctor_get(x_6, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_6); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +} +else +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_6); +if (x_14 == 0) +{ +return x_6; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_6, 0); +x_16 = lean_ctor_get(x_6, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_6); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -17408,7 +19696,177 @@ goto _start; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_25__elabPatterns___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_array_get_size(x_3); +x_7 = lean_nat_dec_lt(x_2, x_6); +lean_dec(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_8 = x_3; +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_5); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_10 = lean_array_fget(x_3, x_2); +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_array_fset(x_3, x_2, x_11); +x_13 = x_10; +lean_inc(x_4); +lean_inc(x_1); +x_14 = l_Lean_Elab_Term_toDepElimPattern(x_1, x_13, x_4, x_5); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +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_unsigned_to_nat(1u); +x_18 = lean_nat_add(x_2, x_17); +x_19 = x_15; +x_20 = lean_array_fset(x_12, x_2, x_19); +lean_dec(x_2); +x_2 = x_18; +x_3 = x_20; +x_5 = x_16; +goto _start; +} +else +{ +uint8_t x_22; +lean_dec(x_12); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +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* _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("pattern contains metavariables "); +return x_1; +} +} +lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___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_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_get_size(x_1); +x_6 = lean_nat_dec_lt(x_2, x_5); +lean_dec(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +lean_dec(x_2); +x_7 = lean_box(0); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_4); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_array_fget(x_1, x_2); +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_2, x_10); +lean_dec(x_2); +x_12 = l_Lean_Expr_hasExprMVar(x_9); +if (x_12 == 0) +{ +lean_dec(x_9); +x_2 = x_11; +goto _start; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +lean_dec(x_11); +x_14 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_14, 0, x_9); +x_15 = l_Lean_indentExpr(x_14); +x_16 = l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__3; +x_17 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +x_18 = l_Lean_Elab_Term_throwError___rarg(x_17, x_3, x_4); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +return x_18; +} +else +{ +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; +} +} +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__4(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -17424,37 +19882,25 @@ return x_5; } else { -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_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_6 = lean_array_fget(x_2, x_1); x_7 = lean_unsigned_to_nat(0u); x_8 = lean_array_fset(x_2, x_1, x_7); x_9 = x_6; -x_10 = l_Lean_LocalDecl_userName(x_9); -x_11 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_11, 0, x_10); -x_12 = l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; -x_13 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -x_14 = l_Lean_LocalDecl_type(x_9); -lean_dec(x_9); -x_15 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_15, 0, x_14); -x_16 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_16, 0, x_13); -lean_ctor_set(x_16, 1, x_15); -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_1, x_17); -x_19 = x_16; -x_20 = lean_array_fset(x_8, x_1, x_19); +x_10 = 0; +x_11 = l_Lean_Meta_DepElim_Pattern_toMessageData___main(x_10, x_9); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_1, x_12); +x_14 = x_11; +x_15 = lean_array_fset(x_8, x_1, x_14); lean_dec(x_1); -x_1 = x_18; -x_2 = x_20; +x_1 = x_13; +x_2 = x_15; goto _start; } } } -lean_object* _init_l___private_Lean_Elab_Match_25__elabPatterns___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_30__elabPatterns___closed__1() { _start: { lean_object* x_1; @@ -17462,27 +19908,27 @@ x_1 = lean_mk_string("patterns: "); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_25__elabPatterns___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_30__elabPatterns___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_25__elabPatterns___closed__1; +x_1 = l___private_Lean_Elab_Match_30__elabPatterns___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_25__elabPatterns___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_30__elabPatterns___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_25__elabPatterns___closed__2; +x_1 = l___private_Lean_Elab_Match_30__elabPatterns___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_Elab_Match_25__elabPatterns(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_30__elabPatterns(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -17497,252 +19943,583 @@ lean_inc(x_4); x_9 = l_Lean_Elab_Term_withSynthesize___rarg(x_8, x_4, x_5); 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; lean_object* x_15; +lean_object* x_10; lean_object* x_11; uint8_t x_12; 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 = x_10; -x_13 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_25__elabPatterns___spec__1), 4, 2); -lean_closure_set(x_13, 0, x_6); -lean_closure_set(x_13, 1, x_12); -x_14 = x_13; +x_12 = !lean_is_exclusive(x_10); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_10, 0); +x_14 = lean_ctor_get(x_10, 1); lean_inc(x_4); -x_15 = lean_apply_2(x_14, x_4, x_11); +x_15 = l_Lean_Elab_Term_finalizePatternDecls(x_1, x_4, x_11); if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); +x_18 = x_13; +x_19 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__1), 4, 2); +lean_closure_set(x_19, 0, x_6); +lean_closure_set(x_19, 1, x_18); +x_20 = x_19; lean_inc(x_4); -x_18 = l_Lean_Elab_Term_finalizePatternDecls(x_1, x_4, x_17); -if (lean_obj_tag(x_18) == 0) +x_21 = lean_apply_2(x_20, x_4, x_17); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -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_51 = l_Lean_Elab_Term_getOptions(x_4, x_20); -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -lean_dec(x_51); -x_54 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; -x_55 = l_Lean_checkTraceOption(x_52, x_54); -lean_dec(x_52); -if (x_55 == 0) +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +lean_inc(x_22); +x_24 = x_22; +lean_inc(x_16); +x_25 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__2), 5, 3); +lean_closure_set(x_25, 0, x_16); +lean_closure_set(x_25, 1, x_6); +lean_closure_set(x_25, 2, x_24); +lean_inc(x_4); +x_26 = l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3(x_22, x_6, x_4, x_23); +lean_dec(x_22); +if (lean_obj_tag(x_26) == 0) { -lean_dec(x_19); -x_21 = x_53; -goto block_50; -} -else +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = x_25; +lean_inc(x_4); +x_29 = lean_apply_2(x_28, x_4, x_27); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_56 = x_19; -x_57 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_25__elabPatterns___spec__2(x_6, x_56); -x_58 = x_57; -x_59 = l_Lean_MessageData_ofArray(x_58); -lean_dec(x_58); -x_60 = l_Lean_Elab_Term_logTrace(x_54, x_59, x_4, x_53); -x_61 = lean_ctor_get(x_60, 1); -lean_inc(x_61); -lean_dec(x_60); -x_21 = x_61; -goto block_50; -} -block_50: -{ -lean_object* x_22; uint8_t x_23; -x_22 = l_Lean_Elab_Term_getOptions(x_4, x_21); -x_23 = !lean_is_exclusive(x_22); -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_22, 0); -x_25 = lean_ctor_get(x_22, 1); -x_26 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; -x_27 = l_Lean_checkTraceOption(x_24, x_26); -lean_dec(x_24); -if (x_27 == 0) -{ -lean_dec(x_4); -lean_ctor_set(x_22, 0, x_16); -return x_22; -} -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_free_object(x_22); -x_28 = l_Lean_MessageData_coeOfArrayExpr___closed__2; -x_29 = l_Lean_MessageData_arrayExpr_toMessageData___main(x_16, x_6, x_28); -x_30 = l___private_Lean_Elab_Match_25__elabPatterns___closed__3; -x_31 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_29); -x_32 = l_Lean_Elab_Term_logTrace(x_26, x_31, x_4, x_25); -lean_dec(x_4); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) -{ -lean_object* x_34; -x_34 = lean_ctor_get(x_32, 0); -lean_dec(x_34); -lean_ctor_set(x_32, 0, x_16); -return x_32; -} -else -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_dec(x_32); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_16); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -} -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; uint8_t x_36; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = l_Array_toList___rarg(x_16); +lean_dec(x_16); +x_33 = l_Array_toList___rarg(x_30); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +lean_ctor_set(x_10, 0, x_34); +x_35 = l_Lean_Elab_Term_getOptions(x_4, x_31); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) { lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_37 = lean_ctor_get(x_22, 0); -x_38 = lean_ctor_get(x_22, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_22); +x_37 = lean_ctor_get(x_35, 0); +x_38 = lean_ctor_get(x_35, 1); x_39 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; x_40 = l_Lean_checkTraceOption(x_37, x_39); lean_dec(x_37); if (x_40 == 0) { -lean_object* x_41; +lean_dec(x_30); lean_dec(x_4); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_16); -lean_ctor_set(x_41, 1, x_38); -return x_41; +lean_ctor_set(x_35, 0, x_10); +return x_35; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_42 = l_Lean_MessageData_coeOfArrayExpr___closed__2; -x_43 = l_Lean_MessageData_arrayExpr_toMessageData___main(x_16, x_6, x_42); -x_44 = l___private_Lean_Elab_Match_25__elabPatterns___closed__3; -x_45 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_43); -x_46 = l_Lean_Elab_Term_logTrace(x_39, x_45, x_4, x_38); +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; uint8_t x_48; +lean_free_object(x_35); +x_41 = x_30; +x_42 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__4(x_6, x_41); +x_43 = x_42; +x_44 = l_Lean_MessageData_ofArray(x_43); +lean_dec(x_43); +x_45 = l___private_Lean_Elab_Match_30__elabPatterns___closed__3; +x_46 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +x_47 = l_Lean_Elab_Term_logTrace(x_39, x_46, x_4, x_38); lean_dec(x_4); -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_16); -lean_ctor_set(x_49, 1, x_47); -return x_49; +x_48 = !lean_is_exclusive(x_47); +if (x_48 == 0) +{ +lean_object* x_49; +x_49 = lean_ctor_get(x_47, 0); +lean_dec(x_49); +lean_ctor_set(x_47, 0, x_10); +return x_47; } +else +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_47, 1); +lean_inc(x_50); +lean_dec(x_47); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_10); +lean_ctor_set(x_51, 1, x_50); +return x_51; } } } else { -uint8_t x_62; -lean_dec(x_16); -lean_dec(x_4); -x_62 = !lean_is_exclusive(x_18); -if (x_62 == 0) +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_52 = lean_ctor_get(x_35, 0); +x_53 = lean_ctor_get(x_35, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_35); +x_54 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; +x_55 = l_Lean_checkTraceOption(x_52, x_54); +lean_dec(x_52); +if (x_55 == 0) { -return x_18; +lean_object* x_56; +lean_dec(x_30); +lean_dec(x_4); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_10); +lean_ctor_set(x_56, 1, x_53); +return x_56; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_18, 0); -x_64 = lean_ctor_get(x_18, 1); +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_57 = x_30; +x_58 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__4(x_6, x_57); +x_59 = x_58; +x_60 = l_Lean_MessageData_ofArray(x_59); +lean_dec(x_59); +x_61 = l___private_Lean_Elab_Match_30__elabPatterns___closed__3; +x_62 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_60); +x_63 = l_Lean_Elab_Term_logTrace(x_54, x_62, x_4, x_53); +lean_dec(x_4); +x_64 = lean_ctor_get(x_63, 1); lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_18); -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; +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_65 = x_63; +} else { + lean_dec_ref(x_63); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(0, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_10); +lean_ctor_set(x_66, 1, x_64); +return x_66; } } } else { -uint8_t x_66; +uint8_t x_67; +lean_dec(x_16); +lean_free_object(x_10); +lean_dec(x_14); lean_dec(x_4); -x_66 = !lean_is_exclusive(x_15); -if (x_66 == 0) +x_67 = !lean_is_exclusive(x_29); +if (x_67 == 0) +{ +return x_29; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_29, 0); +x_69 = lean_ctor_get(x_29, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_29); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +return x_70; +} +} +} +else +{ +uint8_t x_71; +lean_dec(x_25); +lean_dec(x_16); +lean_free_object(x_10); +lean_dec(x_14); +lean_dec(x_4); +x_71 = !lean_is_exclusive(x_26); +if (x_71 == 0) +{ +return x_26; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_26, 0); +x_73 = lean_ctor_get(x_26, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_26); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_16); +lean_free_object(x_10); +lean_dec(x_14); +lean_dec(x_4); +x_75 = !lean_is_exclusive(x_21); +if (x_75 == 0) +{ +return x_21; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_21, 0); +x_77 = lean_ctor_get(x_21, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_21); +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 +{ +uint8_t x_79; +lean_free_object(x_10); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_4); +x_79 = !lean_is_exclusive(x_15); +if (x_79 == 0) { return x_15; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_15, 0); -x_68 = lean_ctor_get(x_15, 1); -lean_inc(x_68); -lean_inc(x_67); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_15, 0); +x_81 = lean_ctor_get(x_15, 1); +lean_inc(x_81); +lean_inc(x_80); lean_dec(x_15); -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; +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_70; +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_10, 0); +x_84 = lean_ctor_get(x_10, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_10); +lean_inc(x_4); +x_85 = l_Lean_Elab_Term_finalizePatternDecls(x_1, x_4, x_11); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +lean_dec(x_85); +x_88 = x_83; +x_89 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__1), 4, 2); +lean_closure_set(x_89, 0, x_6); +lean_closure_set(x_89, 1, x_88); +x_90 = x_89; +lean_inc(x_4); +x_91 = lean_apply_2(x_90, x_4, x_87); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +lean_inc(x_92); +x_94 = x_92; +lean_inc(x_86); +x_95 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__2), 5, 3); +lean_closure_set(x_95, 0, x_86); +lean_closure_set(x_95, 1, x_6); +lean_closure_set(x_95, 2, x_94); +lean_inc(x_4); +x_96 = l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3(x_92, x_6, x_4, x_93); +lean_dec(x_92); +if (lean_obj_tag(x_96) == 0) +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_96, 1); +lean_inc(x_97); +lean_dec(x_96); +x_98 = x_95; +lean_inc(x_4); +x_99 = lean_apply_2(x_98, x_4, x_97); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; +x_100 = lean_ctor_get(x_99, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec(x_99); +x_102 = l_Array_toList___rarg(x_86); +lean_dec(x_86); +x_103 = l_Array_toList___rarg(x_100); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_84); +x_106 = l_Lean_Elab_Term_getOptions(x_4, x_101); +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(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_106); + x_109 = lean_box(0); +} +x_110 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; +x_111 = l_Lean_checkTraceOption(x_107, x_110); +lean_dec(x_107); +if (x_111 == 0) +{ +lean_object* x_112; +lean_dec(x_100); lean_dec(x_4); -x_70 = !lean_is_exclusive(x_9); -if (x_70 == 0) +if (lean_is_scalar(x_109)) { + x_112 = lean_alloc_ctor(0, 2, 0); +} else { + x_112 = x_109; +} +lean_ctor_set(x_112, 0, x_105); +lean_ctor_set(x_112, 1, x_108); +return x_112; +} +else +{ +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_dec(x_109); +x_113 = x_100; +x_114 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__4(x_6, x_113); +x_115 = x_114; +x_116 = l_Lean_MessageData_ofArray(x_115); +lean_dec(x_115); +x_117 = l___private_Lean_Elab_Match_30__elabPatterns___closed__3; +x_118 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_116); +x_119 = l_Lean_Elab_Term_logTrace(x_110, x_118, x_4, x_108); +lean_dec(x_4); +x_120 = lean_ctor_get(x_119, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_121 = x_119; +} else { + lean_dec_ref(x_119); + x_121 = lean_box(0); +} +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(0, 2, 0); +} else { + x_122 = x_121; +} +lean_ctor_set(x_122, 0, x_105); +lean_ctor_set(x_122, 1, x_120); +return x_122; +} +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_dec(x_86); +lean_dec(x_84); +lean_dec(x_4); +x_123 = lean_ctor_get(x_99, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_99, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_125 = x_99; +} else { + lean_dec_ref(x_99); + 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 +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +lean_dec(x_95); +lean_dec(x_86); +lean_dec(x_84); +lean_dec(x_4); +x_127 = lean_ctor_get(x_96, 0); +lean_inc(x_127); +x_128 = lean_ctor_get(x_96, 1); +lean_inc(x_128); +if (lean_is_exclusive(x_96)) { + lean_ctor_release(x_96, 0); + lean_ctor_release(x_96, 1); + x_129 = x_96; +} else { + lean_dec_ref(x_96); + x_129 = lean_box(0); +} +if (lean_is_scalar(x_129)) { + x_130 = lean_alloc_ctor(1, 2, 0); +} else { + x_130 = x_129; +} +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_object* x_133; lean_object* x_134; +lean_dec(x_86); +lean_dec(x_84); +lean_dec(x_4); +x_131 = lean_ctor_get(x_91, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_91, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_133 = x_91; +} else { + lean_dec_ref(x_91); + x_133 = lean_box(0); +} +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(1, 2, 0); +} else { + x_134 = x_133; +} +lean_ctor_set(x_134, 0, x_131); +lean_ctor_set(x_134, 1, x_132); +return x_134; +} +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_84); +lean_dec(x_83); +lean_dec(x_4); +x_135 = lean_ctor_get(x_85, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_85, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_137 = x_85; +} else { + lean_dec_ref(x_85); + 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 +{ +uint8_t x_139; +lean_dec(x_4); +x_139 = !lean_is_exclusive(x_9); +if (x_139 == 0) { return x_9; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_9, 0); -x_72 = lean_ctor_get(x_9, 1); -lean_inc(x_72); -lean_inc(x_71); +lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_140 = lean_ctor_get(x_9, 0); +x_141 = lean_ctor_get(x_9, 1); +lean_inc(x_141); +lean_inc(x_140); lean_dec(x_9); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -return x_73; +x_142 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_142, 0, x_140); +lean_ctor_set(x_142, 1, x_141); +return x_142; } } } } -lean_object* l___private_Lean_Elab_Match_25__elabPatterns___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_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +lean_object* l___private_Lean_Elab_Match_30__elabPatterns___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_Lean_Elab_Match_25__elabPatterns(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Match_30__elabPatterns(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } @@ -17877,181 +20654,637 @@ return x_8; lean_object* _init_l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = lean_box(0); -x_2 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2, 0, x_1); -lean_ctor_set(x_2, 1, x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("rhs: "); +return x_1; } } lean_object* _init_l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; +lean_object* x_1; lean_object* x_2; x_1 = l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__1; -x_2 = l_Lean_Expr_Inhabited___closed__1; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_elabMatchAltView___lambda__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_Elab_Term_elabMatchAltView___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; uint8_t x_8; +lean_object* x_7; lean_object* x_8; x_7 = lean_ctor_get(x_1, 1); lean_inc(x_7); +lean_inc(x_5); +x_8 = l___private_Lean_Elab_Match_30__elabPatterns(x_4, x_7, x_2, x_5, x_6); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; +x_12 = lean_ctor_get(x_9, 0); +x_13 = lean_ctor_get(x_9, 1); +x_14 = lean_ctor_get(x_1, 2); +lean_inc(x_14); lean_dec(x_1); -x_8 = !lean_is_exclusive(x_5); -if (x_8 == 0) +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_13); +x_16 = 1; +lean_inc(x_5); +x_17 = l_Lean_Elab_Term_elabTerm(x_14, x_15, x_16, x_5, x_10); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_5, 9); -x_10 = l_Lean_Elab_replaceRef(x_2, x_9); -lean_dec(x_9); -lean_ctor_set(x_5, 9, x_10); -x_11 = l___private_Lean_Elab_Match_25__elabPatterns(x_4, x_7, x_3, x_5, x_6); -if (lean_obj_tag(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; lean_object* x_27; uint8_t x_28; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_12, 0); +lean_inc(x_20); +x_21 = l_List_redLength___main___rarg(x_20); +x_22 = lean_mk_empty_array_with_capacity(x_21); +lean_dec(x_21); +x_23 = l_List_toArrayAux___main___rarg(x_20, x_22); +x_24 = x_23; +x_25 = lean_unsigned_to_nat(0u); +x_26 = l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__1(x_25, x_24); +x_27 = x_26; +x_28 = l_Array_isEmpty___rarg(x_27); +if (x_28 == 0) { -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) +lean_object* x_29; +lean_inc(x_5); +x_29 = l_Lean_Elab_Term_mkLambda(x_27, x_18, x_5, x_19); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_11, 0); -lean_dec(x_13); -x_14 = l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2; -lean_ctor_set(x_11, 0, x_14); -return x_11; +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +lean_inc(x_30); +lean_ctor_set(x_9, 1, x_30); +x_32 = l_Lean_Elab_Term_getOptions(x_5, x_31); +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_32, 0); +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_3); +x_36 = l_Lean_checkTraceOption(x_34, x_3); +lean_dec(x_34); +if (x_36 == 0) +{ +lean_dec(x_30); +lean_dec(x_5); +lean_dec(x_3); +lean_ctor_set(x_32, 0, x_9); +return x_32; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_11, 1); -lean_inc(x_15); -lean_dec(x_11); -x_16 = l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__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); +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +lean_free_object(x_32); +x_37 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_37, 0, x_30); +x_38 = l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__3; +x_39 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = l_Lean_Elab_Term_logTrace(x_3, x_39, x_5, x_35); +lean_dec(x_5); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); +lean_ctor_set(x_40, 0, x_9); +return x_40; +} +else +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_9); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +} +} +else +{ +lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_45 = lean_ctor_get(x_32, 0); +x_46 = lean_ctor_get(x_32, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_32); +lean_inc(x_3); +x_47 = l_Lean_checkTraceOption(x_45, x_3); +lean_dec(x_45); +if (x_47 == 0) +{ +lean_object* x_48; +lean_dec(x_30); +lean_dec(x_5); +lean_dec(x_3); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_9); +lean_ctor_set(x_48, 1, x_46); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_49 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_49, 0, x_30); +x_50 = l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__3; +x_51 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +x_52 = l_Lean_Elab_Term_logTrace(x_3, x_51, x_5, x_46); +lean_dec(x_5); +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_52)) { + lean_ctor_release(x_52, 0); + lean_ctor_release(x_52, 1); + x_54 = x_52; +} else { + lean_dec_ref(x_52); + x_54 = lean_box(0); +} +if (lean_is_scalar(x_54)) { + x_55 = lean_alloc_ctor(0, 2, 0); +} else { + x_55 = x_54; +} +lean_ctor_set(x_55, 0, x_9); +lean_ctor_set(x_55, 1, x_53); +return x_55; +} +} +} +else +{ +uint8_t x_56; +lean_free_object(x_9); +lean_dec(x_12); +lean_dec(x_5); +lean_dec(x_3); +x_56 = !lean_is_exclusive(x_29); +if (x_56 == 0) +{ +return x_29; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_29, 0); +x_58 = lean_ctor_get(x_29, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_29); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +return x_59; +} +} +} +else +{ +lean_object* x_60; lean_object* x_61; uint8_t x_62; +lean_dec(x_27); +x_60 = l_Lean_mkThunk(x_18); +lean_inc(x_60); +lean_ctor_set(x_9, 1, x_60); +x_61 = l_Lean_Elab_Term_getOptions(x_5, x_19); +x_62 = !lean_is_exclusive(x_61); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_63 = lean_ctor_get(x_61, 0); +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_3); +x_65 = l_Lean_checkTraceOption(x_63, x_3); +lean_dec(x_63); +if (x_65 == 0) +{ +lean_dec(x_60); +lean_dec(x_5); +lean_dec(x_3); +lean_ctor_set(x_61, 0, x_9); +return x_61; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; +lean_free_object(x_61); +x_66 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_66, 0, x_60); +x_67 = l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__3; +x_68 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +x_69 = l_Lean_Elab_Term_logTrace(x_3, x_68, x_5, x_64); +lean_dec(x_5); +x_70 = !lean_is_exclusive(x_69); +if (x_70 == 0) +{ +lean_object* x_71; +x_71 = lean_ctor_get(x_69, 0); +lean_dec(x_71); +lean_ctor_set(x_69, 0, x_9); +return x_69; +} +else +{ +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_69, 1); +lean_inc(x_72); +lean_dec(x_69); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_9); +lean_ctor_set(x_73, 1, x_72); +return x_73; +} +} +} +else +{ +lean_object* x_74; lean_object* x_75; uint8_t x_76; +x_74 = lean_ctor_get(x_61, 0); +x_75 = lean_ctor_get(x_61, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_61); +lean_inc(x_3); +x_76 = l_Lean_checkTraceOption(x_74, x_3); +lean_dec(x_74); +if (x_76 == 0) +{ +lean_object* x_77; +lean_dec(x_60); +lean_dec(x_5); +lean_dec(x_3); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_9); +lean_ctor_set(x_77, 1, x_75); +return x_77; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_78 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_78, 0, x_60); +x_79 = l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__3; +x_80 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_78); +x_81 = l_Lean_Elab_Term_logTrace(x_3, x_80, x_5, x_75); +lean_dec(x_5); +x_82 = lean_ctor_get(x_81, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + x_83 = x_81; +} else { + lean_dec_ref(x_81); + x_83 = lean_box(0); +} +if (lean_is_scalar(x_83)) { + x_84 = lean_alloc_ctor(0, 2, 0); +} else { + x_84 = x_83; +} +lean_ctor_set(x_84, 0, x_9); +lean_ctor_set(x_84, 1, x_82); +return x_84; +} +} +} +} +else +{ +uint8_t x_85; +lean_free_object(x_9); +lean_dec(x_12); +lean_dec(x_5); +lean_dec(x_3); +x_85 = !lean_is_exclusive(x_17); +if (x_85 == 0) +{ return x_17; } -} else { -uint8_t x_18; -x_18 = !lean_is_exclusive(x_11); -if (x_18 == 0) -{ -return x_11; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_11, 0); -x_20 = lean_ctor_get(x_11, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_11); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_17, 0); +x_87 = lean_ctor_get(x_17, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_17); +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 { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; uint8_t x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_22 = lean_ctor_get(x_5, 0); -x_23 = lean_ctor_get(x_5, 1); -x_24 = lean_ctor_get(x_5, 2); -x_25 = lean_ctor_get(x_5, 3); -x_26 = lean_ctor_get(x_5, 4); -x_27 = lean_ctor_get(x_5, 5); -x_28 = lean_ctor_get(x_5, 6); -x_29 = lean_ctor_get(x_5, 7); -x_30 = lean_ctor_get(x_5, 8); -x_31 = lean_ctor_get_uint8(x_5, sizeof(void*)*10); -x_32 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 1); -x_33 = lean_ctor_get_uint8(x_5, sizeof(void*)*10 + 2); -x_34 = lean_ctor_get(x_5, 9); -lean_inc(x_34); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -lean_inc(x_23); -lean_inc(x_22); +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; lean_object* x_94; +x_89 = lean_ctor_get(x_9, 0); +x_90 = lean_ctor_get(x_9, 1); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_9); +x_91 = lean_ctor_get(x_1, 2); +lean_inc(x_91); +lean_dec(x_1); +x_92 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_92, 0, x_90); +x_93 = 1; +lean_inc(x_5); +x_94 = l_Lean_Elab_Term_elabTerm(x_91, x_92, x_93, x_5, x_10); +if (lean_obj_tag(x_94) == 0) +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_97 = lean_ctor_get(x_89, 0); +lean_inc(x_97); +x_98 = l_List_redLength___main___rarg(x_97); +x_99 = lean_mk_empty_array_with_capacity(x_98); +lean_dec(x_98); +x_100 = l_List_toArrayAux___main___rarg(x_97, x_99); +x_101 = x_100; +x_102 = lean_unsigned_to_nat(0u); +x_103 = l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__1(x_102, x_101); +x_104 = x_103; +x_105 = l_Array_isEmpty___rarg(x_104); +if (x_105 == 0) +{ +lean_object* x_106; +lean_inc(x_5); +x_106 = l_Lean_Elab_Term_mkLambda(x_104, x_95, x_5, x_96); +if (lean_obj_tag(x_106) == 0) +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; +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_106); +lean_inc(x_107); +x_109 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_109, 0, x_89); +lean_ctor_set(x_109, 1, x_107); +x_110 = l_Lean_Elab_Term_getOptions(x_5, x_108); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + x_113 = x_110; +} else { + lean_dec_ref(x_110); + x_113 = lean_box(0); +} +lean_inc(x_3); +x_114 = l_Lean_checkTraceOption(x_111, x_3); +lean_dec(x_111); +if (x_114 == 0) +{ +lean_object* x_115; +lean_dec(x_107); lean_dec(x_5); -x_35 = l_Lean_Elab_replaceRef(x_2, x_34); -lean_dec(x_34); -x_36 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_36, 0, x_22); -lean_ctor_set(x_36, 1, x_23); -lean_ctor_set(x_36, 2, x_24); -lean_ctor_set(x_36, 3, x_25); -lean_ctor_set(x_36, 4, x_26); -lean_ctor_set(x_36, 5, x_27); -lean_ctor_set(x_36, 6, x_28); -lean_ctor_set(x_36, 7, x_29); -lean_ctor_set(x_36, 8, x_30); -lean_ctor_set(x_36, 9, x_35); -lean_ctor_set_uint8(x_36, sizeof(void*)*10, x_31); -lean_ctor_set_uint8(x_36, sizeof(void*)*10 + 1, x_32); -lean_ctor_set_uint8(x_36, sizeof(void*)*10 + 2, x_33); -x_37 = l___private_Lean_Elab_Match_25__elabPatterns(x_4, x_7, x_3, x_36, x_6); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_39 = x_37; +lean_dec(x_3); +if (lean_is_scalar(x_113)) { + x_115 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_37); - x_39 = lean_box(0); + x_115 = x_113; } -x_40 = l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2; -if (lean_is_scalar(x_39)) { - x_41 = lean_alloc_ctor(0, 2, 0); -} else { - x_41 = x_39; -} -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_38); -return x_41; +lean_ctor_set(x_115, 0, x_109); +lean_ctor_set(x_115, 1, x_112); +return x_115; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_37, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_37, 1); -lean_inc(x_43); -if (lean_is_exclusive(x_37)) { - lean_ctor_release(x_37, 0); - lean_ctor_release(x_37, 1); - x_44 = x_37; +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_dec(x_113); +x_116 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_116, 0, x_107); +x_117 = l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__3; +x_118 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_116); +x_119 = l_Lean_Elab_Term_logTrace(x_3, x_118, x_5, x_112); +lean_dec(x_5); +x_120 = lean_ctor_get(x_119, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_121 = x_119; } else { - lean_dec_ref(x_37); - x_44 = lean_box(0); + lean_dec_ref(x_119); + x_121 = lean_box(0); } -if (lean_is_scalar(x_44)) { - x_45 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(0, 2, 0); } else { - x_45 = x_44; + x_122 = x_121; } -lean_ctor_set(x_45, 0, x_42); -lean_ctor_set(x_45, 1, x_43); -return x_45; +lean_ctor_set(x_122, 0, x_109); +lean_ctor_set(x_122, 1, x_120); +return x_122; +} +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_dec(x_89); +lean_dec(x_5); +lean_dec(x_3); +x_123 = lean_ctor_get(x_106, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_106, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_106)) { + lean_ctor_release(x_106, 0); + lean_ctor_release(x_106, 1); + x_125 = x_106; +} else { + lean_dec_ref(x_106); + 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 +{ +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_133; +lean_dec(x_104); +x_127 = l_Lean_mkThunk(x_95); +lean_inc(x_127); +x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_128, 0, x_89); +lean_ctor_set(x_128, 1, x_127); +x_129 = l_Lean_Elab_Term_getOptions(x_5, x_96); +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); +} +lean_inc(x_3); +x_133 = l_Lean_checkTraceOption(x_130, x_3); +lean_dec(x_130); +if (x_133 == 0) +{ +lean_object* x_134; +lean_dec(x_127); +lean_dec(x_5); +lean_dec(x_3); +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_128); +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_object* x_139; lean_object* x_140; lean_object* x_141; +lean_dec(x_132); +x_135 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_135, 0, x_127); +x_136 = l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__3; +x_137 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_135); +x_138 = l_Lean_Elab_Term_logTrace(x_3, x_137, x_5, x_131); +lean_dec(x_5); +x_139 = lean_ctor_get(x_138, 1); +lean_inc(x_139); +if (lean_is_exclusive(x_138)) { + lean_ctor_release(x_138, 0); + lean_ctor_release(x_138, 1); + x_140 = x_138; +} else { + lean_dec_ref(x_138); + x_140 = lean_box(0); +} +if (lean_is_scalar(x_140)) { + x_141 = lean_alloc_ctor(0, 2, 0); +} else { + x_141 = x_140; +} +lean_ctor_set(x_141, 0, x_128); +lean_ctor_set(x_141, 1, x_139); +return x_141; +} +} +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_dec(x_89); +lean_dec(x_5); +lean_dec(x_3); +x_142 = lean_ctor_get(x_94, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_94, 1); +lean_inc(x_143); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_144 = x_94; +} else { + lean_dec_ref(x_94); + x_144 = lean_box(0); +} +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(1, 2, 0); +} else { + x_145 = x_144; +} +lean_ctor_set(x_145, 0, x_142); +lean_ctor_set(x_145, 1, x_143); +return x_145; +} +} +} +else +{ +uint8_t x_146; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_146 = !lean_is_exclusive(x_8); +if (x_146 == 0) +{ +return x_8; +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_147 = lean_ctor_get(x_8, 0); +x_148 = lean_ctor_get(x_8, 1); +lean_inc(x_148); +lean_inc(x_147); +lean_dec(x_8); +x_149 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_149, 0, x_147); +lean_ctor_set(x_149, 1, x_148); +return x_149; } } } @@ -18087,132 +21320,228 @@ return x_2; lean_object* l_Lean_Elab_Term_elabMatchAltView(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; -lean_inc(x_3); -x_5 = l___private_Lean_Elab_Match_21__collectPatternVars(x_1, x_3, x_4); -if (lean_obj_tag(x_5) == 0) +lean_object* x_5; uint8_t x_6; +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +x_6 = !lean_is_exclusive(x_3); +if (x_6 == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_3, 9); +x_8 = l_Lean_Elab_replaceRef(x_5, x_7); +lean_dec(x_7); lean_dec(x_5); -x_8 = lean_ctor_get(x_6, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_6, 1); -lean_inc(x_9); -lean_dec(x_6); +lean_ctor_set(x_3, 9, x_8); +lean_inc(x_3); +x_9 = l___private_Lean_Elab_Match_21__collectPatternVars(x_1, x_3, x_4); +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; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -lean_inc(x_10); -x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMatchAltView___lambda__1___boxed), 6, 3); -lean_closure_set(x_11, 0, x_9); -lean_closure_set(x_11, 1, x_10); -lean_closure_set(x_11, 2, x_2); -x_12 = lean_ctor_get(x_3, 0); +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); -x_13 = lean_ctor_get(x_3, 1); +x_13 = lean_ctor_get(x_10, 1); lean_inc(x_13); -x_14 = lean_ctor_get(x_3, 2); -lean_inc(x_14); -x_15 = lean_ctor_get(x_3, 3); -lean_inc(x_15); -x_16 = lean_ctor_get(x_3, 4); -lean_inc(x_16); -x_17 = lean_ctor_get(x_3, 5); -lean_inc(x_17); -x_18 = lean_ctor_get(x_3, 6); -lean_inc(x_18); -x_19 = lean_ctor_get(x_3, 7); -lean_inc(x_19); -x_20 = lean_ctor_get(x_3, 8); -lean_inc(x_20); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_22 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -x_24 = lean_ctor_get(x_3, 9); -lean_inc(x_24); -x_25 = l_Lean_Elab_replaceRef(x_10, x_24); -lean_dec(x_24); lean_dec(x_10); -x_26 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_26, 0, x_12); -lean_ctor_set(x_26, 1, x_13); -lean_ctor_set(x_26, 2, x_14); -lean_ctor_set(x_26, 3, x_15); -lean_ctor_set(x_26, 4, x_16); -lean_ctor_set(x_26, 5, x_17); -lean_ctor_set(x_26, 6, x_18); -lean_ctor_set(x_26, 7, x_19); -lean_ctor_set(x_26, 8, x_20); -lean_ctor_set(x_26, 9, x_25); -lean_ctor_set_uint8(x_26, sizeof(void*)*10, x_21); -lean_ctor_set_uint8(x_26, sizeof(void*)*10 + 1, x_22); -lean_ctor_set_uint8(x_26, sizeof(void*)*10 + 2, x_23); -x_27 = l_Lean_Elab_Term_getOptions(x_26, x_7); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -x_30 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; -x_31 = l_Lean_checkTraceOption(x_28, x_30); -lean_dec(x_28); -if (x_31 == 0) +x_14 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; +x_15 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMatchAltView___lambda__1___boxed), 6, 3); +lean_closure_set(x_15, 0, x_13); +lean_closure_set(x_15, 1, x_2); +lean_closure_set(x_15, 2, x_14); +x_16 = l_Lean_Elab_Term_getOptions(x_3, x_11); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Lean_checkTraceOption(x_17, x_14); +lean_dec(x_17); +if (x_19 == 0) { -lean_object* x_32; -lean_dec(x_26); -x_32 = l___private_Lean_Elab_Match_23__withPatternVars___rarg(x_8, x_11, x_3, x_29); -return x_32; +lean_object* x_20; +x_20 = l___private_Lean_Elab_Match_23__withPatternVars___rarg(x_12, x_15, x_3, x_18); +return x_20; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_33 = l_Array_toList___rarg(x_8); -x_34 = l_List_toString___at_Lean_Elab_Term_elabMatchAltView___spec__1(x_33); -x_35 = l_Array_HasRepr___rarg___closed__1; -x_36 = lean_string_append(x_35, x_34); -lean_dec(x_34); -x_37 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_37, 0, x_36); -x_38 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_38, 0, x_37); -x_39 = l_Lean_Elab_Term_elabMatchAltView___closed__3; -x_40 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l_Lean_Elab_Term_logTrace(x_30, x_40, x_26, x_29); -lean_dec(x_26); -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -lean_dec(x_41); -x_43 = l___private_Lean_Elab_Match_23__withPatternVars___rarg(x_8, x_11, x_3, x_42); -return x_43; +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; +x_21 = l_Array_toList___rarg(x_12); +x_22 = l_List_toString___at_Lean_Elab_Term_elabMatchAltView___spec__1(x_21); +x_23 = l_Array_HasRepr___rarg___closed__1; +x_24 = lean_string_append(x_23, x_22); +lean_dec(x_22); +x_25 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_25, 0, x_24); +x_26 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_26, 0, x_25); +x_27 = l_Lean_Elab_Term_elabMatchAltView___closed__3; +x_28 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +x_29 = l_Lean_Elab_Term_logTrace(x_14, x_28, x_3, x_18); +x_30 = lean_ctor_get(x_29, 1); +lean_inc(x_30); +lean_dec(x_29); +x_31 = l___private_Lean_Elab_Match_23__withPatternVars___rarg(x_12, x_15, x_3, x_30); +return x_31; } } else { -uint8_t x_44; +uint8_t x_32; lean_dec(x_3); lean_dec(x_2); -x_44 = !lean_is_exclusive(x_5); -if (x_44 == 0) +x_32 = !lean_is_exclusive(x_9); +if (x_32 == 0) { -return x_5; +return x_9; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_5, 0); -x_46 = lean_ctor_get(x_5, 1); -lean_inc(x_46); -lean_inc(x_45); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_9, 0); +x_34 = lean_ctor_get(x_9, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_9); +x_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; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_36 = lean_ctor_get(x_3, 0); +x_37 = lean_ctor_get(x_3, 1); +x_38 = lean_ctor_get(x_3, 2); +x_39 = lean_ctor_get(x_3, 3); +x_40 = lean_ctor_get(x_3, 4); +x_41 = lean_ctor_get(x_3, 5); +x_42 = lean_ctor_get(x_3, 6); +x_43 = lean_ctor_get(x_3, 7); +x_44 = lean_ctor_get(x_3, 8); +x_45 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +x_46 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); +x_47 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +x_48 = lean_ctor_get(x_3, 9); +lean_inc(x_48); +lean_inc(x_44); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_41); +lean_inc(x_40); +lean_inc(x_39); +lean_inc(x_38); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_3); +x_49 = l_Lean_Elab_replaceRef(x_5, x_48); +lean_dec(x_48); lean_dec(x_5); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; +x_50 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_50, 0, x_36); +lean_ctor_set(x_50, 1, x_37); +lean_ctor_set(x_50, 2, x_38); +lean_ctor_set(x_50, 3, x_39); +lean_ctor_set(x_50, 4, x_40); +lean_ctor_set(x_50, 5, x_41); +lean_ctor_set(x_50, 6, x_42); +lean_ctor_set(x_50, 7, x_43); +lean_ctor_set(x_50, 8, x_44); +lean_ctor_set(x_50, 9, x_49); +lean_ctor_set_uint8(x_50, sizeof(void*)*10, x_45); +lean_ctor_set_uint8(x_50, sizeof(void*)*10 + 1, x_46); +lean_ctor_set_uint8(x_50, sizeof(void*)*10 + 2, x_47); +lean_inc(x_50); +x_51 = l___private_Lean_Elab_Match_21__collectPatternVars(x_1, x_50, x_4); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +x_54 = lean_ctor_get(x_52, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_52, 1); +lean_inc(x_55); +lean_dec(x_52); +x_56 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; +x_57 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabMatchAltView___lambda__1___boxed), 6, 3); +lean_closure_set(x_57, 0, x_55); +lean_closure_set(x_57, 1, x_2); +lean_closure_set(x_57, 2, x_56); +x_58 = l_Lean_Elab_Term_getOptions(x_50, x_53); +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); +x_61 = l_Lean_checkTraceOption(x_59, x_56); +lean_dec(x_59); +if (x_61 == 0) +{ +lean_object* x_62; +x_62 = l___private_Lean_Elab_Match_23__withPatternVars___rarg(x_54, x_57, x_50, x_60); +return x_62; +} +else +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_63 = l_Array_toList___rarg(x_54); +x_64 = l_List_toString___at_Lean_Elab_Term_elabMatchAltView___spec__1(x_63); +x_65 = l_Array_HasRepr___rarg___closed__1; +x_66 = lean_string_append(x_65, x_64); +lean_dec(x_64); +x_67 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_67, 0, x_66); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); +x_69 = l_Lean_Elab_Term_elabMatchAltView___closed__3; +x_70 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_68); +x_71 = l_Lean_Elab_Term_logTrace(x_56, x_70, x_50, x_60); +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +lean_dec(x_71); +x_73 = l___private_Lean_Elab_Match_23__withPatternVars___rarg(x_54, x_57, x_50, x_72); +return x_73; +} +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_50); +lean_dec(x_2); +x_74 = lean_ctor_get(x_51, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_51, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_76 = x_51; +} else { + lean_dec_ref(x_51); + x_76 = lean_box(0); +} +if (lean_is_scalar(x_76)) { + x_77 = lean_alloc_ctor(1, 2, 0); +} else { + x_77 = x_76; +} +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +return x_77; } } } @@ -18233,11 +21562,391 @@ _start: lean_object* x_7; x_7 = l_Lean_Elab_Term_elabMatchAltView___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_4); -lean_dec(x_2); return x_7; } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_Elab_Term_mkMotiveType___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +lean_inc(x_3); +x_5 = l_Lean_Meta_getLevel(x_2, x_3, x_4); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = l_Lean_mkSort(x_6); +x_9 = l_Lean_Meta_mkForall(x_1, x_8, x_3, x_7); +return x_9; +} +else +{ +uint8_t x_10; +lean_dec(x_3); +lean_dec(x_1); +x_10 = !lean_is_exclusive(x_5); +if (x_10 == 0) +{ +return x_5; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_5, 0); +x_12 = lean_ctor_get(x_5, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_5); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_12); +return x_13; +} +} +} +} +lean_object* _init_l_Lean_Elab_Term_mkMotiveType___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_mkMotiveType___lambda__1), 4, 0); +return x_1; +} +} +lean_object* l_Lean_Elab_Term_mkMotiveType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = !lean_is_exclusive(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = lean_ctor_get(x_5, 4); +x_8 = lean_ctor_get(x_3, 0); +lean_inc(x_8); +x_9 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_5, 4, x_9); +x_10 = l_Lean_Elab_Term_mkMotiveType___closed__1; +x_11 = l_Lean_Meta_forallTelescopeReducing___rarg(x_1, x_10, x_8, x_5); +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, 1); +x_14 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_13, x_7); +lean_ctor_set(x_11, 1, 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___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_16, x_7); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +else +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_11); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_11, 0); +x_21 = lean_ctor_get(x_11, 1); +lean_inc(x_3); +x_22 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_20); +x_23 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_21, x_7); +lean_ctor_set(x_11, 1, x_23); +lean_ctor_set(x_11, 0, x_22); +return x_11; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_24 = lean_ctor_get(x_11, 0); +x_25 = lean_ctor_get(x_11, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_11); +lean_inc(x_3); +x_26 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_24); +x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_25, x_7); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_29 = lean_ctor_get(x_5, 0); +x_30 = lean_ctor_get(x_5, 1); +x_31 = lean_ctor_get(x_5, 2); +x_32 = lean_ctor_get(x_5, 3); +x_33 = lean_ctor_get(x_5, 4); +x_34 = lean_ctor_get(x_5, 5); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_5); +x_35 = lean_ctor_get(x_3, 0); +lean_inc(x_35); +x_36 = l_Lean_TraceState_Inhabited___closed__1; +x_37 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_37, 0, x_29); +lean_ctor_set(x_37, 1, x_30); +lean_ctor_set(x_37, 2, x_31); +lean_ctor_set(x_37, 3, x_32); +lean_ctor_set(x_37, 4, x_36); +lean_ctor_set(x_37, 5, x_34); +x_38 = l_Lean_Elab_Term_mkMotiveType___closed__1; +x_39 = l_Lean_Meta_forallTelescopeReducing___rarg(x_1, x_38, x_35, x_37); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_42 = x_39; +} else { + lean_dec_ref(x_39); + x_42 = lean_box(0); +} +x_43 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_41, x_33); +if (lean_is_scalar(x_42)) { + x_44 = lean_alloc_ctor(0, 2, 0); +} else { + x_44 = x_42; +} +lean_ctor_set(x_44, 0, x_40); +lean_ctor_set(x_44, 1, x_43); +return x_44; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_45 = lean_ctor_get(x_39, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_47 = x_39; +} else { + lean_dec_ref(x_39); + x_47 = lean_box(0); +} +lean_inc(x_3); +x_48 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_45); +x_49 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_4, x_46, x_33); +if (lean_is_scalar(x_47)) { + x_50 = lean_alloc_ctor(1, 2, 0); +} else { + x_50 = x_47; +} +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +} +lean_object* l_Lean_Elab_Term_mkMotiveType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Elab_Term_mkMotiveType(x_1, x_2, x_3, x_4); +lean_dec(x_2); +return x_5; +} +} +lean_object* l_Lean_Elab_Term_mkElim(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; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_6, 4); +x_9 = lean_ctor_get(x_4, 0); +lean_inc(x_9); +x_10 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_6, 4, x_10); +x_11 = l_Lean_Meta_DepElim_mkElim(x_1, x_2, x_3, x_9, x_6); +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, 1); +x_14 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_13, x_8); +lean_ctor_set(x_11, 1, 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___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_16, x_8); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_15); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +else +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_11); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_11, 0); +x_21 = lean_ctor_get(x_11, 1); +lean_inc(x_4); +x_22 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_20); +x_23 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_21, x_8); +lean_ctor_set(x_11, 1, x_23); +lean_ctor_set(x_11, 0, x_22); +return x_11; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_24 = lean_ctor_get(x_11, 0); +x_25 = lean_ctor_get(x_11, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_11); +lean_inc(x_4); +x_26 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_24); +x_27 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_25, x_8); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; 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; +x_29 = lean_ctor_get(x_6, 0); +x_30 = lean_ctor_get(x_6, 1); +x_31 = lean_ctor_get(x_6, 2); +x_32 = lean_ctor_get(x_6, 3); +x_33 = lean_ctor_get(x_6, 4); +x_34 = lean_ctor_get(x_6, 5); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_6); +x_35 = lean_ctor_get(x_4, 0); +lean_inc(x_35); +x_36 = l_Lean_TraceState_Inhabited___closed__1; +x_37 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_37, 0, x_29); +lean_ctor_set(x_37, 1, x_30); +lean_ctor_set(x_37, 2, x_31); +lean_ctor_set(x_37, 3, x_32); +lean_ctor_set(x_37, 4, x_36); +lean_ctor_set(x_37, 5, x_34); +x_38 = l_Lean_Meta_DepElim_mkElim(x_1, x_2, x_3, x_35, x_37); +if (lean_obj_tag(x_38) == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_41 = x_38; +} else { + lean_dec_ref(x_38); + x_41 = lean_box(0); +} +x_42 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_40, x_33); +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_39); +lean_ctor_set(x_43, 1, x_42); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_44 = lean_ctor_get(x_38, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_38, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_46 = x_38; +} else { + lean_dec_ref(x_38); + x_46 = lean_box(0); +} +lean_inc(x_4); +x_47 = l___private_Lean_Elab_Term_2__fromMetaException(x_4, x_44); +x_48 = l___private_Lean_Elab_Term_3__fromMetaState(x_4, x_5, x_45, x_33); +if (lean_is_scalar(x_46)) { + x_49 = lean_alloc_ctor(1, 2, 0); +} else { + x_49 = x_46; +} +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +} +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__elabMatchCore___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -18271,7 +21980,7 @@ goto _start; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__elabMatchCore___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -18347,7 +22056,7 @@ return x_25; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__elabMatchCore___spec__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -18363,7 +22072,7 @@ return x_5; } else { -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_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_6 = lean_array_fget(x_2, x_1); x_7 = lean_unsigned_to_nat(0u); x_8 = lean_array_fset(x_2, x_1, x_7); @@ -18371,136 +22080,171 @@ x_9 = x_6; x_10 = lean_ctor_get(x_9, 1); lean_inc(x_10); lean_dec(x_9); -x_11 = l_Array_toList___rarg(x_10); -lean_dec(x_10); -x_12 = l_List_toString___at___private_Lean_Elab_Match_6__elabDiscrsAux___main___spec__1(x_11); -x_13 = l_Array_HasRepr___rarg___closed__1; -x_14 = lean_string_append(x_13, x_12); -lean_dec(x_12); -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_nat_add(x_1, x_15); -x_17 = x_14; -x_18 = lean_array_fset(x_8, x_1, x_17); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_1, x_11); +x_13 = x_10; +x_14 = lean_array_fset(x_8, x_1, x_13); lean_dec(x_1); -x_1 = x_16; -x_2 = x_18; +x_1 = x_12; +x_2 = x_14; goto _start; } } } -lean_object* _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__1() { +lean_object* l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__elabMatchCore___spec__4(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_array_get_size(x_2); +x_4 = lean_nat_dec_lt(x_1, x_3); +lean_dec(x_3); +if (x_4 == 0) +{ +lean_object* x_5; +lean_dec(x_1); +x_5 = x_2; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_6 = lean_array_fget(x_2, x_1); +x_7 = lean_unsigned_to_nat(0u); +x_8 = lean_array_fset(x_2, x_1, x_7); +x_9 = x_6; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_add(x_1, x_11); +x_13 = x_10; +x_14 = lean_array_fset(x_8, x_1, x_13); +lean_dec(x_1); +x_1 = x_12; +x_2 = x_14; +goto _start; +} +} +} +lean_object* _init_l___private_Lean_Elab_Match_31__elabMatchCore___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("WIP type: "); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_mkLambda), 4, 0); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_31__elabMatchCore___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("elim"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_Match_31__elabMatchCore___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Elab_Match_31__elabMatchCore___closed__2; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Lean_Elab_Match_31__elabMatchCore___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("result: "); +return x_1; +} +} +lean_object* _init_l___private_Lean_Elab_Match_31__elabMatchCore___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_26__elabMatchCore___closed__1; +x_1 = l___private_Lean_Elab_Match_31__elabMatchCore___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_31__elabMatchCore___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_26__elabMatchCore___closed__2; +x_1 = l___private_Lean_Elab_Match_31__elabMatchCore___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__4() { +lean_object* l___private_Lean_Elab_Match_31__elabMatchCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_IO_FS_Handle_putStrLn___rarg___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_26__elabMatchCore___closed__4; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Lean_Elab_Match_26__elabMatchCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; lean_object* x_69; -x_69 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4); -if (lean_obj_tag(x_69) == 0) +lean_object* x_5; lean_object* x_6; lean_object* x_183; +x_183 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4); +if (lean_obj_tag(x_183) == 0) { if (lean_obj_tag(x_2) == 0) { -lean_object* x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec(x_69); -x_71 = 0; -x_72 = lean_box(0); +lean_object* x_184; uint8_t x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_184 = lean_ctor_get(x_183, 1); +lean_inc(x_184); +lean_dec(x_183); +x_185 = 0; +x_186 = lean_box(0); lean_inc(x_3); -x_73 = l_Lean_Elab_Term_mkFreshTypeMVar(x_71, x_72, x_3, x_70); -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -x_5 = x_74; -x_6 = x_75; -goto block_68; +x_187 = l_Lean_Elab_Term_mkFreshTypeMVar(x_185, x_186, x_3, x_184); +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_187, 1); +lean_inc(x_189); +lean_dec(x_187); +x_5 = x_188; +x_6 = x_189; +goto block_182; } else { -lean_object* x_76; lean_object* x_77; -x_76 = lean_ctor_get(x_69, 1); -lean_inc(x_76); -lean_dec(x_69); -x_77 = lean_ctor_get(x_2, 0); -lean_inc(x_77); +lean_object* x_190; lean_object* x_191; +x_190 = lean_ctor_get(x_183, 1); +lean_inc(x_190); +lean_dec(x_183); +x_191 = lean_ctor_get(x_2, 0); +lean_inc(x_191); lean_dec(x_2); -x_5 = x_77; -x_6 = x_76; -goto block_68; +x_5 = x_191; +x_6 = x_190; +goto block_182; } } else { -uint8_t x_78; +uint8_t x_192; lean_dec(x_3); lean_dec(x_2); -x_78 = !lean_is_exclusive(x_69); -if (x_78 == 0) +x_192 = !lean_is_exclusive(x_183); +if (x_192 == 0) { -return x_69; +return x_183; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_69, 0); -x_80 = lean_ctor_get(x_69, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_69); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -return x_81; +lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_193 = lean_ctor_get(x_183, 0); +x_194 = lean_ctor_get(x_183, 1); +lean_inc(x_194); +lean_inc(x_193); +lean_dec(x_183); +x_195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_195, 0, x_193); +lean_ctor_set(x_195, 1, x_194); +return x_195; } } -block_68: +block_182: { 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; x_7 = lean_unsigned_to_nat(1u); @@ -18513,7 +22257,7 @@ x_12 = l_Array_empty___closed__1; x_13 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_10, x_9, x_11, x_12); lean_dec(x_9); x_14 = x_13; -x_15 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__1(x_11, x_14); +x_15 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__elabMatchCore___spec__1(x_11, x_14); x_16 = x_15; x_17 = lean_array_get_size(x_16); lean_inc(x_3); @@ -18539,6 +22283,7 @@ x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec(x_22); lean_inc(x_3); +lean_inc(x_5); lean_inc(x_19); x_25 = l___private_Lean_Elab_Match_7__elabDiscrs(x_16, x_19, x_5, x_3, x_24); lean_dec(x_16); @@ -18551,9 +22296,8 @@ x_27 = lean_ctor_get(x_25, 1); lean_inc(x_27); lean_dec(x_25); x_28 = x_23; -lean_inc(x_28); lean_inc(x_19); -x_29 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__2), 5, 3); +x_29 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__elabMatchCore___spec__2), 5, 3); lean_closure_set(x_29, 0, x_19); lean_closure_set(x_29, 1, x_11); lean_closure_set(x_29, 2, x_28); @@ -18562,165 +22306,653 @@ lean_inc(x_3); x_31 = lean_apply_2(x_30, x_3, x_27); 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; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_32 = lean_ctor_get(x_31, 1); +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_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_33 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_33, 0, x_19); -x_34 = l___private_Lean_Elab_Match_26__elabMatchCore___closed__3; -x_35 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = l___private_Lean_Elab_Match_26__elabMatchCore___closed__5; -x_37 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_37, 0, x_35); -lean_ctor_set(x_37, 1, x_36); -x_38 = l_Lean_MessageData_coeOfArrayExpr___closed__2; -x_39 = l_Lean_MessageData_arrayExpr_toMessageData___main(x_26, x_11, x_38); +x_34 = x_32; +lean_inc(x_34); +x_35 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__elabMatchCore___spec__3(x_11, x_34); +x_36 = x_35; +x_37 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_31__elabMatchCore___spec__4(x_11, x_34); +x_38 = x_37; +lean_inc(x_3); +lean_inc(x_19); +x_39 = l_Lean_Elab_Term_mkMotiveType(x_19, x_5, x_3, x_33); +lean_dec(x_5); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_39, 0); +lean_inc(x_42); +lean_dec(x_39); +x_43 = !lean_is_exclusive(x_41); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_44 = lean_ctor_get(x_41, 4); +x_45 = lean_ctor_get(x_3, 0); +lean_inc(x_45); +x_46 = l_Lean_TraceState_Inhabited___closed__1; +lean_ctor_set(x_41, 4, x_46); +x_47 = l___private_Lean_Elab_Match_31__elabMatchCore___closed__1; +x_48 = l_Lean_Meta_forallTelescopeReducing___rarg(x_19, x_47, x_45, x_41); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +lean_inc(x_3); +x_51 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_40, x_50, x_44); +x_52 = l___private_Lean_Elab_Match_31__elabMatchCore___closed__3; +lean_inc(x_3); +x_53 = l_Lean_Elab_Term_mkAuxName(x_52, x_3, x_51); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +x_56 = l_Array_toList___rarg(x_38); +lean_dec(x_38); +lean_inc(x_3); +x_57 = l_Lean_Elab_Term_mkElim(x_54, x_42, x_56, x_3, x_55); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_60 = lean_ctor_get(x_58, 0); +lean_inc(x_60); +lean_dec(x_58); +x_61 = l_Lean_mkApp(x_60, x_49); +x_62 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_26, x_26, x_11, x_61); lean_dec(x_26); -x_40 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_40, 0, x_37); -lean_ctor_set(x_40, 1, x_39); -x_41 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_36); -x_42 = l_Array_umapMAux___main___at___private_Lean_Elab_Match_26__elabMatchCore___spec__3(x_11, x_28); -x_43 = x_42; -x_44 = l_Array_toList___rarg(x_43); -lean_dec(x_43); -x_45 = l_List_toString___at_Lean_MetavarContext_MkBinding_Exception_toString___spec__2(x_44); -x_46 = l_Array_HasRepr___rarg___closed__1; -x_47 = lean_string_append(x_46, x_45); -lean_dec(x_45); -x_48 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_48, 0, x_47); -x_49 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_49, 0, x_48); -x_50 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_50, 0, x_41); -lean_ctor_set(x_50, 1, x_49); -x_51 = l_Lean_Elab_Term_throwError___rarg(x_50, x_3, x_32); -return x_51; +x_63 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_36, x_36, x_11, x_62); +lean_dec(x_36); +x_64 = l_Lean_Elab_Term_getOptions(x_3, x_59); +x_65 = !lean_is_exclusive(x_64); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_66 = lean_ctor_get(x_64, 0); +x_67 = lean_ctor_get(x_64, 1); +x_68 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; +x_69 = l_Lean_checkTraceOption(x_66, x_68); +lean_dec(x_66); +if (x_69 == 0) +{ +lean_dec(x_3); +lean_ctor_set(x_64, 0, x_63); +return x_64; } else { -uint8_t x_52; -lean_dec(x_28); +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +lean_free_object(x_64); +lean_inc(x_63); +x_70 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_70, 0, x_63); +x_71 = l___private_Lean_Elab_Match_31__elabMatchCore___closed__6; +x_72 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_70); +x_73 = l_Lean_Elab_Term_logTrace(x_68, x_72, x_3, x_67); +lean_dec(x_3); +x_74 = !lean_is_exclusive(x_73); +if (x_74 == 0) +{ +lean_object* x_75; +x_75 = lean_ctor_get(x_73, 0); +lean_dec(x_75); +lean_ctor_set(x_73, 0, x_63); +return x_73; +} +else +{ +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); +lean_dec(x_73); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_63); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_78 = lean_ctor_get(x_64, 0); +x_79 = lean_ctor_get(x_64, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_64); +x_80 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; +x_81 = l_Lean_checkTraceOption(x_78, x_80); +lean_dec(x_78); +if (x_81 == 0) +{ +lean_object* x_82; +lean_dec(x_3); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_63); +lean_ctor_set(x_82, 1, x_79); +return x_82; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_inc(x_63); +x_83 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_83, 0, x_63); +x_84 = l___private_Lean_Elab_Match_31__elabMatchCore___closed__6; +x_85 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +x_86 = l_Lean_Elab_Term_logTrace(x_80, x_85, x_3, x_79); +lean_dec(x_3); +x_87 = lean_ctor_get(x_86, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_88 = x_86; +} else { + lean_dec_ref(x_86); + x_88 = lean_box(0); +} +if (lean_is_scalar(x_88)) { + x_89 = lean_alloc_ctor(0, 2, 0); +} else { + x_89 = x_88; +} +lean_ctor_set(x_89, 0, x_63); +lean_ctor_set(x_89, 1, x_87); +return x_89; +} +} +} +else +{ +uint8_t x_90; +lean_dec(x_49); +lean_dec(x_36); +lean_dec(x_26); +lean_dec(x_3); +x_90 = !lean_is_exclusive(x_57); +if (x_90 == 0) +{ +return x_57; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_57, 0); +x_92 = lean_ctor_get(x_57, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_57); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +} +else +{ +uint8_t x_94; +lean_dec(x_49); +lean_dec(x_42); +lean_dec(x_38); +lean_dec(x_36); +lean_dec(x_26); +lean_dec(x_3); +x_94 = !lean_is_exclusive(x_53); +if (x_94 == 0) +{ +return x_53; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_53, 0); +x_96 = lean_ctor_get(x_53, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_53); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +return x_97; +} +} +} +else +{ +uint8_t x_98; +lean_dec(x_42); +lean_dec(x_38); +lean_dec(x_36); +lean_dec(x_26); +x_98 = !lean_is_exclusive(x_48); +if (x_98 == 0) +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_99 = lean_ctor_get(x_48, 0); +x_100 = lean_ctor_get(x_48, 1); +lean_inc(x_3); +x_101 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_99); +x_102 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_40, x_100, x_44); +lean_ctor_set(x_48, 1, x_102); +lean_ctor_set(x_48, 0, x_101); +return x_48; +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_103 = lean_ctor_get(x_48, 0); +x_104 = lean_ctor_get(x_48, 1); +lean_inc(x_104); +lean_inc(x_103); +lean_dec(x_48); +lean_inc(x_3); +x_105 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_103); +x_106 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_40, x_104, x_44); +x_107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +return x_107; +} +} +} +else +{ +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; +x_108 = lean_ctor_get(x_41, 0); +x_109 = lean_ctor_get(x_41, 1); +x_110 = lean_ctor_get(x_41, 2); +x_111 = lean_ctor_get(x_41, 3); +x_112 = lean_ctor_get(x_41, 4); +x_113 = lean_ctor_get(x_41, 5); +lean_inc(x_113); +lean_inc(x_112); +lean_inc(x_111); +lean_inc(x_110); +lean_inc(x_109); +lean_inc(x_108); +lean_dec(x_41); +x_114 = lean_ctor_get(x_3, 0); +lean_inc(x_114); +x_115 = l_Lean_TraceState_Inhabited___closed__1; +x_116 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_116, 0, x_108); +lean_ctor_set(x_116, 1, x_109); +lean_ctor_set(x_116, 2, x_110); +lean_ctor_set(x_116, 3, x_111); +lean_ctor_set(x_116, 4, x_115); +lean_ctor_set(x_116, 5, x_113); +x_117 = l___private_Lean_Elab_Match_31__elabMatchCore___closed__1; +x_118 = l_Lean_Meta_forallTelescopeReducing___rarg(x_19, x_117, x_114, x_116); +if (lean_obj_tag(x_118) == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +lean_dec(x_118); +lean_inc(x_3); +x_121 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_40, x_120, x_112); +x_122 = l___private_Lean_Elab_Match_31__elabMatchCore___closed__3; +lean_inc(x_3); +x_123 = l_Lean_Elab_Term_mkAuxName(x_122, x_3, x_121); +if (lean_obj_tag(x_123) == 0) +{ +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); +lean_dec(x_123); +x_126 = l_Array_toList___rarg(x_38); +lean_dec(x_38); +lean_inc(x_3); +x_127 = l_Lean_Elab_Term_mkElim(x_124, x_42, x_126, x_3, x_125); +if (lean_obj_tag(x_127) == 0) +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +lean_dec(x_127); +x_130 = lean_ctor_get(x_128, 0); +lean_inc(x_130); +lean_dec(x_128); +x_131 = l_Lean_mkApp(x_130, x_119); +x_132 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_26, x_26, x_11, x_131); +lean_dec(x_26); +x_133 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_36, x_36, x_11, x_132); +lean_dec(x_36); +x_134 = l_Lean_Elab_Term_getOptions(x_3, x_129); +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_134)) { + lean_ctor_release(x_134, 0); + lean_ctor_release(x_134, 1); + x_137 = x_134; +} else { + lean_dec_ref(x_134); + x_137 = lean_box(0); +} +x_138 = l_Array_umapMAux___main___at_Lean_Elab_Term_CollectPatternVars_main___spec__1___closed__1; +x_139 = l_Lean_checkTraceOption(x_135, x_138); +lean_dec(x_135); +if (x_139 == 0) +{ +lean_object* x_140; +lean_dec(x_3); +if (lean_is_scalar(x_137)) { + x_140 = lean_alloc_ctor(0, 2, 0); +} else { + x_140 = x_137; +} +lean_ctor_set(x_140, 0, x_133); +lean_ctor_set(x_140, 1, x_136); +return x_140; +} +else +{ +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_dec(x_137); +lean_inc(x_133); +x_141 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_141, 0, x_133); +x_142 = l___private_Lean_Elab_Match_31__elabMatchCore___closed__6; +x_143 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_141); +x_144 = l_Lean_Elab_Term_logTrace(x_138, x_143, x_3, x_136); +lean_dec(x_3); +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_146 = x_144; +} else { + lean_dec_ref(x_144); + x_146 = lean_box(0); +} +if (lean_is_scalar(x_146)) { + x_147 = lean_alloc_ctor(0, 2, 0); +} else { + x_147 = x_146; +} +lean_ctor_set(x_147, 0, x_133); +lean_ctor_set(x_147, 1, x_145); +return x_147; +} +} +else +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +lean_dec(x_119); +lean_dec(x_36); +lean_dec(x_26); +lean_dec(x_3); +x_148 = lean_ctor_get(x_127, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_127, 1); +lean_inc(x_149); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_150 = x_127; +} else { + lean_dec_ref(x_127); + x_150 = lean_box(0); +} +if (lean_is_scalar(x_150)) { + x_151 = lean_alloc_ctor(1, 2, 0); +} else { + x_151 = x_150; +} +lean_ctor_set(x_151, 0, x_148); +lean_ctor_set(x_151, 1, x_149); +return x_151; +} +} +else +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +lean_dec(x_119); +lean_dec(x_42); +lean_dec(x_38); +lean_dec(x_36); +lean_dec(x_26); +lean_dec(x_3); +x_152 = lean_ctor_get(x_123, 0); +lean_inc(x_152); +x_153 = lean_ctor_get(x_123, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_154 = x_123; +} else { + lean_dec_ref(x_123); + x_154 = lean_box(0); +} +if (lean_is_scalar(x_154)) { + x_155 = lean_alloc_ctor(1, 2, 0); +} else { + x_155 = x_154; +} +lean_ctor_set(x_155, 0, x_152); +lean_ctor_set(x_155, 1, x_153); +return x_155; +} +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +lean_dec(x_42); +lean_dec(x_38); +lean_dec(x_36); +lean_dec(x_26); +x_156 = lean_ctor_get(x_118, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_118, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_158 = x_118; +} else { + lean_dec_ref(x_118); + x_158 = lean_box(0); +} +lean_inc(x_3); +x_159 = l___private_Lean_Elab_Term_2__fromMetaException(x_3, x_156); +x_160 = l___private_Lean_Elab_Term_3__fromMetaState(x_3, x_40, x_157, x_112); +if (lean_is_scalar(x_158)) { + x_161 = lean_alloc_ctor(1, 2, 0); +} else { + x_161 = x_158; +} +lean_ctor_set(x_161, 0, x_159); +lean_ctor_set(x_161, 1, x_160); +return x_161; +} +} +} +else +{ +uint8_t x_162; +lean_dec(x_38); +lean_dec(x_36); lean_dec(x_26); lean_dec(x_19); lean_dec(x_3); -x_52 = !lean_is_exclusive(x_31); -if (x_52 == 0) +x_162 = !lean_is_exclusive(x_39); +if (x_162 == 0) +{ +return x_39; +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_163 = lean_ctor_get(x_39, 0); +x_164 = lean_ctor_get(x_39, 1); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_39); +x_165 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_165, 0, x_163); +lean_ctor_set(x_165, 1, x_164); +return x_165; +} +} +} +else +{ +uint8_t x_166; +lean_dec(x_26); +lean_dec(x_19); +lean_dec(x_5); +lean_dec(x_3); +x_166 = !lean_is_exclusive(x_31); +if (x_166 == 0) { return x_31; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_31, 0); -x_54 = lean_ctor_get(x_31, 1); -lean_inc(x_54); -lean_inc(x_53); +lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_167 = lean_ctor_get(x_31, 0); +x_168 = lean_ctor_get(x_31, 1); +lean_inc(x_168); +lean_inc(x_167); lean_dec(x_31); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; +x_169 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_169, 0, x_167); +lean_ctor_set(x_169, 1, x_168); +return x_169; } } } else { -uint8_t x_56; +uint8_t x_170; lean_dec(x_23); lean_dec(x_19); +lean_dec(x_5); lean_dec(x_3); -x_56 = !lean_is_exclusive(x_25); -if (x_56 == 0) +x_170 = !lean_is_exclusive(x_25); +if (x_170 == 0) { return x_25; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_25, 0); -x_58 = lean_ctor_get(x_25, 1); -lean_inc(x_58); -lean_inc(x_57); +lean_object* x_171; lean_object* x_172; lean_object* x_173; +x_171 = lean_ctor_get(x_25, 0); +x_172 = lean_ctor_get(x_25, 1); +lean_inc(x_172); +lean_inc(x_171); lean_dec(x_25); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; +x_173 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_173, 0, x_171); +lean_ctor_set(x_173, 1, x_172); +return x_173; } } } else { -uint8_t x_60; +uint8_t x_174; lean_dec(x_19); lean_dec(x_16); lean_dec(x_5); lean_dec(x_3); -x_60 = !lean_is_exclusive(x_22); -if (x_60 == 0) +x_174 = !lean_is_exclusive(x_22); +if (x_174 == 0) { return x_22; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_22, 0); -x_62 = lean_ctor_get(x_22, 1); -lean_inc(x_62); -lean_inc(x_61); +lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_175 = lean_ctor_get(x_22, 0); +x_176 = lean_ctor_get(x_22, 1); +lean_inc(x_176); +lean_inc(x_175); lean_dec(x_22); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; +x_177 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_177, 0, x_175); +lean_ctor_set(x_177, 1, x_176); +return x_177; } } } else { -uint8_t x_64; +uint8_t x_178; lean_dec(x_16); lean_dec(x_5); lean_dec(x_3); -x_64 = !lean_is_exclusive(x_18); -if (x_64 == 0) +x_178 = !lean_is_exclusive(x_18); +if (x_178 == 0) { return x_18; } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_18, 0); -x_66 = lean_ctor_get(x_18, 1); -lean_inc(x_66); -lean_inc(x_65); +lean_object* x_179; lean_object* x_180; lean_object* x_181; +x_179 = lean_ctor_get(x_18, 0); +x_180 = lean_ctor_get(x_18, 1); +lean_inc(x_180); +lean_inc(x_179); lean_dec(x_18); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -return x_67; +x_181 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_181, 0, x_179); +lean_ctor_set(x_181, 1, x_180); +return x_181; } } } } } -lean_object* l___private_Lean_Elab_Match_26__elabMatchCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_31__elabMatchCore___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_26__elabMatchCore(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_31__elabMatchCore(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_32__mkMatchType___main___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -18729,13 +22961,13 @@ x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_32__mkMatchType___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__1; +x_3 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__1; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -18743,7 +22975,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_32__mkMatchType___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -18753,19 +22985,19 @@ x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4() { +lean_object* _init_l___private_Lean_Elab_Match_32__mkMatchType___main___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_nullKind___closed__2; -x_2 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__3; +x_2 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__3; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5() { +lean_object* _init_l___private_Lean_Elab_Match_32__mkMatchType___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -18777,7 +23009,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6() { +lean_object* _init_l___private_Lean_Elab_Match_32__mkMatchType___main___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -18789,17 +23021,17 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7() { +lean_object* _init_l___private_Lean_Elab_Match_32__mkMatchType___main___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Elab_Match_3__expandMatchOptTypeAux___main___closed__6; -x_2 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5; +x_2 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__5; x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_32__mkMatchType___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; @@ -18854,7 +23086,7 @@ else lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_nat_add(x_2, x_7); lean_dec(x_2); -x_20 = l___private_Lean_Elab_Match_27__mkMatchType___main(x_1, x_19, x_3, x_8); +x_20 = l___private_Lean_Elab_Match_32__mkMatchType___main(x_1, x_19, x_3, x_8); x_21 = !lean_is_exclusive(x_20); if (x_21 == 0) { @@ -18873,7 +23105,7 @@ x_27 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_28 = l_Lean_addMacroScope(x_12, x_27, x_4); x_29 = lean_box(0); x_30 = l_Lean_SourceInfo_inhabited___closed__1; -x_31 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2; +x_31 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__2; x_32 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_32, 0, x_30); lean_ctor_set(x_32, 1, x_31); @@ -18888,7 +23120,7 @@ lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_34); x_37 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; x_38 = lean_array_push(x_37, x_36); -x_39 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4; +x_39 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__4; x_40 = lean_array_push(x_38, x_39); x_41 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; x_42 = lean_array_push(x_40, x_41); @@ -18899,10 +23131,10 @@ x_46 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_46, 0, x_45); lean_ctor_set(x_46, 1, x_44); x_47 = lean_array_push(x_33, x_46); -x_48 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5; +x_48 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__5; x_49 = lean_array_push(x_47, x_48); x_50 = lean_array_push(x_33, x_26); -x_51 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6; +x_51 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__6; x_52 = lean_array_push(x_50, x_51); x_53 = lean_array_push(x_34, x_41); x_54 = l_Lean_mkTermIdFromIdent___closed__2; @@ -18935,7 +23167,7 @@ lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_dec(x_14); lean_dec(x_12); lean_dec(x_4); -x_67 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7; +x_67 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__7; x_68 = lean_array_push(x_67, x_22); x_69 = l_Lean_Parser_Term_arrow___elambda__1___closed__2; x_70 = lean_alloc_ctor(1, 2, 0); @@ -18966,7 +23198,7 @@ x_77 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_78 = l_Lean_addMacroScope(x_12, x_77, x_4); x_79 = lean_box(0); x_80 = l_Lean_SourceInfo_inhabited___closed__1; -x_81 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2; +x_81 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__2; x_82 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_82, 0, x_80); lean_ctor_set(x_82, 1, x_81); @@ -18981,7 +23213,7 @@ lean_ctor_set(x_86, 0, x_85); lean_ctor_set(x_86, 1, x_84); x_87 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; x_88 = lean_array_push(x_87, x_86); -x_89 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4; +x_89 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__4; x_90 = lean_array_push(x_88, x_89); x_91 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; x_92 = lean_array_push(x_90, x_91); @@ -18992,10 +23224,10 @@ x_96 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_96, 0, x_95); lean_ctor_set(x_96, 1, x_94); x_97 = lean_array_push(x_83, x_96); -x_98 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5; +x_98 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__5; x_99 = lean_array_push(x_97, x_98); x_100 = lean_array_push(x_83, x_76); -x_101 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6; +x_101 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__6; x_102 = lean_array_push(x_100, x_101); x_103 = lean_array_push(x_84, x_91); x_104 = l_Lean_mkTermIdFromIdent___closed__2; @@ -19030,7 +23262,7 @@ lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_dec(x_14); lean_dec(x_12); lean_dec(x_4); -x_118 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7; +x_118 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__7; x_119 = lean_array_push(x_118, x_71); x_120 = l_Lean_Parser_Term_arrow___elambda__1___closed__2; x_121 = lean_alloc_ctor(1, 2, 0); @@ -19083,7 +23315,7 @@ else lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; x_132 = lean_nat_add(x_2, x_7); lean_dec(x_2); -x_133 = l___private_Lean_Elab_Match_27__mkMatchType___main(x_1, x_132, x_126, x_8); +x_133 = l___private_Lean_Elab_Match_32__mkMatchType___main(x_1, x_132, x_126, x_8); x_134 = lean_ctor_get(x_133, 0); lean_inc(x_134); x_135 = lean_ctor_get(x_133, 1); @@ -19109,7 +23341,7 @@ x_141 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; x_142 = l_Lean_addMacroScope(x_123, x_141, x_4); x_143 = lean_box(0); x_144 = l_Lean_SourceInfo_inhabited___closed__1; -x_145 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2; +x_145 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__2; x_146 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_146, 0, x_144); lean_ctor_set(x_146, 1, x_145); @@ -19124,7 +23356,7 @@ lean_ctor_set(x_150, 0, x_149); lean_ctor_set(x_150, 1, x_148); x_151 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__4; x_152 = lean_array_push(x_151, x_150); -x_153 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4; +x_153 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__4; x_154 = lean_array_push(x_152, x_153); x_155 = l_Lean_PrettyPrinter_Parenthesizer_termParser_parenthesizer___lambda__1___closed__5; x_156 = lean_array_push(x_154, x_155); @@ -19135,10 +23367,10 @@ x_160 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_160, 0, x_159); lean_ctor_set(x_160, 1, x_158); x_161 = lean_array_push(x_147, x_160); -x_162 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5; +x_162 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__5; x_163 = lean_array_push(x_161, x_162); x_164 = lean_array_push(x_147, x_140); -x_165 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6; +x_165 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__6; x_166 = lean_array_push(x_164, x_165); x_167 = lean_array_push(x_148, x_155); x_168 = l_Lean_mkTermIdFromIdent___closed__2; @@ -19177,7 +23409,7 @@ lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_dec(x_127); lean_dec(x_123); lean_dec(x_4); -x_182 = l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7; +x_182 = l___private_Lean_Elab_Match_32__mkMatchType___main___closed__7; x_183 = lean_array_push(x_182, x_134); x_184 = l_Lean_Parser_Term_arrow___elambda__1___closed__2; x_185 = lean_alloc_ctor(1, 2, 0); @@ -19197,33 +23429,33 @@ return x_186; } } } -lean_object* l___private_Lean_Elab_Match_27__mkMatchType___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_32__mkMatchType___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_27__mkMatchType___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_32__mkMatchType___main(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_27__mkMatchType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_32__mkMatchType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_27__mkMatchType___main(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_32__mkMatchType___main(x_1, x_2, x_3, x_4); return x_5; } } -lean_object* l___private_Lean_Elab_Match_27__mkMatchType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_32__mkMatchType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_27__mkMatchType(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_32__mkMatchType(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_28__mkOptType(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_33__mkOptType(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; @@ -19245,7 +23477,7 @@ lean_ctor_set(x_12, 1, x_10); return x_12; } } -lean_object* _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__1() { _start: { lean_object* x_1; @@ -19253,22 +23485,22 @@ x_1 = lean_mk_string("Eq.refl"); return x_1; } } -lean_object* _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__2() { +lean_object* _init_l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__1; +x_1 = l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__3() { +lean_object* _init_l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__1; +x_1 = l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__2; +x_3 = l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__2; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -19276,7 +23508,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__4() { +lean_object* _init_l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -19288,19 +23520,19 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__5() { +lean_object* _init_l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__4; +x_2 = l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__4; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__6() { +lean_object* _init_l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -19310,7 +23542,7 @@ x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_34__mkNewDiscrs___main(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; @@ -19370,8 +23602,8 @@ lean_inc(x_26); x_27 = l_Lean_Meta_mkEqRefl___closed__2; x_28 = l_Lean_addMacroScope(x_26, x_27, x_25); x_29 = l_Lean_SourceInfo_inhabited___closed__1; -x_30 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__3; -x_31 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__5; +x_30 = l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__3; +x_31 = l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__5; x_32 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_32, 0, x_29); lean_ctor_set(x_32, 1, x_30); @@ -19392,7 +23624,7 @@ x_42 = l_Lean_mkAppStx___closed__8; x_43 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); -x_44 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__6; +x_44 = l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__6; x_45 = lean_array_push(x_44, x_43); x_46 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_46, 0, x_10); @@ -19420,33 +23652,33 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___main___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_Lean_Elab_Match_34__mkNewDiscrs___main___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_Lean_Elab_Match_29__mkNewDiscrs___main(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Match_34__mkNewDiscrs___main(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } } -lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Elab_Match_34__mkNewDiscrs(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_Lean_Elab_Match_29__mkNewDiscrs___main(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Match_34__mkNewDiscrs___main(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l___private_Lean_Elab_Match_29__mkNewDiscrs___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_Lean_Elab_Match_34__mkNewDiscrs___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_Lean_Elab_Match_29__mkNewDiscrs(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Elab_Match_34__mkNewDiscrs(x_1, x_2, x_3, x_4, x_5); lean_dec(x_1); return x_6; } } -lean_object* _init_l___private_Lean_Elab_Match_30__mkNewPatterns___main___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_35__mkNewPatterns___main___closed__1() { _start: { lean_object* x_1; @@ -19454,7 +23686,7 @@ x_1 = lean_mk_string("invalid number of patterns, expected #"); return x_1; } } -lean_object* l___private_Lean_Elab_Match_30__mkNewPatterns___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Lean_Elab_Match_35__mkNewPatterns___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; uint8_t x_9; @@ -19485,7 +23717,7 @@ lean_dec(x_11); lean_dec(x_5); lean_dec(x_4); x_14 = l_Nat_repr(x_8); -x_15 = l___private_Lean_Elab_Match_30__mkNewPatterns___main___closed__1; +x_15 = l___private_Lean_Elab_Match_35__mkNewPatterns___main___closed__1; x_16 = lean_string_append(x_15, x_14); lean_dec(x_14); x_17 = lean_alloc_ctor(0, 2, 0); @@ -19560,37 +23792,37 @@ goto _start; } } } -lean_object* l___private_Lean_Elab_Match_30__mkNewPatterns___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* l___private_Lean_Elab_Match_35__mkNewPatterns___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) { _start: { lean_object* x_8; -x_8 = l___private_Lean_Elab_Match_30__mkNewPatterns___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Elab_Match_35__mkNewPatterns___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); return x_8; } } -lean_object* l___private_Lean_Elab_Match_30__mkNewPatterns(lean_object* x_1, lean_object* 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_Elab_Match_35__mkNewPatterns(lean_object* x_1, 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_Elab_Match_30__mkNewPatterns___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Elab_Match_35__mkNewPatterns___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7); return x_8; } } -lean_object* l___private_Lean_Elab_Match_30__mkNewPatterns___boxed(lean_object* x_1, lean_object* 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_Elab_Match_35__mkNewPatterns___boxed(lean_object* x_1, 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_Elab_Match_30__mkNewPatterns(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Elab_Match_35__mkNewPatterns(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); return x_8; } } -lean_object* l___private_Lean_Elab_Match_31__mkNewAlt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_36__mkNewAlt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; @@ -19600,7 +23832,7 @@ x_7 = l_Lean_Syntax_getArgs(x_6); lean_dec(x_6); x_8 = l_Array_empty___closed__1; lean_inc(x_2); -x_9 = l___private_Lean_Elab_Match_30__mkNewPatterns___main(x_2, x_1, x_7, x_5, x_8, x_3, x_4); +x_9 = l___private_Lean_Elab_Match_35__mkNewPatterns___main(x_2, x_1, x_7, x_5, x_8, x_3, x_4); lean_dec(x_7); if (lean_obj_tag(x_9) == 0) { @@ -19662,17 +23894,17 @@ return x_24; } } } -lean_object* l___private_Lean_Elab_Match_31__mkNewAlt___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_36__mkNewAlt___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_31__mkNewAlt(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_36__mkNewAlt(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_1); return x_5; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_32__mkNewAlts___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___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_37__mkNewAlts___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; @@ -19763,54 +23995,54 @@ return x_29; } } } -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_32__mkNewAlts___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_37__mkNewAlts___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; x_5 = lean_unsigned_to_nat(0u); x_6 = l_Array_empty___closed__1; -x_7 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_32__mkNewAlts___spec__2(x_1, x_2, x_5, x_6, x_3, x_4); +x_7 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_37__mkNewAlts___spec__2(x_1, x_2, x_5, x_6, x_3, x_4); return x_7; } } -lean_object* l___private_Lean_Elab_Match_32__mkNewAlts(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_37__mkNewAlts(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; -x_5 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_31__mkNewAlt___boxed), 4, 1); +x_5 = lean_alloc_closure((void*)(l___private_Lean_Elab_Match_36__mkNewAlt___boxed), 4, 1); lean_closure_set(x_5, 0, x_1); -x_6 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_32__mkNewAlts___spec__1(x_2, x_5, x_3, x_4); +x_6 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_37__mkNewAlts___spec__1(x_2, x_5, x_3, x_4); return x_6; } } -lean_object* l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_32__mkNewAlts___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___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_37__mkNewAlts___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___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_32__mkNewAlts___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Init_LeanInit_14__mapSepElemsMAux___main___at___private_Lean_Elab_Match_37__mkNewAlts___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_1); return x_7; } } -lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_32__mkNewAlts___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_mapSepElemsM___at___private_Lean_Elab_Match_37__mkNewAlts___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_32__mkNewAlts___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_mapSepElemsM___at___private_Lean_Elab_Match_37__mkNewAlts___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_32__mkNewAlts___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Elab_Match_37__mkNewAlts___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Elab_Match_32__mkNewAlts(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Elab_Match_37__mkNewAlts(x_1, x_2, x_3, x_4); lean_dec(x_2); return x_5; } } -uint8_t l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___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_Elab_Match_38__expandMatchDiscr_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -19850,7 +24082,7 @@ goto _start; } } } -lean_object* _init_l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___closed__1() { +lean_object* _init_l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f___closed__1() { _start: { lean_object* x_1; @@ -19858,7 +24090,7 @@ x_1 = lean_mk_string("match expected type should not be provided when discrimina return x_1; } } -lean_object* l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; @@ -19871,7 +24103,7 @@ x_8 = lean_unsigned_to_nat(0u); x_9 = l_Array_empty___closed__1; x_10 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_7, x_6, x_8, x_9); x_11 = lean_array_get_size(x_10); -x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___spec__1(x_1, x_10, x_11, x_8); +x_12 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_38__expandMatchDiscr_x3f___spec__1(x_1, x_10, x_11, x_8); lean_dec(x_11); lean_dec(x_10); if (x_12 == 0) @@ -19897,7 +24129,7 @@ lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_17 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___closed__1; +x_17 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f___closed__1; x_18 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_18, 0, x_15); lean_ctor_set(x_18, 1, x_17); @@ -19911,17 +24143,17 @@ else lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_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_dec(x_15); lean_inc(x_2); -x_20 = l___private_Lean_Elab_Match_27__mkMatchType___main(x_6, x_8, x_2, x_3); +x_20 = l___private_Lean_Elab_Match_32__mkMatchType___main(x_6, x_8, x_2, x_3); 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_Syntax_copyInfo(x_21, x_1); -x_24 = l___private_Lean_Elab_Match_28__mkOptType(x_23); +x_24 = l___private_Lean_Elab_Match_33__mkOptType(x_23); x_25 = l_Lean_Syntax_setArg(x_1, x_7, x_24); lean_inc(x_2); -x_26 = l___private_Lean_Elab_Match_29__mkNewDiscrs___main(x_6, x_8, x_9, x_2, x_22); +x_26 = l___private_Lean_Elab_Match_34__mkNewDiscrs___main(x_6, x_8, x_9, x_2, x_22); x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); @@ -19936,7 +24168,7 @@ x_32 = lean_unsigned_to_nat(5u); x_33 = l_Lean_Syntax_getArg(x_31, x_32); x_34 = l_Lean_Syntax_getArgs(x_33); lean_dec(x_33); -x_35 = l___private_Lean_Elab_Match_32__mkNewAlts(x_6, x_34, x_2, x_28); +x_35 = l___private_Lean_Elab_Match_37__mkNewAlts(x_6, x_34, x_2, x_28); lean_dec(x_34); if (lean_obj_tag(x_35) == 0) { @@ -20002,11 +24234,11 @@ return x_50; } } } -lean_object* l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___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_Elab_Match_38__expandMatchDiscr_x3f___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_Elab_Match_33__expandMatchDiscr_x3f___spec__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_anyRangeMAux___main___at___private_Lean_Elab_Match_38__expandMatchDiscr_x3f___spec__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -20045,7 +24277,7 @@ block_33: if (lean_obj_tag(x_5) == 0) { lean_object* x_7; -x_7 = l___private_Lean_Elab_Match_26__elabMatchCore(x_1, x_2, x_3, x_6); +x_7 = l___private_Lean_Elab_Match_31__elabMatchCore(x_1, x_2, x_3, x_6); lean_dec(x_1); return x_7; } @@ -20169,7 +24401,7 @@ lean_ctor_set(x_51, 1, x_36); lean_ctor_set(x_51, 2, x_48); lean_ctor_set(x_51, 3, x_49); lean_inc(x_1); -x_52 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_51, x_46); +x_52 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_51, x_46); if (lean_obj_tag(x_52) == 0) { uint8_t x_53; @@ -20362,7 +24594,7 @@ lean_ctor_set(x_99, 1, x_84); lean_ctor_set(x_99, 2, x_96); lean_ctor_set(x_99, 3, x_97); lean_inc(x_1); -x_100 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_99, x_94); +x_100 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_99, x_94); if (lean_obj_tag(x_100) == 0) { uint8_t x_101; @@ -20557,7 +24789,7 @@ lean_ctor_set(x_147, 1, x_132); lean_ctor_set(x_147, 2, x_144); lean_ctor_set(x_147, 3, x_145); lean_inc(x_1); -x_148 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_147, x_142); +x_148 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_147, x_142); if (lean_obj_tag(x_148) == 0) { uint8_t x_149; @@ -20751,7 +24983,7 @@ lean_ctor_set(x_194, 1, x_179); lean_ctor_set(x_194, 2, x_191); lean_ctor_set(x_194, 3, x_192); lean_inc(x_1); -x_195 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_194, x_189); +x_195 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_194, x_189); if (lean_obj_tag(x_195) == 0) { uint8_t x_196; @@ -20947,7 +25179,7 @@ lean_ctor_set(x_243, 1, x_228); lean_ctor_set(x_243, 2, x_240); lean_ctor_set(x_243, 3, x_241); lean_inc(x_1); -x_244 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_243, x_238); +x_244 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_243, x_238); if (lean_obj_tag(x_244) == 0) { uint8_t x_245; @@ -21141,7 +25373,7 @@ lean_ctor_set(x_290, 1, x_275); lean_ctor_set(x_290, 2, x_287); lean_ctor_set(x_290, 3, x_288); lean_inc(x_1); -x_291 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_290, x_285); +x_291 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_290, x_285); if (lean_obj_tag(x_291) == 0) { uint8_t x_292; @@ -21337,7 +25569,7 @@ lean_ctor_set(x_339, 1, x_324); lean_ctor_set(x_339, 2, x_336); lean_ctor_set(x_339, 3, x_337); lean_inc(x_1); -x_340 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_339, x_334); +x_340 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_339, x_334); if (lean_obj_tag(x_340) == 0) { uint8_t x_341; @@ -21532,7 +25764,7 @@ lean_ctor_set(x_387, 1, x_372); lean_ctor_set(x_387, 2, x_384); lean_ctor_set(x_387, 3, x_385); lean_inc(x_1); -x_388 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_387, x_382); +x_388 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_387, x_382); if (lean_obj_tag(x_388) == 0) { uint8_t x_389; @@ -21728,7 +25960,7 @@ lean_ctor_set(x_434, 1, x_419); lean_ctor_set(x_434, 2, x_431); lean_ctor_set(x_434, 3, x_432); lean_inc(x_1); -x_435 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_434, x_429); +x_435 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_434, x_429); if (lean_obj_tag(x_435) == 0) { uint8_t x_436; @@ -21923,7 +26155,7 @@ lean_ctor_set(x_481, 1, x_466); lean_ctor_set(x_481, 2, x_478); lean_ctor_set(x_481, 3, x_479); lean_inc(x_1); -x_482 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_481, x_476); +x_482 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_481, x_476); if (lean_obj_tag(x_482) == 0) { uint8_t x_483; @@ -22119,7 +26351,7 @@ lean_ctor_set(x_528, 1, x_513); lean_ctor_set(x_528, 2, x_525); lean_ctor_set(x_528, 3, x_526); lean_inc(x_1); -x_529 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_528, x_523); +x_529 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_528, x_523); if (lean_obj_tag(x_529) == 0) { uint8_t x_530; @@ -22295,7 +26527,7 @@ lean_ctor_set(x_576, 1, x_561); lean_ctor_set(x_576, 2, x_573); lean_ctor_set(x_576, 3, x_574); lean_inc(x_1); -x_577 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_576, x_571); +x_577 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_576, x_571); if (lean_obj_tag(x_577) == 0) { uint8_t x_578; @@ -22493,7 +26725,7 @@ lean_ctor_set(x_623, 1, x_608); lean_ctor_set(x_623, 2, x_620); lean_ctor_set(x_623, 3, x_621); lean_inc(x_1); -x_624 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_623, x_618); +x_624 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_623, x_618); if (lean_obj_tag(x_624) == 0) { uint8_t x_625; @@ -22733,7 +26965,7 @@ lean_ctor_set(x_717, 1, x_702); lean_ctor_set(x_717, 2, x_714); lean_ctor_set(x_717, 3, x_715); lean_inc(x_1); -x_718 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_717, x_712); +x_718 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_717, x_712); if (lean_obj_tag(x_718) == 0) { uint8_t x_719; @@ -22929,7 +27161,7 @@ lean_ctor_set(x_764, 1, x_749); lean_ctor_set(x_764, 2, x_761); lean_ctor_set(x_764, 3, x_762); lean_inc(x_1); -x_765 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_764, x_759); +x_765 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_764, x_759); if (lean_obj_tag(x_765) == 0) { uint8_t x_766; @@ -23123,7 +27355,7 @@ lean_ctor_set(x_811, 1, x_796); lean_ctor_set(x_811, 2, x_808); lean_ctor_set(x_811, 3, x_809); lean_inc(x_1); -x_812 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_811, x_806); +x_812 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_811, x_806); if (lean_obj_tag(x_812) == 0) { uint8_t x_813; @@ -23319,7 +27551,7 @@ lean_ctor_set(x_858, 1, x_843); lean_ctor_set(x_858, 2, x_855); lean_ctor_set(x_858, 3, x_856); lean_inc(x_1); -x_859 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_858, x_853); +x_859 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_858, x_853); if (lean_obj_tag(x_859) == 0) { uint8_t x_860; @@ -23495,7 +27727,7 @@ lean_ctor_set(x_906, 1, x_891); lean_ctor_set(x_906, 2, x_903); lean_ctor_set(x_906, 3, x_904); lean_inc(x_1); -x_907 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_906, x_901); +x_907 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_906, x_901); if (lean_obj_tag(x_907) == 0) { uint8_t x_908; @@ -23692,7 +27924,7 @@ lean_ctor_set(x_953, 1, x_938); lean_ctor_set(x_953, 2, x_950); lean_ctor_set(x_953, 3, x_951); lean_inc(x_1); -x_954 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_953, x_948); +x_954 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_953, x_948); if (lean_obj_tag(x_954) == 0) { uint8_t x_955; @@ -23932,7 +28164,7 @@ lean_ctor_set(x_1056, 1, x_1041); lean_ctor_set(x_1056, 2, x_1053); lean_ctor_set(x_1056, 3, x_1054); lean_inc(x_1); -x_1057 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1056, x_1051); +x_1057 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_1056, x_1051); if (lean_obj_tag(x_1057) == 0) { uint8_t x_1058; @@ -24125,7 +28357,7 @@ lean_ctor_set(x_1104, 1, x_1089); lean_ctor_set(x_1104, 2, x_1101); lean_ctor_set(x_1104, 3, x_1102); lean_inc(x_1); -x_1105 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1104, x_1099); +x_1105 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_1104, x_1099); if (lean_obj_tag(x_1105) == 0) { uint8_t x_1106; @@ -24320,7 +28552,7 @@ lean_ctor_set(x_1151, 1, x_1136); lean_ctor_set(x_1151, 2, x_1148); lean_ctor_set(x_1151, 3, x_1149); lean_inc(x_1); -x_1152 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1151, x_1146); +x_1152 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_1151, x_1146); if (lean_obj_tag(x_1152) == 0) { uint8_t x_1153; @@ -24513,7 +28745,7 @@ lean_ctor_set(x_1198, 1, x_1183); lean_ctor_set(x_1198, 2, x_1195); lean_ctor_set(x_1198, 3, x_1196); lean_inc(x_1); -x_1199 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1198, x_1193); +x_1199 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_1198, x_1193); if (lean_obj_tag(x_1199) == 0) { uint8_t x_1200; @@ -24708,7 +28940,7 @@ lean_ctor_set(x_1245, 1, x_1230); lean_ctor_set(x_1245, 2, x_1242); lean_ctor_set(x_1245, 3, x_1243); lean_inc(x_1); -x_1246 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1245, x_1240); +x_1246 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_1245, x_1240); if (lean_obj_tag(x_1246) == 0) { uint8_t x_1247; @@ -24883,7 +29115,7 @@ lean_ctor_set(x_1293, 1, x_1278); lean_ctor_set(x_1293, 2, x_1290); lean_ctor_set(x_1293, 3, x_1291); lean_inc(x_1); -x_1294 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1293, x_1288); +x_1294 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_1293, x_1288); if (lean_obj_tag(x_1294) == 0) { uint8_t x_1295; @@ -25079,7 +29311,7 @@ lean_ctor_set(x_1340, 1, x_1325); lean_ctor_set(x_1340, 2, x_1337); lean_ctor_set(x_1340, 3, x_1338); lean_inc(x_1); -x_1341 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1340, x_1335); +x_1341 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_1340, x_1335); if (lean_obj_tag(x_1341) == 0) { uint8_t x_1342; @@ -25318,7 +29550,7 @@ lean_ctor_set(x_1430, 1, x_1415); lean_ctor_set(x_1430, 2, x_1427); lean_ctor_set(x_1430, 3, x_1428); lean_inc(x_1); -x_1431 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1430, x_1425); +x_1431 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_1430, x_1425); if (lean_obj_tag(x_1431) == 0) { uint8_t x_1432; @@ -25513,7 +29745,7 @@ lean_ctor_set(x_1477, 1, x_1462); lean_ctor_set(x_1477, 2, x_1474); lean_ctor_set(x_1477, 3, x_1475); lean_inc(x_1); -x_1478 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1477, x_1472); +x_1478 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_1477, x_1472); if (lean_obj_tag(x_1478) == 0) { uint8_t x_1479; @@ -25706,7 +29938,7 @@ lean_ctor_set(x_1524, 1, x_1509); lean_ctor_set(x_1524, 2, x_1521); lean_ctor_set(x_1524, 3, x_1522); lean_inc(x_1); -x_1525 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1524, x_1519); +x_1525 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_1524, x_1519); if (lean_obj_tag(x_1525) == 0) { uint8_t x_1526; @@ -25901,7 +30133,7 @@ lean_ctor_set(x_1571, 1, x_1556); lean_ctor_set(x_1571, 2, x_1568); lean_ctor_set(x_1571, 3, x_1569); lean_inc(x_1); -x_1572 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1571, x_1566); +x_1572 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_1571, x_1566); if (lean_obj_tag(x_1572) == 0) { uint8_t x_1573; @@ -26076,7 +30308,7 @@ lean_ctor_set(x_1619, 1, x_1604); lean_ctor_set(x_1619, 2, x_1616); lean_ctor_set(x_1619, 3, x_1617); lean_inc(x_1); -x_1620 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1619, x_1614); +x_1620 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_1619, x_1614); if (lean_obj_tag(x_1620) == 0) { uint8_t x_1621; @@ -26272,7 +30504,7 @@ lean_ctor_set(x_1666, 1, x_1651); lean_ctor_set(x_1666, 2, x_1663); lean_ctor_set(x_1666, 3, x_1664); lean_inc(x_1); -x_1667 = l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f(x_1, x_1666, x_1661); +x_1667 = l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f(x_1, x_1666, x_1661); if (lean_obj_tag(x_1667) == 0) { uint8_t x_1668; @@ -26446,7 +30678,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l___private_Lean_Elab_Match_34__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Lean_Elab_Match_39__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -26706,68 +30938,92 @@ l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__2 = _init_l___p lean_mark_persistent(l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__2); l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3 = _init_l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3(); lean_mark_persistent(l___private_Lean_Elab_Match_24__elabPatternsAux___main___closed__3); -l___private_Lean_Elab_Match_25__elabPatterns___closed__1 = _init_l___private_Lean_Elab_Match_25__elabPatterns___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__elabPatterns___closed__1); -l___private_Lean_Elab_Match_25__elabPatterns___closed__2 = _init_l___private_Lean_Elab_Match_25__elabPatterns___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__elabPatterns___closed__2); -l___private_Lean_Elab_Match_25__elabPatterns___closed__3 = _init_l___private_Lean_Elab_Match_25__elabPatterns___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_25__elabPatterns___closed__3); +l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__1 = _init_l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__1); +l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__2 = _init_l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__2); +l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__3 = _init_l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_27__throwInvalidPattern___rarg___closed__3); +l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__1 = _init_l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__1); +l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__2 = _init_l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__2); +l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3 = _init_l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_ToDepElimPattern_main___main___closed__3); +l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__1 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__1(); +lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__1); +l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__2 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__2(); +lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__2); +l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__3 = _init_l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__3(); +lean_mark_persistent(l_Array_forMAux___main___at___private_Lean_Elab_Match_30__elabPatterns___spec__3___closed__3); +l___private_Lean_Elab_Match_30__elabPatterns___closed__1 = _init_l___private_Lean_Elab_Match_30__elabPatterns___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_30__elabPatterns___closed__1); +l___private_Lean_Elab_Match_30__elabPatterns___closed__2 = _init_l___private_Lean_Elab_Match_30__elabPatterns___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_30__elabPatterns___closed__2); +l___private_Lean_Elab_Match_30__elabPatterns___closed__3 = _init_l___private_Lean_Elab_Match_30__elabPatterns___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_30__elabPatterns___closed__3); l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__1 = _init_l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__1); l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2 = _init_l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__2); +l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__3 = _init_l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_elabMatchAltView___lambda__1___closed__3); l_Lean_Elab_Term_elabMatchAltView___closed__1 = _init_l_Lean_Elab_Term_elabMatchAltView___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_elabMatchAltView___closed__1); l_Lean_Elab_Term_elabMatchAltView___closed__2 = _init_l_Lean_Elab_Term_elabMatchAltView___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_elabMatchAltView___closed__2); l_Lean_Elab_Term_elabMatchAltView___closed__3 = _init_l_Lean_Elab_Term_elabMatchAltView___closed__3(); lean_mark_persistent(l_Lean_Elab_Term_elabMatchAltView___closed__3); -l___private_Lean_Elab_Match_26__elabMatchCore___closed__1 = _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_26__elabMatchCore___closed__1); -l___private_Lean_Elab_Match_26__elabMatchCore___closed__2 = _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_26__elabMatchCore___closed__2); -l___private_Lean_Elab_Match_26__elabMatchCore___closed__3 = _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_26__elabMatchCore___closed__3); -l___private_Lean_Elab_Match_26__elabMatchCore___closed__4 = _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_26__elabMatchCore___closed__4); -l___private_Lean_Elab_Match_26__elabMatchCore___closed__5 = _init_l___private_Lean_Elab_Match_26__elabMatchCore___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_26__elabMatchCore___closed__5); -l___private_Lean_Elab_Match_27__mkMatchType___main___closed__1 = _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__mkMatchType___main___closed__1); -l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2 = _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__mkMatchType___main___closed__2); -l___private_Lean_Elab_Match_27__mkMatchType___main___closed__3 = _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__mkMatchType___main___closed__3); -l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4 = _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__mkMatchType___main___closed__4); -l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5 = _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__mkMatchType___main___closed__5); -l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6 = _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__mkMatchType___main___closed__6); -l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7 = _init_l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7(); -lean_mark_persistent(l___private_Lean_Elab_Match_27__mkMatchType___main___closed__7); -l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__1 = _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__1); -l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__2 = _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__2(); -lean_mark_persistent(l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__2); -l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__3 = _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__3(); -lean_mark_persistent(l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__3); -l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__4 = _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__4(); -lean_mark_persistent(l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__4); -l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__5 = _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__5(); -lean_mark_persistent(l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__5); -l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__6 = _init_l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__6(); -lean_mark_persistent(l___private_Lean_Elab_Match_29__mkNewDiscrs___main___closed__6); -l___private_Lean_Elab_Match_30__mkNewPatterns___main___closed__1 = _init_l___private_Lean_Elab_Match_30__mkNewPatterns___main___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_30__mkNewPatterns___main___closed__1); -l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___closed__1 = _init_l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___closed__1(); -lean_mark_persistent(l___private_Lean_Elab_Match_33__expandMatchDiscr_x3f___closed__1); +l_Lean_Elab_Term_mkMotiveType___closed__1 = _init_l_Lean_Elab_Term_mkMotiveType___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_mkMotiveType___closed__1); +l___private_Lean_Elab_Match_31__elabMatchCore___closed__1 = _init_l___private_Lean_Elab_Match_31__elabMatchCore___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_31__elabMatchCore___closed__1); +l___private_Lean_Elab_Match_31__elabMatchCore___closed__2 = _init_l___private_Lean_Elab_Match_31__elabMatchCore___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_31__elabMatchCore___closed__2); +l___private_Lean_Elab_Match_31__elabMatchCore___closed__3 = _init_l___private_Lean_Elab_Match_31__elabMatchCore___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_31__elabMatchCore___closed__3); +l___private_Lean_Elab_Match_31__elabMatchCore___closed__4 = _init_l___private_Lean_Elab_Match_31__elabMatchCore___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_31__elabMatchCore___closed__4); +l___private_Lean_Elab_Match_31__elabMatchCore___closed__5 = _init_l___private_Lean_Elab_Match_31__elabMatchCore___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_31__elabMatchCore___closed__5); +l___private_Lean_Elab_Match_31__elabMatchCore___closed__6 = _init_l___private_Lean_Elab_Match_31__elabMatchCore___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Match_31__elabMatchCore___closed__6); +l___private_Lean_Elab_Match_32__mkMatchType___main___closed__1 = _init_l___private_Lean_Elab_Match_32__mkMatchType___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_32__mkMatchType___main___closed__1); +l___private_Lean_Elab_Match_32__mkMatchType___main___closed__2 = _init_l___private_Lean_Elab_Match_32__mkMatchType___main___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_32__mkMatchType___main___closed__2); +l___private_Lean_Elab_Match_32__mkMatchType___main___closed__3 = _init_l___private_Lean_Elab_Match_32__mkMatchType___main___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_32__mkMatchType___main___closed__3); +l___private_Lean_Elab_Match_32__mkMatchType___main___closed__4 = _init_l___private_Lean_Elab_Match_32__mkMatchType___main___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_32__mkMatchType___main___closed__4); +l___private_Lean_Elab_Match_32__mkMatchType___main___closed__5 = _init_l___private_Lean_Elab_Match_32__mkMatchType___main___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_32__mkMatchType___main___closed__5); +l___private_Lean_Elab_Match_32__mkMatchType___main___closed__6 = _init_l___private_Lean_Elab_Match_32__mkMatchType___main___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Match_32__mkMatchType___main___closed__6); +l___private_Lean_Elab_Match_32__mkMatchType___main___closed__7 = _init_l___private_Lean_Elab_Match_32__mkMatchType___main___closed__7(); +lean_mark_persistent(l___private_Lean_Elab_Match_32__mkMatchType___main___closed__7); +l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__1 = _init_l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__1); +l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__2 = _init_l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__2(); +lean_mark_persistent(l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__2); +l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__3 = _init_l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__3(); +lean_mark_persistent(l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__3); +l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__4 = _init_l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__4(); +lean_mark_persistent(l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__4); +l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__5 = _init_l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__5(); +lean_mark_persistent(l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__5); +l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__6 = _init_l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__6(); +lean_mark_persistent(l___private_Lean_Elab_Match_34__mkNewDiscrs___main___closed__6); +l___private_Lean_Elab_Match_35__mkNewPatterns___main___closed__1 = _init_l___private_Lean_Elab_Match_35__mkNewPatterns___main___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_35__mkNewPatterns___main___closed__1); +l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f___closed__1 = _init_l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f___closed__1(); +lean_mark_persistent(l___private_Lean_Elab_Match_38__expandMatchDiscr_x3f___closed__1); l___regBuiltin_Lean_Elab_Term_elabMatch___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabMatch___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabMatch___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabMatch(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l___private_Lean_Elab_Match_34__regTraceClasses(lean_io_mk_world()); +res = l___private_Lean_Elab_Match_39__regTraceClasses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_mk_io_result(lean_box(0)); diff --git a/stage0/stdlib/Lean/Elab/Quotation.c b/stage0/stdlib/Lean/Elab/Quotation.c index d0fa95f4bf..157edab55c 100644 --- a/stage0/stdlib/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Lean/Elab/Quotation.c @@ -122,7 +122,6 @@ lean_object* l___private_Lean_Elab_Quotation_8__letBindRhss(lean_object*, lean_o extern lean_object* l_String_splitAux___main___closed__1; lean_object* l___private_Lean_Elab_Quotation_7__getPatternVarsAux___main(lean_object*); lean_object* l___private_Lean_Elab_Quotation_2__quoteSyntax___main(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_unitToExpr___lambda__1___closed__3; lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__14; lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_antiquotKind_x3f___boxed(lean_object*); @@ -259,6 +258,7 @@ lean_object* l___private_Lean_Elab_Quotation_10__toPreterm___main___closed__5; extern lean_object* l_Lean_Unhygienic_MonadQuotation___closed__4; lean_object* l_Lean_Elab_Term_Quotation_isAntiquotSplicePat___boxed(lean_object*); lean_object* l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__3___closed__1; +extern lean_object* l_Lean_mkThunkType___closed__1; lean_object* l_Lean_Elab_Term_Quotation_getAntiquotTerm(lean_object*); lean_object* lean_mk_empty_local_ctx(lean_object*); lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); @@ -267,7 +267,6 @@ lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3___close lean_object* l___private_Lean_Elab_Quotation_6__compileStxMatch___main___closed__36; uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_Quotation_isAntiquotSplicePat___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_Quotation_7__getPatternVarsAux___main___spec__1(lean_object*); -extern lean_object* l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; lean_object* l_Nat_repr(lean_object*); lean_object* l___private_Lean_Elab_Quotation_11__oldRunTermElabM___rarg___closed__5; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__15; @@ -280,6 +279,7 @@ extern lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__3; lean_object* l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__3___closed__2; lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__7(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Quotation_10__toPreterm___main___lambda__1___closed__1; +extern lean_object* l_Lean_unitToExpr___lambda__1___closed__1; lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_List_foldl___main___at___private_Lean_Elab_Quotation_10__toPreterm___main___spec__14(lean_object*, lean_object*, lean_object*); lean_object* lean_get_antiquot_vars(lean_object*, lean_object*); @@ -14687,9 +14687,9 @@ else lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_dec(x_156); lean_dec(x_2); -x_162 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_162 = l_Lean_mkThunkType___closed__1; x_163 = lean_name_mk_string(x_41, x_162); -x_164 = l_Lean_unitToExpr___lambda__1___closed__3; +x_164 = l_Lean_unitToExpr___lambda__1___closed__1; x_165 = lean_name_mk_string(x_163, x_164); x_166 = lean_box(0); x_167 = l_Lean_mkConst(x_165, x_166); @@ -16773,9 +16773,9 @@ else lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_dec(x_727); lean_dec(x_2); -x_733 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_733 = l_Lean_mkThunkType___closed__1; x_734 = lean_name_mk_string(x_41, x_733); -x_735 = l_Lean_unitToExpr___lambda__1___closed__3; +x_735 = l_Lean_unitToExpr___lambda__1___closed__1; x_736 = lean_name_mk_string(x_734, x_735); x_737 = lean_box(0); x_738 = l_Lean_mkConst(x_736, x_737); @@ -18546,9 +18546,9 @@ else lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_dec(x_1184); lean_dec(x_2); -x_1190 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_1190 = l_Lean_mkThunkType___closed__1; x_1191 = lean_name_mk_string(x_41, x_1190); -x_1192 = l_Lean_unitToExpr___lambda__1___closed__3; +x_1192 = l_Lean_unitToExpr___lambda__1___closed__1; x_1193 = lean_name_mk_string(x_1191, x_1192); x_1194 = lean_box(0); x_1195 = l_Lean_mkConst(x_1193, x_1194); @@ -20352,9 +20352,9 @@ else lean_object* x_1653; lean_object* x_1654; lean_object* x_1655; lean_object* x_1656; lean_object* x_1657; lean_object* x_1658; lean_object* x_1659; lean_dec(x_1647); lean_dec(x_2); -x_1653 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_1653 = l_Lean_mkThunkType___closed__1; x_1654 = lean_name_mk_string(x_41, x_1653); -x_1655 = l_Lean_unitToExpr___lambda__1___closed__3; +x_1655 = l_Lean_unitToExpr___lambda__1___closed__1; x_1656 = lean_name_mk_string(x_1654, x_1655); x_1657 = lean_box(0); x_1658 = l_Lean_mkConst(x_1656, x_1657); @@ -22190,9 +22190,9 @@ else lean_object* x_2123; lean_object* x_2124; lean_object* x_2125; lean_object* x_2126; lean_object* x_2127; lean_object* x_2128; lean_object* x_2129; lean_dec(x_2117); lean_dec(x_2); -x_2123 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_2123 = l_Lean_mkThunkType___closed__1; x_2124 = lean_name_mk_string(x_41, x_2123); -x_2125 = l_Lean_unitToExpr___lambda__1___closed__3; +x_2125 = l_Lean_unitToExpr___lambda__1___closed__1; x_2126 = lean_name_mk_string(x_2124, x_2125); x_2127 = lean_box(0); x_2128 = l_Lean_mkConst(x_2126, x_2127); @@ -24304,9 +24304,9 @@ else lean_object* x_2636; lean_object* x_2637; lean_object* x_2638; lean_object* x_2639; lean_object* x_2640; lean_object* x_2641; lean_object* x_2642; lean_dec(x_2630); lean_dec(x_2484); -x_2636 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_2636 = l_Lean_mkThunkType___closed__1; x_2637 = lean_name_mk_string(x_2505, x_2636); -x_2638 = l_Lean_unitToExpr___lambda__1___closed__3; +x_2638 = l_Lean_unitToExpr___lambda__1___closed__1; x_2639 = lean_name_mk_string(x_2637, x_2638); x_2640 = lean_box(0); x_2641 = l_Lean_mkConst(x_2639, x_2640); diff --git a/stage0/stdlib/Lean/Elab/StructInst.c b/stage0/stdlib/Lean/Elab/StructInst.c index 43bfec9710..c6fc9a75bc 100644 --- a/stage0/stdlib/Lean/Elab/StructInst.c +++ b/stage0/stdlib/Lean/Elab/StructInst.c @@ -96,6 +96,7 @@ extern lean_object* l___private_Lean_Elab_Quotation_4__getHeadInfo___elambda__3_ lean_object* l_Std_HashMapImp_moveEntries___main___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___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_annotation_x3f(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_5__getStructName___rarg___closed__1; uint8_t l_Lean_Expr_isApp(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_formatStruct___main___closed__5; @@ -141,6 +142,7 @@ extern lean_object* l_Id_monad; lean_object* l_List_foldlM___main___at___private_Lean_Elab_StructInst_24__elabStruct___main___spec__1___closed__1; lean_object* l_Lean_Expr_appArg_x21(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__1; lean_object* l_List_map___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___spec__2(lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_List_head_x21___rarg(lean_object*, lean_object*); @@ -187,16 +189,15 @@ lean_object* l_Lean_Elab_Term_StructInst_Source_isNone___boxed(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_Struct_inhabited; lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1___closed__6; lean_object* l_Std_HashMapImp_find_x3f___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__1___boxed(lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_StructInst_Struct_structName(lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); uint8_t lean_metavar_ctx_is_expr_assigned(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_defaultMissing_x3f___boxed(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_mkDefaultValueAux_x3f___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__2; lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__4(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_StructInst_DefaultFields_propagateLoop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_StructInst_25__elabStructInstAux___closed__4; -lean_object* l_Lean_Elab_Term_StructInst_isDefaultMissing_x3f___boxed(lean_object*); lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Lean_Elab_StructInst_19__expandStruct___main___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_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__1; @@ -286,6 +287,7 @@ lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3_ lean_object* l_Lean_Elab_Term_StructInst_findField_x3f(lean_object*, lean_object*); extern lean_object* l_Lean_Options_empty; lean_object* lean_expr_dbg_to_string(lean_object*); +lean_object* l_Lean_Elab_Term_StructInst_defaultMissing_x3f(lean_object*); lean_object* l_Lean_getPathToBaseStructure_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Lean_Elab_StructInst_9__expandNumLitFields___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); @@ -356,7 +358,6 @@ size_t lean_ptr_addr(lean_object*); lean_object* l_Array_foldlStepMAux___main___at___private_Lean_Elab_StructInst_3__isModifyOp_x3f___spec__1___closed__3; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop___main___closed__3; lean_object* lean_instantiate_value_lparams(lean_object*, lean_object*); -lean_object* l_Lean_isAnnotation_x3f(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_StructInst_throwFailedToElabField___rarg___closed__2; lean_object* l_Lean_Elab_Term_StructInst_formatField___closed__1; lean_object* l_Lean_Elab_Term_setMCtx(lean_object*, lean_object*, lean_object*); @@ -434,7 +435,6 @@ lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_propagateLoop(lean_object extern lean_object* l_PUnit_Inhabited; extern lean_object* l_Lean_mkOptionalNode___closed__1; lean_object* l___private_Lean_Elab_StructInst_17__groupFields___lambda__3___closed__1; -lean_object* l_Lean_Elab_Term_StructInst_isDefaultMissing_x3f(lean_object*); lean_object* l_Lean_Elab_Term_StructInst_elabStructInst___closed__3; lean_object* l_Lean_Elab_Term_StructInst_DefaultFields_findDefaultMissing_x3f___main___boxed(lean_object*, lean_object*); lean_object* l_Std_HashMapImp_expand___at___private_Lean_Elab_StructInst_12__mkFieldMap___spec__5(lean_object*, lean_object*); @@ -2486,7 +2486,7 @@ lean_ctor_set(x_69, 1, x_67); lean_ctor_set(x_69, 2, x_66); lean_ctor_set(x_69, 3, x_68); x_70 = lean_array_push(x_64, x_69); -x_71 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_71 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_72 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_72, 0, x_71); lean_ctor_set(x_72, 1, x_70); @@ -2715,7 +2715,7 @@ lean_ctor_set(x_206, 1, x_204); lean_ctor_set(x_206, 2, x_201); lean_ctor_set(x_206, 3, x_205); x_207 = lean_array_push(x_199, x_206); -x_208 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_208 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_209 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_209, 0, x_208); lean_ctor_set(x_209, 1, x_207); @@ -12733,7 +12733,7 @@ x_6 = l___private_Lean_Meta_EqnCompiler_CaseArraySizes_2__introArrayLitAux___mai x_7 = lean_array_push(x_6, x_1); x_8 = lean_array_push(x_7, x_4); x_9 = lean_array_push(x_8, x_5); -x_10 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_10 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_11 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); @@ -16952,20 +16952,20 @@ x_3 = l_Lean_mkAnnotation(x_2, x_1); return x_3; } } -lean_object* l_Lean_Elab_Term_StructInst_isDefaultMissing_x3f(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_StructInst_defaultMissing_x3f(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; x_2 = l_Lean_Elab_Term_StructInst_markDefaultMissing___closed__2; -x_3 = l_Lean_isAnnotation_x3f(x_2, x_1); +x_3 = l_Lean_annotation_x3f(x_2, x_1); return x_3; } } -lean_object* l_Lean_Elab_Term_StructInst_isDefaultMissing_x3f___boxed(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_StructInst_defaultMissing_x3f___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_Elab_Term_StructInst_isDefaultMissing_x3f(x_1); +x_2 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_1); lean_dec(x_1); return x_2; } @@ -21199,7 +21199,7 @@ lean_object* x_7; lean_object* x_8; x_7 = lean_ctor_get(x_4, 0); lean_inc(x_7); lean_dec(x_4); -x_8 = l_Lean_Elab_Term_StructInst_isDefaultMissing_x3f(x_7); +x_8 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_7); lean_dec(x_7); if (lean_obj_tag(x_8) == 0) { @@ -22566,7 +22566,7 @@ if (x_69 == 0) { lean_object* x_70; lean_object* x_71; x_70 = lean_ctor_get(x_68, 0); -x_71 = l_Lean_Elab_Term_StructInst_isDefaultMissing_x3f(x_2); +x_71 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_2); if (lean_obj_tag(x_71) == 0) { lean_object* x_72; @@ -22601,7 +22601,7 @@ x_76 = lean_ctor_get(x_68, 1); lean_inc(x_76); lean_inc(x_75); lean_dec(x_68); -x_77 = l_Lean_Elab_Term_StructInst_isDefaultMissing_x3f(x_2); +x_77 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_2); if (lean_obj_tag(x_77) == 0) { lean_object* x_78; lean_object* x_79; @@ -22832,7 +22832,7 @@ block_98: if (x_4 == 0) { lean_object* x_6; -x_6 = l_Lean_Elab_Term_StructInst_isDefaultMissing_x3f(x_2); +x_6 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_2); if (lean_obj_tag(x_6) == 0) { switch (lean_obj_tag(x_2)) { @@ -24128,7 +24128,7 @@ lean_dec(x_2); x_13 = lean_ctor_get(x_8, 0); lean_inc(x_13); lean_dec(x_8); -x_14 = l_Lean_Elab_Term_StructInst_isDefaultMissing_x3f(x_13); +x_14 = l_Lean_Elab_Term_StructInst_defaultMissing_x3f(x_13); lean_dec(x_13); if (lean_obj_tag(x_14) == 0) { diff --git a/stage0/stdlib/Lean/Elab/Structure.c b/stage0/stdlib/Lean/Elab/Structure.c index 3f33c34580..344d0e38a7 100644 --- a/stage0/stdlib/Lean/Elab/Structure.c +++ b/stage0/stdlib/Lean/Elab/Structure.c @@ -30,6 +30,7 @@ lean_object* l___private_Lean_Elab_Structure_10__withFields___main___rarg___clos lean_object* l___private_Lean_Elab_Structure_23__addCtorFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_StructFieldInfo_inhabited; lean_object* l_Lean_Name_eraseMacroScopes(lean_object*); +extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__1; lean_object* l___private_Lean_Elab_Structure_28__mkAuxConstructions___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Lean_Elab_Structure_25__elabStructureView___spec__2(lean_object*); lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*); @@ -122,7 +123,6 @@ extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Structure_8__processSubfields(lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Structure_15__levelMVarToParamFVars___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; extern lean_object* l_Lean_Parser_Term_type___elambda__1___closed__5; uint8_t l_Lean_Elab_Command_StructFieldInfo_isSubobject(lean_object*); lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*); @@ -8042,7 +8042,7 @@ _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; +x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__1; lean_inc(x_4); x_8 = l_Array_iterateMAux___main___at___private_Lean_Elab_Structure_21__collectLevelParamsInFVars___spec__1(x_1, x_1, x_6, x_7, x_4, x_5); if (lean_obj_tag(x_8) == 0) diff --git a/stage0/stdlib/Lean/Elab/Tactic/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/Basic.c index 9fc142ad25..5666dcf2aa 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Basic.c @@ -361,7 +361,6 @@ lean_object* l_Lean_Elab_Tactic_logTrace(lean_object*, lean_object*, lean_object lean_object* l_Lean_Elab_Tactic_evalFailIfSuccess(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_evalChoiceAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_throwError(lean_object*); lean_object* l_Lean_Syntax_getPos(lean_object*); lean_object* l___regBuiltin_Lean_Elab_Tactic_evalParen___closed__1; @@ -380,6 +379,7 @@ lean_object* l_Lean_Elab_Tactic_adaptExpander(lean_object*, lean_object*, lean_o lean_object* l_Lean_Elab_Tactic_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_focusAux___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Basic_3__getIntrosSize(lean_object*); +lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getFVarIds(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_log___at_Lean_Elab_Tactic_evalTraceState___spec__1(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getEnv___rarg(lean_object*); @@ -16045,7 +16045,7 @@ lean_dec(x_14); x_20 = lean_ctor_get(x_15, 0); lean_inc(x_20); lean_dec(x_15); -x_21 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_12, x_20); +x_21 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(x_12, x_20); x_22 = lean_box(0); x_23 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_23, 0, x_20); diff --git a/stage0/stdlib/Lean/Elab/Tactic/Induction.c b/stage0/stdlib/Lean/Elab/Tactic/Induction.c index c75dc7e2f0..e33090cb39 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Induction.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Induction.c @@ -34,6 +34,7 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_18__checkCasesResult(lean_ob lean_object* l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___closed__2; lean_object* l_Lean_Elab_Tactic_getRecFromUsing___closed__3; lean_object* l___private_Lean_Elab_Tactic_Induction_13__getRecInfoDefault___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_mkThunk___closed__1; lean_object* l___private_Lean_Elab_Tactic_Induction_18__checkCasesResult___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___closed__2; @@ -147,7 +148,6 @@ lean_object* l___private_Lean_Elab_Tactic_Induction_6__generalizeVars___lambda__ lean_object* l___private_Lean_Elab_Tactic_Induction_4__generalizeMajor___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_17__checkCasesResultAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Meta_mkAuxName___closed__1; lean_object* l_Lean_Meta_mkRecursorInfo(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Tactic_Induction_6__generalizeVars___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_foldr___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__1(lean_object*, uint8_t, lean_object*); @@ -1465,7 +1465,7 @@ lean_inc(x_13); x_14 = lean_alloc_closure((void*)(l_Array_forMAux___main___at___private_Lean_Elab_Tactic_Induction_11__checkAltCtorNames___spec__2___lambda__1___boxed), 3, 2); lean_closure_set(x_14, 0, x_13); lean_closure_set(x_14, 1, x_10); -x_15 = l_Lean_Meta_mkAuxName___closed__1; +x_15 = l_Lean_mkThunk___closed__1; x_16 = lean_name_eq(x_13, x_15); x_17 = lean_ctor_get(x_4, 0); lean_inc(x_17); @@ -6667,7 +6667,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; x_6 = lean_array_fget(x_1, x_2); x_7 = l___private_Lean_Elab_Tactic_Induction_8__getAltName(x_6); lean_dec(x_6); -x_8 = l_Lean_Meta_mkAuxName___closed__1; +x_8 = l_Lean_mkThunk___closed__1; x_9 = lean_name_eq(x_7, x_8); lean_dec(x_7); if (x_9 == 0) diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index d1a161ad32..f6bd19ed63 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -134,7 +134,6 @@ lean_object* l_Lean_Elab_Term_getDecLevel(lean_object*, lean_object*, lean_objec lean_object* l_Lean_Elab_Term_monadQuotation___closed__2; lean_object* l_Lean_Meta_instantiateLevelMVars(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_declareBuiltinParser___closed__3; lean_object* l_Lean_Elab_Term_withoutPostponing(lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__13; lean_object* l_Lean_Elab_Term_decLevel(lean_object*, lean_object*, lean_object*); @@ -199,13 +198,11 @@ extern lean_object* l_Lean_Parser_Term_tupleTail___elambda__1___closed__2; lean_object* l___regBuiltin_Lean_Elab_Term_elabTypeStx(lean_object*); lean_object* l_Lean_Elab_Term_dbgTrace___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabRawStrLit___closed__3; -extern lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__2; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withLetDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*); lean_object* l_Lean_Elab_Term_Exception_hasToString(lean_object*); -lean_object* l_Lean_Elab_Term_elabParen___closed__5; lean_object* l_Lean_Elab_Term_mkTermElabAttribute___closed__5; extern lean_object* l_Lean_LocalContext_Inhabited___closed__1; lean_object* l_Lean_Elab_Term_resolveName___closed__5; @@ -277,7 +274,7 @@ lean_object* l_Lean_Elab_Term_tryCoe(lean_object*, lean_object*, lean_object*, l lean_object* l___private_Lean_Elab_Term_17__elabOptLevel___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main___closed__3; lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabParen___closed__4; +extern lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_throwErrorAt(lean_object*); lean_object* l_Lean_Elab_Term_elabLevel(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltin_Lean_Elab_Term_elabNamedHole(lean_object*); @@ -475,6 +472,7 @@ lean_object* l_Lean_Elab_Term_mkFreshFVarId(lean_object*); lean_object* l_Lean_Elab_Term_elabTermAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLevel___boxed(lean_object*, lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); +extern lean_object* l_Lean_charToExpr___lambda__1___closed__1; lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__2; lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabUsingElabFns___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_expandArrayLit___closed__4; @@ -484,7 +482,6 @@ lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__15; lean_object* l_Lean_Elab_Term_liftLevelM(lean_object*); lean_object* l_Lean_Elab_Term_elabProp(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_charToExpr___lambda__1___closed__2; lean_object* l_Lean_Elab_Term_resolveName___closed__8; lean_object* l_Lean_Elab_addMacroStack(lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_toExpr(lean_object*); @@ -633,7 +630,6 @@ lean_object* l_Lean_Elab_Term_withTransparency___rarg___boxed(lean_object*, lean lean_object* l_Lean_Meta_isLevelDefEq(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_assignLevelMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Lean_Elab_Term_12__isExplicit(lean_object*); -extern lean_object* l_Lean_Meta_evalNat___main___closed__9; lean_object* lean_metavar_ctx_assign_level(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_11__elabUsingElabFnsAux(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_tryLiftAndCoe___closed__6; @@ -784,7 +780,6 @@ lean_object* l___private_Lean_Elab_Term_11__elabUsingElabFnsAux___main___closed_ lean_object* l___private_Lean_Elab_Term_24__regTraceClasses(lean_object*); lean_object* lean_compile_decl(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; -lean_object* l_Lean_Elab_Term_elabRawCharLit___closed__1; lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_resetSynthInstanceCache___boxed(lean_object*); @@ -824,7 +819,6 @@ lean_object* l___private_Lean_Elab_Term_18__mkPairsAux___main___boxed(lean_objec lean_object* l_Lean_Elab_Term_Lean_Elab_MonadMacroAdapter___closed__8; lean_object* l_Lean_Elab_Term_trace(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEqvAux___main___at_Lean_Elab_Term_withLocalContext___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabRawCharLit___closed__2; lean_object* l_Lean_Elab_Term_mkFreshInstanceName___boxed(lean_object*); lean_object* l_Lean_Meta_mkFreshExprMVarWithId(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_Term_11__elabUsingElabFnsAux___main___closed__2; @@ -27452,7 +27446,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Elab_Term_termElabAttribute; -x_3 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_3 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_4 = l___regBuiltin_Lean_Elab_Term_elabSort___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -28334,26 +28328,6 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Term_elabParen___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_declareBuiltinParser___closed__3; -x_2 = l_Lean_unitToExpr___lambda__1___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Term_elabParen___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_elabParen___closed__4; -x_3 = l_Lean_mkConst(x_2, x_1); -return x_3; -} -} lean_object* l_Lean_Elab_Term_elabParen(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -28504,7 +28478,7 @@ lean_dec(x_36); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_146 = l_Lean_Elab_Term_elabParen___closed__5; +x_146 = l_Lean_unitToExpr___lambda__1___closed__3; x_147 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_147, 0, x_146); lean_ctor_set(x_147, 1, x_4); @@ -30694,7 +30668,7 @@ if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_27 = lean_ctor_get(x_25, 0); -x_28 = l_Lean_Meta_evalNat___main___closed__9; +x_28 = l_Lean_Meta_evalNat___main___closed__8; x_29 = l_Lean_mkConst(x_28, x_21); x_30 = l_Lean_mkApp3(x_29, x_10, x_27, x_5); lean_ctor_set(x_25, 0, x_30); @@ -30708,7 +30682,7 @@ x_32 = lean_ctor_get(x_25, 1); lean_inc(x_32); lean_inc(x_31); lean_dec(x_25); -x_33 = l_Lean_Meta_evalNat___main___closed__9; +x_33 = l_Lean_Meta_evalNat___main___closed__8; x_34 = l_Lean_mkConst(x_33, x_21); x_35 = l_Lean_mkApp3(x_34, x_10, x_31, x_5); x_36 = lean_alloc_ctor(0, 2, 0); @@ -30865,26 +30839,6 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* _init_l_Lean_Elab_Term_elabRawCharLit___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_charToExpr___lambda__1___closed__2; -x_2 = l_Lean_Meta_evalNat___main___closed__8; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Term_elabRawCharLit___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_elabRawCharLit___closed__1; -x_3 = l_Lean_mkConst(x_2, x_1); -return x_3; -} -} lean_object* l_Lean_Elab_Term_elabRawCharLit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -30908,7 +30862,7 @@ x_9 = lean_unbox_uint32(x_8); lean_dec(x_8); x_10 = lean_uint32_to_nat(x_9); x_11 = l_Lean_mkNatLit(x_10); -x_12 = l_Lean_Elab_Term_elabRawCharLit___closed__2; +x_12 = l_Lean_charToExpr___lambda__1___closed__1; x_13 = l_Lean_mkApp(x_12, x_11); x_14 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_14, 0, x_13); @@ -31977,10 +31931,6 @@ l_Lean_Elab_Term_elabParen___closed__2 = _init_l_Lean_Elab_Term_elabParen___clos lean_mark_persistent(l_Lean_Elab_Term_elabParen___closed__2); l_Lean_Elab_Term_elabParen___closed__3 = _init_l_Lean_Elab_Term_elabParen___closed__3(); lean_mark_persistent(l_Lean_Elab_Term_elabParen___closed__3); -l_Lean_Elab_Term_elabParen___closed__4 = _init_l_Lean_Elab_Term_elabParen___closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_elabParen___closed__4); -l_Lean_Elab_Term_elabParen___closed__5 = _init_l_Lean_Elab_Term_elabParen___closed__5(); -lean_mark_persistent(l_Lean_Elab_Term_elabParen___closed__5); l___regBuiltin_Lean_Elab_Term_elabParen___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabParen___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabParen___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabParen(lean_io_mk_world()); @@ -32081,10 +32031,6 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabNum___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabNum(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Term_elabRawCharLit___closed__1 = _init_l_Lean_Elab_Term_elabRawCharLit___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_elabRawCharLit___closed__1); -l_Lean_Elab_Term_elabRawCharLit___closed__2 = _init_l_Lean_Elab_Term_elabRawCharLit___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_elabRawCharLit___closed__2); l___regBuiltin_Lean_Elab_Term_elabRawCharLit___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_elabRawCharLit___closed__1(); lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabRawCharLit___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabRawCharLit(lean_io_mk_world()); diff --git a/stage0/stdlib/Lean/Expr.c b/stage0/stdlib/Lean/Expr.c index 51f084efae..c7300e4d93 100644 --- a/stage0/stdlib/Lean/Expr.c +++ b/stage0/stdlib/Lean/Expr.c @@ -15,6 +15,8 @@ extern "C" { #endif lean_object* l_Lean_Expr_isBinding___boxed(lean_object*); lean_object* l_Lean_Expr_letName_x21___closed__2; +extern lean_object* l_Lean_mkHole___closed__3; +lean_object* l_Lean_Expr_ctorName___closed__7; lean_object* l___private_Lean_Expr_8__etaExpandedBody(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_bindingInfo_x21(lean_object*); lean_object* l_Lean_Expr_updateSort___boxed(lean_object*, lean_object*, lean_object*); @@ -26,10 +28,12 @@ lean_object* l_Lean_Expr_Data_hash___boxed(lean_object*); lean_object* l_List_hash___at_Lean_mkConst___spec__1___boxed(lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_Expr_bindingDomain_x21___boxed(lean_object*); +uint8_t l_Lean_Expr_isCharLit(lean_object*); lean_object* l_Lean_Expr_letName_x21(lean_object*); uint8_t l_Lean_Expr_isNatLit(lean_object*); lean_object* l_Lean_Name_eraseMacroScopes(lean_object*); lean_object* l_Lean_Expr_replaceFVar___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkThunkType___closed__2; lean_object* l_Lean_Expr_updateLambda___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgs___boxed(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); @@ -46,6 +50,7 @@ lean_object* l_Lean_Expr_updateConst___boxed(lean_object*, lean_object*, lean_ob lean_object* l_Lean_mkDecIsTrue___closed__3; lean_object* l_unreachable_x21___rarg(lean_object*); lean_object* l_Lean_Expr_withApp(lean_object*); +lean_object* l_Lean_mkThunk___closed__1; size_t l_UInt32_toUSize(uint32_t); lean_object* l_Lean_mkApp6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_eqv___boxed(lean_object*, lean_object*); @@ -76,6 +81,7 @@ lean_object* l_Lean_Expr_isOptParam___boxed(lean_object*); lean_object* l_Lean_Expr_updateMData_x21___closed__1; lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParams___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkForallEx___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkThunkType(lean_object*); lean_object* l_Lean_Expr_Data_hasBeq___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkLambda___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAutoParamTactic_x3f(lean_object*); @@ -95,6 +101,7 @@ lean_object* l___private_Lean_Expr_2__mkAppRangeAux___boxed(lean_object*, lean_o lean_object* l___private_Lean_Expr_5__withAppRevAux(lean_object*); lean_object* l_Lean_ExprStructEq_Hashable; lean_object* l___private_Init_Util_1__mkPanicMessage(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_ctorName___closed__1; lean_object* l_Lean_Expr_instantiateLevelParamsArray(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main___boxed(lean_object*); lean_object* l_Lean_Expr_constName_x21___closed__1; @@ -105,16 +112,20 @@ lean_object* l_Lean_Expr_constName_x21___boxed(lean_object*); lean_object* l___private_Lean_Expr_8__etaExpandedBody___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_withAppRev___rarg(lean_object*, lean_object*); uint64_t l_Lean_Expr_mkData___closed__3; +lean_object* l_Lean_annotation_x3f___boxed(lean_object*, lean_object*); uint64_t l_Lean_Expr_mkDataForBinder(size_t, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t); lean_object* lean_expr_mk_local(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Lean_annotation_x3f(lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x3f___boxed(lean_object*); lean_object* l_Lean_Expr_binderInfoEx___boxed(lean_object*); lean_object* l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); lean_object* l_Lean_Expr_Data_binderInfo___boxed(lean_object*); +lean_object* l_Lean_Expr_ctorName___closed__2; uint8_t l_Lean_Expr_hasLooseBVarInExplicitDomain(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Expr_hasFVarEx___boxed(lean_object*); size_t l_Lean_Level_hash(lean_object*); +lean_object* l_Lean_Expr_ctorName___closed__8; lean_object* l_Lean_Expr_lt___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_updateLet___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appFn_x21(lean_object*); @@ -125,6 +136,7 @@ uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21___closed__2; lean_object* l_Lean_BinderInfo_toUInt64___boxed(lean_object*); lean_object* l_Lean_Expr_bindingBody_x21___closed__1; +lean_object* l_Lean_Expr_ctorName___closed__4; uint8_t l_Lean_Expr_isBVar(lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); lean_object* l_Lean_Literal_type___closed__3; @@ -153,6 +165,7 @@ uint8_t lean_expr_lt(lean_object*, lean_object*); lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*); lean_object* l_Lean_Expr_letName_x21___closed__1; lean_object* l_Lean_Expr_isAppOfArity___main___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkThunkType___closed__3; lean_object* l_Lean_BinderInfo_hashable___closed__1; lean_object* l_Lean_Expr_letName_x21___boxed(lean_object*); lean_object* l_Lean_Expr_updateForall_x21(lean_object*, uint8_t, lean_object*, lean_object*); @@ -160,10 +173,12 @@ lean_object* l_Lean_Expr_looseBVarRange___boxed(lean_object*); lean_object* l___private_Lean_Expr_9__etaExpandedAux(lean_object*, lean_object*); lean_object* l_Lean_Expr_mkDataForBinder___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_BinderInfo_hash___boxed(lean_object*); +lean_object* l_Lean_Expr_ctorName___boxed(lean_object*); lean_object* lean_expr_mk_forall(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* lean_expr_instantiate(lean_object*, lean_object*); lean_object* l_Lean_Expr_bindingName_x21___closed__2; extern lean_object* l_Lean_levelZero; +extern lean_object* l_Lean_mkAppStx___closed__7; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Expr_hasExprMVarEx___boxed(lean_object*); lean_object* l_Lean_ExprStructEq_HasRepr(lean_object*); @@ -176,6 +191,7 @@ lean_object* l_Lean_Expr_getAppFn___boxed(lean_object*); lean_object* l_List_foldr___main___at_Lean_mkConst___spec__3___boxed(lean_object*, lean_object*); uint8_t lean_expr_has_loose_bvar(lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); +lean_object* l_Lean_Expr_natLit_x3f___boxed(lean_object*); lean_object* l_Lean_mkMData(lean_object*, lean_object*); size_t l_List_hash___at_Lean_mkConst___spec__1(lean_object*); lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__3(lean_object*, lean_object*, lean_object*); @@ -226,6 +242,7 @@ uint8_t lean_expr_has_mvar(lean_object*); uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t); lean_object* l_List_map___main___at_Lean_Expr_instantiateLevelParamsArray___spec__4(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Literal_beq(lean_object*, lean_object*); +lean_object* l_Lean_Expr_ctorName___closed__5; lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_replaceFVar(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_headBeta(lean_object*); @@ -247,6 +264,7 @@ uint8_t l_Lean_Expr_isHeadBetaTarget(lean_object*); uint8_t l_Lean_Expr_isBinding(lean_object*); lean_object* l_Lean_Expr_bindingBody_x21___boxed(lean_object*); lean_object* l_Lean_Expr_updateProj_x21(lean_object*, lean_object*); +lean_object* l_Lean_mkThunkType___closed__1; lean_object* l_Lean_mkDecIsTrue___closed__1; lean_object* l_Lean_BinderInfo_beq___boxed(lean_object*, lean_object*); lean_object* l_Lean_Expr_instantiateLevelParams(lean_object*, lean_object*, lean_object*); @@ -275,9 +293,12 @@ lean_object* l_Lean_Expr_getArg_x21___boxed(lean_object*, lean_object*, lean_obj lean_object* l_Lean_Expr_bindingDomain_x21___closed__1; lean_object* l_Lean_KVMap_insertCore___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_InstantiateLevelParams_instantiate(lean_object*, lean_object*); +lean_object* l_Lean_Expr_ctorName___closed__3; +lean_object* l_Lean_Expr_natLit_x3f(lean_object*); lean_object* lean_expr_mk_const(lean_object*, lean_object*); lean_object* l___private_Lean_Expr_1__Expr_mkDataCore___closed__2; lean_object* l_Lean_mkAppRange(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_isCharLit___closed__3; lean_object* l_Lean_Literal_type___closed__4; lean_object* l_Lean_mkDecIsTrue___closed__4; lean_object* lean_expr_mk_lit(lean_object*); @@ -332,6 +353,7 @@ lean_object* l_Lean_Expr_getAutoParamTactic_x3f___closed__2; lean_object* l_Lean_Level_instantiateParams___main(lean_object*, lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); lean_object* l_Lean_Expr_updateSort_x21___closed__2; +lean_object* l_Lean_Expr_ctorName(lean_object*); lean_object* l_Lean_Expr_replaceFVarId(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp9(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_data___boxed(lean_object*); @@ -345,6 +367,7 @@ lean_object* l_Lean_mkLocal(lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Literal_hasBeq; lean_object* l_Lean_Expr_getAppNumArgsAux___main___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Expr_5__withAppRevAux___main___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_ctorName___closed__9; lean_object* l_Lean_Expr_instantiateRevRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_insertAt___rarg___closed__1; lean_object* l_Lean_Expr_updateLambda_x21___closed__1; @@ -356,7 +379,6 @@ lean_object* l_Lean_Expr_updateProj_x21___closed__1; uint8_t l_Lean_BinderInfo_inhabited; lean_object* lean_level_update_imax(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_HasRepr; -lean_object* l_Lean_isAnnotation_x3f(lean_object*, lean_object*); lean_object* l_Lean_Expr_isProj___boxed(lean_object*); lean_object* l_Lean_Expr_updateLambda_x21___closed__2; lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__2___boxed(lean_object*, lean_object*, lean_object*); @@ -372,6 +394,7 @@ lean_object* l___private_Lean_Expr_12__getParamSubstArray___boxed(lean_object*, lean_object* lean_expr_mk_mvar(lean_object*); lean_object* l_Lean_Expr_bindingName_x21(lean_object*); lean_object* l_Lean_Expr_constLevels_x21___boxed(lean_object*); +lean_object* l_Lean_Expr_ctorName___closed__10; lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParamsArray___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_BinderInfo_hasBeq; lean_object* l_Lean_Expr_constLevels_x21___closed__1; @@ -482,10 +505,12 @@ size_t lean_usize_mix_hash(size_t, size_t); uint8_t l_Lean_Expr_isOptParam(lean_object*); lean_object* lean_expr_abstract(lean_object*, lean_object*); lean_object* l_Lean_Expr_getArg_x21(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_ctorName___closed__12; lean_object* l_Lean_mkApp2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_InstantiateLevelParams_instantiate___main___at_Lean_Expr_instantiateLevelParams___spec__1___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_Data_hasBeq(uint64_t, uint64_t); lean_object* l___private_Lean_Expr_6__mkAppRevRangeAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_ctorName___closed__6; uint32_t lean_expr_loose_bvar_range(lean_object*); lean_object* l_Lean_Expr_inferImplicit(lean_object*, lean_object*, uint8_t); lean_object* l_Lean_Expr_mkAppRevRange___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -518,6 +543,7 @@ uint8_t l_List_foldr___main___at_Lean_mkConst___spec__4(uint8_t, lean_object*); lean_object* l_Lean_Expr_etaExpandedStrict_x3f(lean_object*); lean_object* l_Lean_Expr_updateLambdaE_x21(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_hasLooseBVar___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Expr_ctorName___closed__11; lean_object* l___private_Lean_Expr_2__mkAppRangeAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Nat_Inhabited; uint64_t l_UInt64_shiftRight(uint64_t, uint64_t); @@ -527,6 +553,7 @@ lean_object* lean_lit_type(lean_object*); lean_object* l_Lean_Expr_getArgD___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ExprStructEq_HasToString___boxed(lean_object*); +lean_object* l_Lean_Expr_isCharLit___closed__2; lean_object* l_Lean_Expr_getRevArgD___main___boxed(lean_object*, lean_object*, lean_object*); size_t l_Lean_BinderInfo_hash(uint8_t); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); @@ -534,6 +561,7 @@ lean_object* l_Lean_Expr_getRevArgD___main(lean_object*, lean_object*, lean_obje lean_object* l_Lean_mkApp10(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_isApp___boxed(lean_object*); lean_object* l_Lean_Expr_HasBeq; +lean_object* l_Lean_Expr_isCharLit___closed__4; lean_object* l_Lean_mkApp8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkBVar(lean_object*); uint8_t l_Lean_Expr_hasFVar(lean_object*); @@ -574,8 +602,9 @@ uint8_t lean_string_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Expr_isLet___boxed(lean_object*); lean_object* l_Lean_ExprStructEq_hash___boxed(lean_object*); lean_object* l_Lean_Level_instantiateParams___main___at_Lean_Expr_instantiateLevelParams___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_isCharLit___closed__1; +lean_object* l_Lean_Expr_isCharLit___boxed(lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); -lean_object* l_Lean_isAnnotation_x3f___boxed(lean_object*, lean_object*); uint32_t l_Lean_Expr_Data_looseBVarRange(uint64_t); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l___private_Lean_Expr_5__withAppRevAux___rarg(lean_object*, lean_object*, lean_object*); @@ -583,6 +612,7 @@ uint64_t l_Lean_Expr_mkData(size_t, lean_object*, uint8_t, uint8_t, uint8_t, uin lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); lean_object* l_Lean_ExprStructEq_HasBeq; uint8_t lean_expr_has_level_param(lean_object*); +lean_object* l_Lean_mkThunk(lean_object*); lean_object* _init_l_Lean_Literal_inhabited___closed__1() { _start: { @@ -1777,6 +1807,196 @@ x_3 = lean_box_uint64(x_2); return x_3; } } +lean_object* _init_l_Lean_Expr_ctorName___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("bvar"); +return x_1; +} +} +lean_object* _init_l_Lean_Expr_ctorName___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("fvar"); +return x_1; +} +} +lean_object* _init_l_Lean_Expr_ctorName___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("mvar"); +return x_1; +} +} +lean_object* _init_l_Lean_Expr_ctorName___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("sort"); +return x_1; +} +} +lean_object* _init_l_Lean_Expr_ctorName___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("const"); +return x_1; +} +} +lean_object* _init_l_Lean_Expr_ctorName___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("lam"); +return x_1; +} +} +lean_object* _init_l_Lean_Expr_ctorName___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("forallE"); +return x_1; +} +} +lean_object* _init_l_Lean_Expr_ctorName___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("letE"); +return x_1; +} +} +lean_object* _init_l_Lean_Expr_ctorName___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("lit"); +return x_1; +} +} +lean_object* _init_l_Lean_Expr_ctorName___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("mdata"); +return x_1; +} +} +lean_object* _init_l_Lean_Expr_ctorName___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("proj"); +return x_1; +} +} +lean_object* _init_l_Lean_Expr_ctorName___closed__12() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("localE"); +return x_1; +} +} +lean_object* l_Lean_Expr_ctorName(lean_object* x_1) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_2; +x_2 = l_Lean_Expr_ctorName___closed__1; +return x_2; +} +case 1: +{ +lean_object* x_3; +x_3 = l_Lean_Expr_ctorName___closed__2; +return x_3; +} +case 2: +{ +lean_object* x_4; +x_4 = l_Lean_Expr_ctorName___closed__3; +return x_4; +} +case 3: +{ +lean_object* x_5; +x_5 = l_Lean_Expr_ctorName___closed__4; +return x_5; +} +case 4: +{ +lean_object* x_6; +x_6 = l_Lean_Expr_ctorName___closed__5; +return x_6; +} +case 5: +{ +lean_object* x_7; +x_7 = l_Lean_mkAppStx___closed__7; +return x_7; +} +case 6: +{ +lean_object* x_8; +x_8 = l_Lean_Expr_ctorName___closed__6; +return x_8; +} +case 7: +{ +lean_object* x_9; +x_9 = l_Lean_Expr_ctorName___closed__7; +return x_9; +} +case 8: +{ +lean_object* x_10; +x_10 = l_Lean_Expr_ctorName___closed__8; +return x_10; +} +case 9: +{ +lean_object* x_11; +x_11 = l_Lean_Expr_ctorName___closed__9; +return x_11; +} +case 10: +{ +lean_object* x_12; +x_12 = l_Lean_Expr_ctorName___closed__10; +return x_12; +} +case 11: +{ +lean_object* x_13; +x_13 = l_Lean_Expr_ctorName___closed__11; +return x_13; +} +default: +{ +lean_object* x_14; +x_14 = l_Lean_Expr_ctorName___closed__12; +return x_14; +} +} +} +} +lean_object* l_Lean_Expr_ctorName___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Expr_ctorName(x_1); +lean_dec(x_1); +return x_2; +} +} size_t l_Lean_Expr_hash(lean_object* x_1) { _start: { @@ -3954,6 +4174,66 @@ lean_dec(x_1); return x_6; } } +lean_object* _init_l_Lean_mkThunkType___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Unit"); +return x_1; +} +} +lean_object* _init_l_Lean_mkThunkType___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_mkThunkType___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_mkThunkType___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_mkThunkType___closed__2; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +lean_object* l_Lean_mkThunkType(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = lean_box(0); +x_3 = 0; +x_4 = l_Lean_mkThunkType___closed__3; +x_5 = l_Lean_mkForall(x_2, x_3, x_4, x_1); +return x_5; +} +} +lean_object* _init_l_Lean_mkThunk___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_mkHole___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_mkThunk(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_mkThunk___closed__1; +x_3 = 0; +x_4 = l_Lean_mkThunkType___closed__3; +x_5 = l_Lean_mkLambda(x_2, x_3, x_4, x_1); +return x_5; +} +} lean_object* l_Lean_mkLet(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5) { _start: { @@ -5127,82 +5407,6 @@ x_3 = lean_box(x_2); return x_3; } } -uint8_t l_Lean_Expr_isNatLit(lean_object* x_1) { -_start: -{ -if (lean_obj_tag(x_1) == 9) -{ -lean_object* x_2; -x_2 = lean_ctor_get(x_1, 0); -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_3; -x_3 = 1; -return x_3; -} -else -{ -uint8_t x_4; -x_4 = 0; -return x_4; -} -} -else -{ -uint8_t x_5; -x_5 = 0; -return x_5; -} -} -} -lean_object* l_Lean_Expr_isNatLit___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = l_Lean_Expr_isNatLit(x_1); -lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} -uint8_t l_Lean_Expr_isStringLit(lean_object* x_1) { -_start: -{ -if (lean_obj_tag(x_1) == 9) -{ -lean_object* x_2; -x_2 = lean_ctor_get(x_1, 0); -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_3; -x_3 = 0; -return x_3; -} -else -{ -uint8_t x_4; -x_4 = 1; -return x_4; -} -} -else -{ -uint8_t x_5; -x_5 = 0; -return x_5; -} -} -} -lean_object* l_Lean_Expr_isStringLit___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = l_Lean_Expr_isStringLit(x_1); -lean_dec(x_1); -x_3 = lean_box(x_2); -return x_3; -} -} lean_object* l_Lean_Expr_getAppFn___main(lean_object* x_1) { _start: { @@ -5627,7 +5831,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(489u); +x_2 = lean_unsigned_to_nat(504u); x_3 = lean_unsigned_to_nat(20u); x_4 = l_Array_insertAt___rarg___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -5881,7 +6085,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(509u); +x_2 = lean_unsigned_to_nat(524u); x_3 = lean_unsigned_to_nat(15u); x_4 = l_Lean_Expr_appFn_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -5922,7 +6126,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(513u); +x_2 = lean_unsigned_to_nat(528u); x_3 = lean_unsigned_to_nat(15u); x_4 = l_Lean_Expr_appFn_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -5958,6 +6162,191 @@ lean_dec(x_1); return x_2; } } +uint8_t l_Lean_Expr_isNatLit(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 9) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +else +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +} +} +lean_object* l_Lean_Expr_isNatLit___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_isNatLit(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +lean_object* l_Lean_Expr_natLit_x3f(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 9) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_4, 0, x_3); +return x_4; +} +else +{ +lean_object* x_5; +x_5 = lean_box(0); +return x_5; +} +} +else +{ +lean_object* x_6; +x_6 = lean_box(0); +return x_6; +} +} +} +lean_object* l_Lean_Expr_natLit_x3f___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Expr_natLit_x3f(x_1); +lean_dec(x_1); +return x_2; +} +} +uint8_t l_Lean_Expr_isStringLit(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 9) +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 0; +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 1; +return x_4; +} +} +else +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +} +} +lean_object* l_Lean_Expr_isStringLit___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_isStringLit(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Expr_isCharLit___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Char"); +return x_1; +} +} +lean_object* _init_l_Lean_Expr_isCharLit___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Expr_isCharLit___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Expr_isCharLit___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ofNat"); +return x_1; +} +} +lean_object* _init_l_Lean_Expr_isCharLit___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Expr_isCharLit___closed__2; +x_2 = l_Lean_Expr_isCharLit___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +uint8_t l_Lean_Expr_isCharLit(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = l_Lean_Expr_isCharLit___closed__4; +x_3 = lean_unsigned_to_nat(1u); +x_4 = l_Lean_Expr_isAppOfArity___main(x_1, x_2, x_3); +if (x_4 == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; uint8_t x_7; +x_6 = l_Lean_Expr_appArg_x21(x_1); +x_7 = l_Lean_Expr_isNatLit(x_6); +lean_dec(x_6); +return x_7; +} +} +} +lean_object* l_Lean_Expr_isCharLit___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_isCharLit(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} lean_object* _init_l_Lean_Expr_constName_x21___closed__1() { _start: { @@ -5971,7 +6360,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(517u); +x_2 = lean_unsigned_to_nat(547u); x_3 = lean_unsigned_to_nat(17u); x_4 = l_Lean_Expr_constName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -6051,7 +6440,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(525u); +x_2 = lean_unsigned_to_nat(555u); x_3 = lean_unsigned_to_nat(18u); x_4 = l_Lean_Expr_constName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -6100,7 +6489,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(529u); +x_2 = lean_unsigned_to_nat(559u); x_3 = lean_unsigned_to_nat(16u); x_4 = l_Lean_Expr_bvarIdx_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -6149,7 +6538,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(533u); +x_2 = lean_unsigned_to_nat(563u); x_3 = lean_unsigned_to_nat(14u); x_4 = l_Lean_Expr_fvarId_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -6198,7 +6587,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(537u); +x_2 = lean_unsigned_to_nat(567u); x_3 = lean_unsigned_to_nat(14u); x_4 = l_Lean_Expr_mvarId_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -6247,7 +6636,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(542u); +x_2 = lean_unsigned_to_nat(572u); x_3 = lean_unsigned_to_nat(21u); x_4 = l_Lean_Expr_bindingName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -6297,7 +6686,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(547u); +x_2 = lean_unsigned_to_nat(577u); x_3 = lean_unsigned_to_nat(21u); x_4 = l_Lean_Expr_bindingName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -6347,7 +6736,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(552u); +x_2 = lean_unsigned_to_nat(582u); x_3 = lean_unsigned_to_nat(21u); x_4 = l_Lean_Expr_bindingName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -6397,7 +6786,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(557u); +x_2 = lean_unsigned_to_nat(587u); x_3 = lean_unsigned_to_nat(21u); x_4 = l_Lean_Expr_bindingName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -6459,7 +6848,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(561u); +x_2 = lean_unsigned_to_nat(591u); x_3 = lean_unsigned_to_nat(20u); x_4 = l_Lean_Expr_letName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8088,7 +8477,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(831u); +x_2 = lean_unsigned_to_nat(861u); x_3 = lean_unsigned_to_nat(18u); x_4 = l_Lean_Expr_appFn_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8130,7 +8519,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(840u); +x_2 = lean_unsigned_to_nat(870u); x_3 = lean_unsigned_to_nat(18u); x_4 = l_Lean_Expr_constName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8179,7 +8568,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(849u); +x_2 = lean_unsigned_to_nat(879u); x_3 = lean_unsigned_to_nat(14u); x_4 = l_Lean_Expr_updateSort_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8236,7 +8625,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(866u); +x_2 = lean_unsigned_to_nat(896u); x_3 = lean_unsigned_to_nat(17u); x_4 = l_Lean_Expr_updateMData_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8277,7 +8666,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(871u); +x_2 = lean_unsigned_to_nat(901u); x_3 = lean_unsigned_to_nat(18u); x_4 = l_Lean_Expr_updateProj_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8328,7 +8717,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(880u); +x_2 = lean_unsigned_to_nat(910u); x_3 = lean_unsigned_to_nat(21u); x_4 = l_Lean_Expr_updateForall_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8372,7 +8761,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(885u); +x_2 = lean_unsigned_to_nat(915u); x_3 = lean_unsigned_to_nat(21u); x_4 = l_Lean_Expr_updateForall_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8426,7 +8815,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(894u); +x_2 = lean_unsigned_to_nat(924u); x_3 = lean_unsigned_to_nat(17u); x_4 = l_Lean_Expr_updateLambda_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8470,7 +8859,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(899u); +x_2 = lean_unsigned_to_nat(929u); x_3 = lean_unsigned_to_nat(17u); x_4 = l_Lean_Expr_updateLambda_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -8514,7 +8903,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Lean_Expr_1__Expr_mkDataCore___closed__1; -x_2 = lean_unsigned_to_nat(908u); +x_2 = lean_unsigned_to_nat(938u); x_3 = lean_unsigned_to_nat(20u); x_4 = l_Lean_Expr_letName_x21___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); @@ -10343,7 +10732,7 @@ x_6 = l_Lean_mkMData(x_5, x_2); return x_6; } } -lean_object* l_Lean_isAnnotation_x3f(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_annotation_x3f(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 10) @@ -10391,11 +10780,11 @@ return x_14; } } } -lean_object* l_Lean_isAnnotation_x3f___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_annotation_x3f___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_isAnnotation_x3f(x_1, x_2); +x_3 = l_Lean_annotation_x3f(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; @@ -10468,6 +10857,30 @@ l_Lean_Expr_Inhabited___closed__1 = _init_l_Lean_Expr_Inhabited___closed__1(); lean_mark_persistent(l_Lean_Expr_Inhabited___closed__1); l_Lean_Expr_Inhabited = _init_l_Lean_Expr_Inhabited(); lean_mark_persistent(l_Lean_Expr_Inhabited); +l_Lean_Expr_ctorName___closed__1 = _init_l_Lean_Expr_ctorName___closed__1(); +lean_mark_persistent(l_Lean_Expr_ctorName___closed__1); +l_Lean_Expr_ctorName___closed__2 = _init_l_Lean_Expr_ctorName___closed__2(); +lean_mark_persistent(l_Lean_Expr_ctorName___closed__2); +l_Lean_Expr_ctorName___closed__3 = _init_l_Lean_Expr_ctorName___closed__3(); +lean_mark_persistent(l_Lean_Expr_ctorName___closed__3); +l_Lean_Expr_ctorName___closed__4 = _init_l_Lean_Expr_ctorName___closed__4(); +lean_mark_persistent(l_Lean_Expr_ctorName___closed__4); +l_Lean_Expr_ctorName___closed__5 = _init_l_Lean_Expr_ctorName___closed__5(); +lean_mark_persistent(l_Lean_Expr_ctorName___closed__5); +l_Lean_Expr_ctorName___closed__6 = _init_l_Lean_Expr_ctorName___closed__6(); +lean_mark_persistent(l_Lean_Expr_ctorName___closed__6); +l_Lean_Expr_ctorName___closed__7 = _init_l_Lean_Expr_ctorName___closed__7(); +lean_mark_persistent(l_Lean_Expr_ctorName___closed__7); +l_Lean_Expr_ctorName___closed__8 = _init_l_Lean_Expr_ctorName___closed__8(); +lean_mark_persistent(l_Lean_Expr_ctorName___closed__8); +l_Lean_Expr_ctorName___closed__9 = _init_l_Lean_Expr_ctorName___closed__9(); +lean_mark_persistent(l_Lean_Expr_ctorName___closed__9); +l_Lean_Expr_ctorName___closed__10 = _init_l_Lean_Expr_ctorName___closed__10(); +lean_mark_persistent(l_Lean_Expr_ctorName___closed__10); +l_Lean_Expr_ctorName___closed__11 = _init_l_Lean_Expr_ctorName___closed__11(); +lean_mark_persistent(l_Lean_Expr_ctorName___closed__11); +l_Lean_Expr_ctorName___closed__12 = _init_l_Lean_Expr_ctorName___closed__12(); +lean_mark_persistent(l_Lean_Expr_ctorName___closed__12); l_Lean_Expr_Hashable___closed__1 = _init_l_Lean_Expr_Hashable___closed__1(); lean_mark_persistent(l_Lean_Expr_Hashable___closed__1); l_Lean_Expr_Hashable = _init_l_Lean_Expr_Hashable(); @@ -10484,6 +10897,14 @@ l_Lean_Literal_type___closed__5 = _init_l_Lean_Literal_type___closed__5(); lean_mark_persistent(l_Lean_Literal_type___closed__5); l_Lean_Literal_type___closed__6 = _init_l_Lean_Literal_type___closed__6(); lean_mark_persistent(l_Lean_Literal_type___closed__6); +l_Lean_mkThunkType___closed__1 = _init_l_Lean_mkThunkType___closed__1(); +lean_mark_persistent(l_Lean_mkThunkType___closed__1); +l_Lean_mkThunkType___closed__2 = _init_l_Lean_mkThunkType___closed__2(); +lean_mark_persistent(l_Lean_mkThunkType___closed__2); +l_Lean_mkThunkType___closed__3 = _init_l_Lean_mkThunkType___closed__3(); +lean_mark_persistent(l_Lean_mkThunkType___closed__3); +l_Lean_mkThunk___closed__1 = _init_l_Lean_mkThunk___closed__1(); +lean_mark_persistent(l_Lean_mkThunk___closed__1); l_Lean_Expr_HasBeq___closed__1 = _init_l_Lean_Expr_HasBeq___closed__1(); lean_mark_persistent(l_Lean_Expr_HasBeq___closed__1); l_Lean_Expr_HasBeq = _init_l_Lean_Expr_HasBeq(); @@ -10498,6 +10919,14 @@ l_Lean_Expr_appFn_x21___closed__2 = _init_l_Lean_Expr_appFn_x21___closed__2(); lean_mark_persistent(l_Lean_Expr_appFn_x21___closed__2); l_Lean_Expr_appArg_x21___closed__1 = _init_l_Lean_Expr_appArg_x21___closed__1(); lean_mark_persistent(l_Lean_Expr_appArg_x21___closed__1); +l_Lean_Expr_isCharLit___closed__1 = _init_l_Lean_Expr_isCharLit___closed__1(); +lean_mark_persistent(l_Lean_Expr_isCharLit___closed__1); +l_Lean_Expr_isCharLit___closed__2 = _init_l_Lean_Expr_isCharLit___closed__2(); +lean_mark_persistent(l_Lean_Expr_isCharLit___closed__2); +l_Lean_Expr_isCharLit___closed__3 = _init_l_Lean_Expr_isCharLit___closed__3(); +lean_mark_persistent(l_Lean_Expr_isCharLit___closed__3); +l_Lean_Expr_isCharLit___closed__4 = _init_l_Lean_Expr_isCharLit___closed__4(); +lean_mark_persistent(l_Lean_Expr_isCharLit___closed__4); l_Lean_Expr_constName_x21___closed__1 = _init_l_Lean_Expr_constName_x21___closed__1(); lean_mark_persistent(l_Lean_Expr_constName_x21___closed__1); l_Lean_Expr_constName_x21___closed__2 = _init_l_Lean_Expr_constName_x21___closed__2(); diff --git a/stage0/stdlib/Lean/KeyedDeclsAttribute.c b/stage0/stdlib/Lean/KeyedDeclsAttribute.c index 154cc72326..2589fc2c19 100644 --- a/stage0/stdlib/Lean/KeyedDeclsAttribute.c +++ b/stage0/stdlib/Lean/KeyedDeclsAttribute.c @@ -17,7 +17,6 @@ lean_object* l_List_reverse___rarg(lean_object*); extern lean_object* l_Lean_Name_toString___closed__1; lean_object* l_Lean_KeyedDeclsAttribute_init___rarg___lambda__2___boxed(lean_object*); lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_KeyedDeclsAttribute_Table_insert___spec__23___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_unitToExpr___lambda__1___closed__2; lean_object* l_Std_PersistentHashMap_insert___at_Lean_KeyedDeclsAttribute_Table_insert___spec__10___rarg(lean_object*, lean_object*, lean_object*); size_t l_USize_add(size_t, size_t); lean_object* l_Lean_KeyedDeclsAttribute_KeyedDeclsAttribute_inhabited___closed__2; @@ -25,6 +24,7 @@ lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__3; lean_object* l_Array_iterateMAux___main___at___private_Lean_KeyedDeclsAttribute_2__addImported___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_HashMapImp_find_x3f___at_Lean_KeyedDeclsAttribute_Table_insert___spec__5___rarg(lean_object*, lean_object*); lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin(lean_object*); +extern lean_object* l_Lean_mkThunkType___closed__2; lean_object* l_Std_AssocList_replace___main___at_Lean_KeyedDeclsAttribute_Table_insert___spec__30(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l_Std_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_KeyedDeclsAttribute_Table_insert___spec__23(lean_object*); @@ -3480,7 +3480,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_unitToExpr___lambda__1___closed__2; +x_2 = l_Lean_mkThunkType___closed__2; x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } diff --git a/stage0/stdlib/Lean/Meta/EqnCompiler.c b/stage0/stdlib/Lean/Meta/EqnCompiler.c index 45b53b5091..9e89a2c41e 100644 --- a/stage0/stdlib/Lean/Meta/EqnCompiler.c +++ b/stage0/stdlib/Lean/Meta/EqnCompiler.c @@ -14,13 +14,13 @@ extern "C" { #endif lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2; +extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__2; lean_object* l___private_Lean_Meta_EqnCompiler_1__regTraceClasses(lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_1__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__2; x_3 = l_Lean_registerTraceClass(x_2, x_1); return x_3; } diff --git a/stage0/stdlib/Lean/Meta/EqnCompiler/DepElim.c b/stage0/stdlib/Lean/Meta/EqnCompiler/DepElim.c index 09acd4774c..7511f075b1 100644 --- a/stage0/stdlib/Lean/Meta/EqnCompiler/DepElim.c +++ b/stage0/stdlib/Lean/Meta/EqnCompiler/DepElim.c @@ -13,372 +13,361 @@ #ifdef __cplusplus extern "C" { #endif -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__2; lean_object* l_List_reverse___rarg(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__3(lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___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*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_17__isArrayLitTransition(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__1; extern lean_object* l_Lean_mkHole___closed__3; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_replaceFVarId___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux(lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__2___closed__2; +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__collectArraySizes___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__11; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__3; -extern lean_object* l_Lean_Closure_mkNewLevelParam___closed__2; +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toIPattern___main___closed__1; -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_12__isNextVar(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___boxed(lean_object*); +lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_11__isNextVar(lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); -lean_object* l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__2(lean_object*, lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_ExprDefEq_8__checkTypesAndAssign___closed__7; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__isFirstPatternVar___boxed(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__1; lean_object* lean_mk_empty_array_with_capacity(lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkSort(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__1; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main(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_DepElim_Pattern_toMessageData___boxed(lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__6(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Problem_toMessageData___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_applyFVarSubst(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main(lean_object*, 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_EqnCompiler_DepElim_24__processConstructor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__2; lean_object* l_Lean_Meta_DepElim_Example_toMessageData___main___closed__2; -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__2(lean_object*); lean_object* l___private_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_counterExampleToMessageData(lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___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* l_Lean_Meta_DepElim_Pattern_instantiateMVars___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__3; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_toMessageData___main___closed__3; -lean_object* l_List_foldlM___main___at_Lean_Meta_DepElim_getUnusedLevelParam___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__9(lean_object*); extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* l_Nat_foldAux___main___at_Lean_Meta_DepElim_mkElim___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Std_HashSetImp_contains___at_Lean_Meta_DepElim_mkElim___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__4; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__1; extern lean_object* l_Lean_Meta_withIncRecDepth___rarg___closed__3; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__3; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___boxed(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___boxed(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__1; +lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___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* l___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__5; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__1; +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1___closed__1; uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___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* l_Lean_Meta_mkForall(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__6; lean_object* l_List_foldl___main___at_Lean_Meta_DepElim_Pattern_toMessageData___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__4; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__2; -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__6___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__6(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_11__isDone___boxed(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__2; lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1___closed__4; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__4; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues___spec__1(lean_object*, lean_object*); +lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__isVariableTransition___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_copy(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_Pattern_ref___rarg(lean_object*); -lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__2; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__4; lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__8; -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkThunkType(lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toIPattern___main(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1___closed__2; -lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__3; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__3; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_applyFVarSubst___main___spec__2(lean_object*, lean_object*); lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux(lean_object*, 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_EqnCompiler_DepElim_29__processComplete___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__1; +lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_applyFVarSubst___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__mkElimSort(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__5; lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__3; -lean_object* l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__1(lean_object*, lean_object*); +uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_12__hasAsPattern___spec__1(uint8_t, lean_object*); lean_object* l_Lean_mkMVar(lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt___spec__1___boxed(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_EqnCompiler_DepElim_33__processArrayLit___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__isFirstPatternCtor___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1___closed__6; lean_object* l_Lean_Meta_withExistingLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__8; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___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_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__5(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__1; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__6; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_12__hasAsPattern___boxed(lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main(uint8_t, lean_object*); lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_4__copyMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__2; -lean_object* l_Std_HashSetImp_moveEntries___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_examplesToMessageData(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__1; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__4(lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___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* l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__1; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___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_MessageData_arrayExpr_toMessageData___main(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_1__convertMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__4; +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___spec__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__1; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toMessageData___main___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___closed__2; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__1; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_toExpr___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__3; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_unitToExpr___lambda__1___closed__5; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__3; +lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__expandAlt___spec__1___boxed(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_EqnCompiler_DepElim_27__expandAlt___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__2; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__3; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__7; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_Meta_getEnv___boxed(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_23__isFirstPatternCtor___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___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_EqnCompiler_DepElim_32__processValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_16__isValueTransition___boxed(lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_mkElim___spec__1(lean_object*); lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_toExpr___main___spec__1(uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__4; lean_object* l_Lean_Meta_DepElim_withGoalOf___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__mkThunk(lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___boxed(lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofList(lean_object*); lean_object* l_Lean_Meta_MVarRenaming_apply(lean_object*, lean_object*); lean_object* l_Std_HashSetImp_contains___at_Lean_Meta_DepElim_mkElim___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___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_EqnCompiler_DepElim_6__localDeclsToMVarsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__2; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__9; -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__6; extern lean_object* l_Lean_Expr_getAppArgs___closed__1; -uint8_t l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__2(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2(lean_object*, lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition___spec__1(uint8_t, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_unitToExpr___lambda__1___closed__3; +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isArrayLitTransition___spec__1(lean_object*, lean_object*); +lean_object* l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__2___boxed(lean_object*, lean_object*); uint8_t l_Array_contains___at_Lean_Meta_CheckAssignment_check___main___spec__2(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__3; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__isDone___boxed(lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__7(lean_object*, lean_object*); +lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isConstructorTransition___spec__1___boxed(lean_object*, lean_object*); uint8_t l_Lean_LocalContext_contains(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_applyFVarSubst___main(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Alt_applyFVarSubst___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_Pattern_ref___rarg___boxed(lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__2(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__2; +lean_object* l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__2(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__2___boxed(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__4; -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__1(lean_object*, lean_object*); -lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_replaceFVarId___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__2; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toExpr(uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_toMessageData___closed__3; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__3; lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_2__convertMVars___closed__1; lean_object* l_Lean_Meta_mkAuxDefinition(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_replaceFVarId___main___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__9; -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toMessageData___main___spec__2(uint8_t, lean_object*); uint8_t l_List_elem___main___at_Lean_Occurrences_contains___spec__1(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__9(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_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__5; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__3; +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_11__isNextVar___boxed(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__1; lean_object* l_Lean_Meta_DepElim_Alt_toMessageData(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__9(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_getAppNumArgsAux___main(lean_object*, lean_object*); uint8_t lean_metavar_ctx_is_expr_assigned(lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__10; lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_7__localDeclsToMVars(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_MVarRenaming_isEmpty(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__2; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Alt_copyCore___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_Inhabited; +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_applyFVarSubst(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__3(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__3; lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_3__copyMVar(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__7; lean_object* l_Lean_CollectLevelParams_State_getUnusedLevelParam(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__2; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___closed__2; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__9(lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__2; lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__3; extern lean_object* l_Lean_Expr_Inhabited___closed__1; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___boxed(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__1; lean_object* l_Lean_Meta_DepElim_Pattern_applyMVarRenaming(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_replaceFVarId___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toExpr___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; lean_object* l_Lean_Meta_DepElim_mkElimTester(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__2; lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__5; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__3(lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_throwOther___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Alt_toMessageData___spec__1(lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_HashSetImp_moveEntries___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__3(lean_object*, lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_30__isFirstPatternVar(lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_instantiateMVars___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_applyFVarSubst___main___spec__2___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__2(lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Alt_toMessageData___spec__2(lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toIPattern___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_getArrayArgType(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__5___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_13__isVariableTransition___boxed(lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__mkElimSort___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_apply(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_Inhabited___boxed(lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_applyFVarSubst___main___boxed(lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_16__isValueTransition(lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1___closed__5; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__3; lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__11; lean_object* l_Lean_Meta_DepElim_Example_applyFVarSubst___main(lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__collectArraySizes___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__7; lean_object* l_Lean_Meta_DepElim_Problem_toMessageData(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__3; extern lean_object* l_Lean_Meta_caseValue___closed__2; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__6(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__6; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Alt_applyFVarSubst___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___spec__1(lean_object*); extern lean_object* l_Lean_arrayHasFormat___rarg___closed__1; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); -extern lean_object* l_Lean_unitToExpr___closed__1; -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition(lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___closed__1; -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__6; -lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___closed__3; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition___boxed(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__4; lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_2__convertMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_toMessageData___lambda__1___closed__3; lean_object* l_Lean_Meta_DepElim_Problem_Inhabited___closed__1; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_applyFVarSubst(lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2; -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__2___boxed(lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__2(lean_object*); extern lean_object* l_Lean_MessageData_coeOfArrayExpr___closed__2; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__4___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_tracer___closed__3; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__5; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_17__isArrayLitTransition___boxed(lean_object*); lean_object* l_Lean_Meta_mkArrayLit(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__2___closed__3; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__1; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__4(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__7; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3; lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_1__convertMVar___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___boxed(lean_object*, lean_object*); -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition(lean_object*); lean_object* l_Lean_Meta_DepElim_Example_replaceFVarId___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_toMessageData___main___closed__1; +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toExpr___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___closed__2; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__6; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toIPattern___main___boxed(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__2; +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__3___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__5; lean_object* l_Lean_Meta_addContext(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_assignGoalOf___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__5; lean_object* l_Lean_Meta_DepElim_mkElim___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___spec__1(lean_object*, lean_object*); uint8_t l_Std_AssocList_isEmpty___rarg(lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Exception_toTraceMessageData___closed__4; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_varsToUnderscore(lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__12; lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Problem_toMessageData___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__1; lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__5; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); extern lean_object* l_List_map___main___at_Lean_Meta_DiscrTree_Trie_format___main___spec__2___rarg___closed__2; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__6; lean_object* l_Lean_LocalDecl_toExpr(lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___boxed(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___spec__1(lean_object*); -lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__1; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__2; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___main___rarg(lean_object*); -lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__1___boxed(lean_object*, lean_object*); uint8_t l_Lean_Expr_isForall(lean_object*); uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___spec__1(lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Meta_DepElim_Problem_Inhabited; +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_12__hasAsPattern(lean_object*); +lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__1; lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__3; lean_object* l_Lean_mkFVar(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__3; size_t lean_usize_of_nat(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__1; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__5; lean_object* l_Lean_MessageData_joinSep___main(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__2; -lean_object* l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__2___boxed(lean_object*, lean_object*); +uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__isVariableTransition___spec__1(uint8_t, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__expandAlt(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_mkHashSet___at_Lean_Meta_DepElim_mkElim___spec__2(lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_applyFVarSubst___main___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_find___main___at_Lean_Meta_MVarRenaming_find_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__8; lean_object* l_Lean_LocalDecl_fvarId(lean_object*); +lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_12__hasAsPattern___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__3; uint8_t l_Std_AssocList_any___main___rarg(lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_14__isConstructorTransition(lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_copyCore(lean_object*, lean_object*, lean_object*); extern lean_object* l_Std_HashSet_Inhabited___closed__1; lean_object* l_List_join___main___rarg(lean_object*); lean_object* l_Lean_Meta_forallMetaTelescopeReducing(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__3(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_CaseArraySizesSubgoal_inhabited; lean_object* l_Lean_Meta_DepElim_Example_applyFVarSubst___boxed(lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_counterExamplesToMessageData(lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__4; lean_object* l_Lean_Meta_FVarSubst_get(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__4(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__6; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4; lean_object* l_Lean_Meta_Cases_cases(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_replaceFVarId(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_MessageData_coeOfListExpr___spec__1(lean_object*); @@ -386,190 +375,192 @@ lean_object* l_Lean_Meta_MVarRenaming_find_x21(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_6__localDeclsToMVarsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_withGoalOf___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_counterExamplesToMessageData___spec__1(lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__6___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isConstructorTransition___spec__1(uint8_t, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData(uint8_t, lean_object*); -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_31__isFirstPatternVar(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__7; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__1; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__3(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_instantiateMVars(lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__1; -lean_object* l_Lean_Meta_DepElim_Pattern_ref(uint8_t); +lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__2(lean_object*, lean_object*); -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_toMessageData___closed__4; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__3; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_applyFVarSubst___main___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_instantiateMVars___main(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshExprMVar(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_toMessageData___closed__2; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__1; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__10; +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__collectValues___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_2__convertMVars(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_FVarSubst_insert(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__4; +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__1; +lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isValueTransition___spec__1(lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__10(lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__11(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_admit(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3___boxed(lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_toMessageData___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__3; extern lean_object* l_Lean_Format_paren___closed__2; lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_4__copyMVars(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElimTester___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at_Lean_Meta_DepElim_Example_toMessageData___main___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__2; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__4(lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__1(lean_object*); lean_object* l_Lean_Meta_DepElim_Example_varsToUnderscore___main(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__8(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_14__isConstructorTransition___boxed(lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_examplesToMessageData___spec__1(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_toMessageData___closed__1; uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_1__convertMVar___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__3; uint8_t l_Array_contains___at___private_Lean_Meta_FunInfo_3__collectDepsAux___main___spec__2(lean_object*, lean_object*); -uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___spec__1(uint8_t, lean_object*); -lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_replaceFVarId___main___spec__2___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__1; lean_object* l_Lean_Meta_caseValues(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_mkForall(lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__2; lean_object* l_Lean_Meta_DepElim_Pattern_applyMVarRenaming___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; -lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main(lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__2; -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__4___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at_Lean_Meta_DepElim_Pattern_toMessageData___main___spec__1(uint8_t, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__3; lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__3; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_varsToUnderscore___main___spec__1(lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__3___boxed(lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4___boxed(lean_object*, lean_object*); lean_object* l_Array_toList___rarg(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__2; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__2; lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___spec__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Position_lt___closed__1; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__2; lean_object* lean_mk_array(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_Inhabited(uint8_t); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAlts(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__3; +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_22__isFirstPatternCtor(lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__7(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main___closed__2; lean_object* l_Lean_Meta_DepElim_assignGoalOf(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___closed__1; lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_toExpr___main___spec__2(uint8_t, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__1; lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__1(lean_object*, lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__2___closed__1; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_23__isFirstPatternCtor(lean_object*, lean_object*); -lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___boxed(lean_object*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition(lean_object*); +lean_object* l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_11__isDone(lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__7; lean_object* l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__1(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_toMessageData___main(lean_object*); -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition(lean_object*); lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; extern lean_object* l_Lean_Format_paren___closed__3; lean_object* l_Lean_Meta_setInlineAttribute(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_toExpr___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_isClassQuick___main___closed__1; -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_withGoalOf(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___boxed(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___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_EqnCompiler_DepElim_24__throwInductiveTypeExpected(lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__9; lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_10__isDone(lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__1; lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Nat_Inhabited; extern lean_object* l_Lean_Meta_CaseValueSubgoals_inhabited; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_32__collectArraySizes___boxed(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__1; uint8_t l_List_isEmpty___rarg(lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_mkElim___lambda__1___closed__5; lean_object* l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___boxed(lean_object*); +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isArrayLitTransition___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Alt_Inhabited___closed__1; lean_object* l_Lean_Meta_DepElim_Pattern_toIPattern(lean_object*, lean_object*); -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__2; lean_object* l_Lean_Meta_DepElim_mkElimTester___closed__2; -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__10(lean_object*, lean_object*); +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_13__isVariableTransition(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__collectValues(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__8; lean_object* l_Lean_Meta_DepElim_mkElimTester___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_12__isNextVar___boxed(lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___spec__1___boxed(lean_object*, lean_object*); lean_object* l_beqOfEq___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__4; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Nat_foldAux___main___at_Lean_Meta_DepElim_mkElim___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__2; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_Basic_12__regTraceClasses___closed__2; -uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___spec__1(uint8_t, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7___boxed(lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__7___boxed(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Alt_copyCore___spec__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__1; +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_32__collectArraySizes(lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__2; lean_object* l_Lean_Meta_DepElim_mkElimTester___closed__1; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_replaceFVarId___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toMessageData___main___closed__1; +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__3___boxed(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Example_toMessageData___main___spec__2(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); extern lean_object* l_Lean_MessageData_Inhabited___closed__1; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_caseArraySizes(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__2___boxed(lean_object*, lean_object*); lean_object* l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__1___boxed(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_CollectLevelParams_main___main(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_37__regTraceClasses(lean_object*); -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__4(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__3; -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__5___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__4___boxed(lean_object*, lean_object*); +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_toExpr___main(uint8_t, lean_object*, lean_object*, lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___spec__1(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_31__isFirstPatternVar___boxed(lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAlts___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__5___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isValueTransition___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_generalizeTelescope___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Example_toMessageData(lean_object*); -lean_object* l_Lean_Meta_DepElim_Pattern_ref___boxed(lean_object*); +uint8_t l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__2(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__9; extern lean_object* l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected(lean_object*); -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4(lean_object*, lean_object*); lean_object* l_Lean_Meta_DepElim_Pattern_Inhabited(uint8_t x_1) { _start: { -lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = lean_box(0); -x_3 = l_Lean_Expr_Inhabited___closed__1; -x_4 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_4, 0, x_2); -lean_ctor_set(x_4, 1, x_3); -return x_4; +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Expr_Inhabited___closed__1; +x_3 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_3, 0, x_2); +return x_3; } } lean_object* l_Lean_Meta_DepElim_Pattern_Inhabited___boxed(lean_object* x_1) { @@ -582,42 +573,6 @@ x_3 = l_Lean_Meta_DepElim_Pattern_Inhabited(x_2); return x_3; } } -lean_object* l_Lean_Meta_DepElim_Pattern_ref___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -return x_2; -} -} -lean_object* l_Lean_Meta_DepElim_Pattern_ref(uint8_t x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_DepElim_Pattern_ref___rarg___boxed), 1, 0); -return x_2; -} -} -lean_object* l_Lean_Meta_DepElim_Pattern_ref___rarg___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_Meta_DepElim_Pattern_ref___rarg(x_1); -lean_dec(x_1); -return x_2; -} -} -lean_object* l_Lean_Meta_DepElim_Pattern_ref___boxed(lean_object* x_1) { -_start: -{ -uint8_t x_2; lean_object* x_3; -x_2 = lean_unbox(x_1); -lean_dec(x_1); -x_3 = l_Lean_Meta_DepElim_Pattern_ref(x_2); -return x_3; -} -} lean_object* l_List_foldl___main___at_Lean_Meta_DepElim_Pattern_toMessageData___main___spec__1(uint8_t x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -800,7 +755,7 @@ switch (lean_obj_tag(x_2)) { case 0: { 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_3 = lean_ctor_get(x_2, 1); +x_3 = lean_ctor_get(x_2, 0); lean_inc(x_3); lean_dec(x_2); x_4 = lean_alloc_ctor(2, 1, 0); @@ -820,7 +775,7 @@ case 1: if (x_1 == 0) { lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_2, 1); +x_9 = lean_ctor_get(x_2, 0); lean_inc(x_9); lean_dec(x_2); x_10 = l_Lean_mkFVar(x_9); @@ -831,7 +786,7 @@ return x_11; else { lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_2, 1); +x_12 = lean_ctor_get(x_2, 0); lean_inc(x_12); lean_dec(x_2); x_13 = l_Lean_mkMVar(x_12); @@ -843,12 +798,12 @@ return x_14; case 2: { lean_object* x_15; -x_15 = lean_ctor_get(x_2, 4); +x_15 = lean_ctor_get(x_2, 3); lean_inc(x_15); if (lean_obj_tag(x_15) == 0) { lean_object* x_16; lean_object* x_17; -x_16 = lean_ctor_get(x_2, 1); +x_16 = lean_ctor_get(x_2, 0); lean_inc(x_16); lean_dec(x_2); x_17 = lean_alloc_ctor(4, 1, 0); @@ -858,7 +813,7 @@ return x_17; else { lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_18 = lean_ctor_get(x_2, 1); +x_18 = lean_ctor_get(x_2, 0); lean_inc(x_18); lean_dec(x_2); x_19 = lean_alloc_ctor(4, 1, 0); @@ -882,7 +837,7 @@ return x_26; case 3: { 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_2, 1); +x_27 = lean_ctor_get(x_2, 0); lean_inc(x_27); lean_dec(x_2); x_28 = lean_alloc_ctor(2, 1, 0); @@ -900,7 +855,7 @@ return x_32; case 4: { 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; -x_33 = lean_ctor_get(x_2, 2); +x_33 = lean_ctor_get(x_2, 1); lean_inc(x_33); lean_dec(x_2); x_34 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_toMessageData___main___spec__2(x_1, x_33); @@ -920,9 +875,9 @@ return x_40; default: { lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_2, 1); +x_41 = lean_ctor_get(x_2, 0); lean_inc(x_41); -x_42 = lean_ctor_get(x_2, 2); +x_42 = lean_ctor_get(x_2, 1); lean_inc(x_42); lean_dec(x_2); x_43 = l_Lean_Meta_DepElim_Pattern_toMessageData___main(x_1, x_42); @@ -1448,7 +1403,7 @@ lean_dec(x_3); if (x_1 == 0) { lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_2, 1); +x_5 = lean_ctor_get(x_2, 0); lean_inc(x_5); lean_dec(x_2); x_6 = l_Lean_mkFVar(x_5); @@ -1460,7 +1415,7 @@ return x_7; else { lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_2, 1); +x_8 = lean_ctor_get(x_2, 0); lean_inc(x_8); lean_dec(x_2); x_9 = l_Lean_mkMVar(x_8); @@ -1473,13 +1428,13 @@ return x_10; case 2: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_ctor_get(x_2, 1); +x_11 = lean_ctor_get(x_2, 0); lean_inc(x_11); -x_12 = lean_ctor_get(x_2, 2); +x_12 = lean_ctor_get(x_2, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_2, 3); +x_13 = lean_ctor_get(x_2, 2); lean_inc(x_13); -x_14 = lean_ctor_get(x_2, 4); +x_14 = lean_ctor_get(x_2, 3); lean_inc(x_14); lean_dec(x_2); x_15 = l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_toExpr___main___spec__1(x_1, x_14, x_3, x_4); @@ -1555,9 +1510,9 @@ return x_38; case 4: { lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_2, 1); +x_39 = lean_ctor_get(x_2, 0); lean_inc(x_39); -x_40 = lean_ctor_get(x_2, 2); +x_40 = lean_ctor_get(x_2, 1); lean_inc(x_40); lean_dec(x_2); lean_inc(x_3); @@ -1601,7 +1556,7 @@ return x_48; case 5: { lean_object* x_49; -x_49 = lean_ctor_get(x_2, 2); +x_49 = lean_ctor_get(x_2, 1); lean_inc(x_49); lean_dec(x_2); x_2 = x_49; @@ -1611,7 +1566,7 @@ default: { lean_object* x_51; lean_object* x_52; lean_dec(x_3); -x_51 = lean_ctor_get(x_2, 1); +x_51 = lean_ctor_get(x_2, 0); lean_inc(x_51); lean_dec(x_2); x_52 = lean_alloc_ctor(0, 2, 0); @@ -1807,24 +1762,21 @@ x_3 = !lean_is_exclusive(x_2); if (x_3 == 0) { lean_object* x_4; lean_object* x_5; -x_4 = lean_ctor_get(x_2, 1); +x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Meta_FVarSubst_apply(x_1, x_4); -lean_ctor_set(x_2, 1, x_5); +lean_ctor_set(x_2, 0, x_5); return x_2; } else { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_ctor_get(x_2, 0); -x_7 = lean_ctor_get(x_2, 1); -lean_inc(x_7); lean_inc(x_6); lean_dec(x_2); -x_8 = l_Lean_Meta_FVarSubst_apply(x_1, x_7); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_6); -lean_ctor_set(x_9, 1, x_8); -return x_9; +x_7 = l_Lean_Meta_FVarSubst_apply(x_1, x_6); +x_8 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_8, 0, x_7); +return x_8; } } case 1: @@ -1833,133 +1785,121 @@ return x_2; } case 2: { -uint8_t x_10; -x_10 = !lean_is_exclusive(x_2); -if (x_10 == 0) +uint8_t x_9; +x_9 = !lean_is_exclusive(x_2); +if (x_9 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_10 = lean_ctor_get(x_2, 2); x_11 = lean_ctor_get(x_2, 3); -x_12 = lean_ctor_get(x_2, 4); -x_13 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__1(x_1, x_11); -x_14 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__2(x_1, x_12); -lean_ctor_set(x_2, 4, x_14); +x_12 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__1(x_1, x_10); +x_13 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__2(x_1, x_11); lean_ctor_set(x_2, 3, x_13); +lean_ctor_set(x_2, 2, x_12); return x_2; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_15 = lean_ctor_get(x_2, 0); -x_16 = lean_ctor_get(x_2, 1); -x_17 = lean_ctor_get(x_2, 2); -x_18 = lean_ctor_get(x_2, 3); -x_19 = lean_ctor_get(x_2, 4); -lean_inc(x_19); -lean_inc(x_18); +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_14 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_2, 1); +x_16 = lean_ctor_get(x_2, 2); +x_17 = lean_ctor_get(x_2, 3); lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); +lean_inc(x_14); lean_dec(x_2); -x_20 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__1(x_1, x_18); -x_21 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__2(x_1, x_19); -x_22 = lean_alloc_ctor(2, 5, 0); -lean_ctor_set(x_22, 0, x_15); -lean_ctor_set(x_22, 1, x_16); -lean_ctor_set(x_22, 2, x_17); -lean_ctor_set(x_22, 3, x_20); -lean_ctor_set(x_22, 4, x_21); -return x_22; +x_18 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__1(x_1, x_16); +x_19 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__2(x_1, x_17); +x_20 = lean_alloc_ctor(2, 4, 0); +lean_ctor_set(x_20, 0, x_14); +lean_ctor_set(x_20, 1, x_15); +lean_ctor_set(x_20, 2, x_18); +lean_ctor_set(x_20, 3, x_19); +return x_20; } } case 3: { -uint8_t x_23; -x_23 = !lean_is_exclusive(x_2); -if (x_23 == 0) +uint8_t x_21; +x_21 = !lean_is_exclusive(x_2); +if (x_21 == 0) { -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_2, 1); -x_25 = l_Lean_Meta_FVarSubst_apply(x_1, x_24); -lean_ctor_set(x_2, 1, x_25); +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_2, 0); +x_23 = l_Lean_Meta_FVarSubst_apply(x_1, x_22); +lean_ctor_set(x_2, 0, x_23); return x_2; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_26 = lean_ctor_get(x_2, 0); -x_27 = lean_ctor_get(x_2, 1); -lean_inc(x_27); -lean_inc(x_26); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_2, 0); +lean_inc(x_24); lean_dec(x_2); -x_28 = l_Lean_Meta_FVarSubst_apply(x_1, x_27); -x_29 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_29, 0, x_26); -lean_ctor_set(x_29, 1, x_28); -return x_29; +x_25 = l_Lean_Meta_FVarSubst_apply(x_1, x_24); +x_26 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_26, 0, x_25); +return x_26; } } case 4: { -uint8_t x_30; -x_30 = !lean_is_exclusive(x_2); -if (x_30 == 0) +uint8_t x_27; +x_27 = !lean_is_exclusive(x_2); +if (x_27 == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_31 = lean_ctor_get(x_2, 1); -x_32 = lean_ctor_get(x_2, 2); -x_33 = l_Lean_Meta_FVarSubst_apply(x_1, x_31); -x_34 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__3(x_1, x_32); -lean_ctor_set(x_2, 2, x_34); -lean_ctor_set(x_2, 1, x_33); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_2, 0); +x_29 = lean_ctor_get(x_2, 1); +x_30 = l_Lean_Meta_FVarSubst_apply(x_1, x_28); +x_31 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__3(x_1, x_29); +lean_ctor_set(x_2, 1, x_31); +lean_ctor_set(x_2, 0, x_30); return x_2; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_35 = lean_ctor_get(x_2, 0); -x_36 = lean_ctor_get(x_2, 1); -x_37 = lean_ctor_get(x_2, 2); -lean_inc(x_37); -lean_inc(x_36); -lean_inc(x_35); +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_2, 0); +x_33 = lean_ctor_get(x_2, 1); +lean_inc(x_33); +lean_inc(x_32); lean_dec(x_2); -x_38 = l_Lean_Meta_FVarSubst_apply(x_1, x_36); -x_39 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__3(x_1, x_37); -x_40 = lean_alloc_ctor(4, 3, 0); -lean_ctor_set(x_40, 0, x_35); -lean_ctor_set(x_40, 1, x_38); -lean_ctor_set(x_40, 2, x_39); -return x_40; +x_34 = l_Lean_Meta_FVarSubst_apply(x_1, x_32); +x_35 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyFVarSubst___main___spec__3(x_1, x_33); +x_36 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +return x_36; } } default: { -uint8_t x_41; -x_41 = !lean_is_exclusive(x_2); -if (x_41 == 0) +uint8_t x_37; +x_37 = !lean_is_exclusive(x_2); +if (x_37 == 0) { -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_2, 2); -x_43 = l_Lean_Meta_DepElim_Pattern_applyFVarSubst___main(x_1, x_42); -lean_ctor_set(x_2, 2, x_43); +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_2, 1); +x_39 = l_Lean_Meta_DepElim_Pattern_applyFVarSubst___main(x_1, x_38); +lean_ctor_set(x_2, 1, x_39); return x_2; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_44 = lean_ctor_get(x_2, 0); -x_45 = lean_ctor_get(x_2, 1); -x_46 = lean_ctor_get(x_2, 2); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_ctor_get(x_2, 0); +x_41 = lean_ctor_get(x_2, 1); +lean_inc(x_41); +lean_inc(x_40); lean_dec(x_2); -x_47 = l_Lean_Meta_DepElim_Pattern_applyFVarSubst___main(x_1, x_46); -x_48 = lean_alloc_ctor(5, 3, 0); -lean_ctor_set(x_48, 0, x_44); -lean_ctor_set(x_48, 1, x_45); -lean_ctor_set(x_48, 2, x_47); -return x_48; +x_42 = l_Lean_Meta_DepElim_Pattern_applyFVarSubst___main(x_1, x_41); +x_43 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_43, 0, x_40); +lean_ctor_set(x_43, 1, x_42); +return x_43; } } } @@ -2221,14 +2161,14 @@ x_4 = !lean_is_exclusive(x_1); if (x_4 == 0) { lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_ctor_get(x_1, 1); +x_5 = lean_ctor_get(x_1, 0); x_6 = l_Lean_Meta_instantiateMVars(x_5, x_2, x_3); x_7 = !lean_is_exclusive(x_6); if (x_7 == 0) { lean_object* x_8; x_8 = lean_ctor_get(x_6, 0); -lean_ctor_set(x_1, 1, x_8); +lean_ctor_set(x_1, 0, x_8); lean_ctor_set(x_6, 0, x_1); return x_6; } @@ -2240,7 +2180,7 @@ x_10 = lean_ctor_get(x_6, 1); lean_inc(x_10); lean_inc(x_9); lean_dec(x_6); -lean_ctor_set(x_1, 1, x_9); +lean_ctor_set(x_1, 0, x_9); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_1); lean_ctor_set(x_11, 1, x_10); @@ -2249,476 +2189,452 @@ return x_11; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; x_12 = lean_ctor_get(x_1, 0); -x_13 = lean_ctor_get(x_1, 1); -lean_inc(x_13); lean_inc(x_12); lean_dec(x_1); -x_14 = l_Lean_Meta_instantiateMVars(x_13, x_2, x_3); -x_15 = lean_ctor_get(x_14, 0); +x_13 = l_Lean_Meta_instantiateMVars(x_12, x_2, x_3); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -if (lean_is_exclusive(x_14)) { - lean_ctor_release(x_14, 0); - lean_ctor_release(x_14, 1); - x_17 = x_14; +if (lean_is_exclusive(x_13)) { + lean_ctor_release(x_13, 0); + lean_ctor_release(x_13, 1); + x_16 = x_13; } else { - lean_dec_ref(x_14); - x_17 = lean_box(0); + lean_dec_ref(x_13); + x_16 = lean_box(0); } -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_12); +x_17 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_17, 0, x_14); +if (lean_is_scalar(x_16)) { + x_18 = lean_alloc_ctor(0, 2, 0); +} else { + x_18 = x_16; +} +lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_15); -if (lean_is_scalar(x_17)) { - x_19 = lean_alloc_ctor(0, 2, 0); -} else { - x_19 = x_17; -} -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_16); -return x_19; +return x_18; } } case 1: { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_1, 0); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_1, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_3, 1); lean_inc(x_20); -x_21 = lean_ctor_get(x_1, 1); -lean_inc(x_21); -x_22 = lean_ctor_get(x_3, 1); -lean_inc(x_22); -x_23 = lean_metavar_ctx_get_expr_assignment(x_22, x_21); -if (lean_obj_tag(x_23) == 0) +x_21 = lean_metavar_ctx_get_expr_assignment(x_20, x_19); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_24; -lean_dec(x_20); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_1); -lean_ctor_set(x_24, 1, x_3); -return x_24; +lean_object* x_22; +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_1); +lean_ctor_set(x_22, 1, x_3); +return x_22; } else { -uint8_t x_25; -x_25 = !lean_is_exclusive(x_1); -if (x_25 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_1); +if (x_23 == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_26 = lean_ctor_get(x_1, 1); +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_1, 0); +lean_dec(x_24); +x_25 = lean_ctor_get(x_21, 0); +lean_inc(x_25); +lean_dec(x_21); +x_26 = l_Lean_Meta_instantiateMVars(x_25, x_2, x_3); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_26, 0); +lean_ctor_set_tag(x_1, 0); +lean_ctor_set(x_1, 0, x_28); +lean_ctor_set(x_26, 0, x_1); +return x_26; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_26, 0); +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +lean_inc(x_29); lean_dec(x_26); -x_27 = lean_ctor_get(x_1, 0); -lean_dec(x_27); -x_28 = lean_ctor_get(x_23, 0); -lean_inc(x_28); -lean_dec(x_23); -x_29 = l_Lean_Meta_instantiateMVars(x_28, x_2, x_3); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) -{ -lean_object* x_31; -x_31 = lean_ctor_get(x_29, 0); lean_ctor_set_tag(x_1, 0); -lean_ctor_set(x_1, 1, x_31); -lean_ctor_set(x_29, 0, x_1); -return x_29; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_29, 0); -x_33 = lean_ctor_get(x_29, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_29); -lean_ctor_set_tag(x_1, 0); -lean_ctor_set(x_1, 1, x_32); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_1); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_ctor_set(x_1, 0, x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_1); +lean_ctor_set(x_31, 1, x_30); +return x_31; } } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +lean_object* x_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_dec(x_1); -x_35 = lean_ctor_get(x_23, 0); +x_32 = lean_ctor_get(x_21, 0); +lean_inc(x_32); +lean_dec(x_21); +x_33 = l_Lean_Meta_instantiateMVars(x_32, x_2, x_3); +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); -lean_dec(x_23); -x_36 = l_Lean_Meta_instantiateMVars(x_35, x_2, x_3); -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; +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_36 = x_33; } else { - lean_dec_ref(x_36); - x_39 = lean_box(0); + lean_dec_ref(x_33); + x_36 = lean_box(0); } -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_20); -lean_ctor_set(x_40, 1, x_37); -if (lean_is_scalar(x_39)) { - x_41 = lean_alloc_ctor(0, 2, 0); +x_37 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_37, 0, x_34); +if (lean_is_scalar(x_36)) { + x_38 = lean_alloc_ctor(0, 2, 0); } else { - x_41 = x_39; + x_38 = x_36; } -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_38); -return x_41; +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_35); +return x_38; } } } case 2: { -uint8_t x_42; -x_42 = !lean_is_exclusive(x_1); -if (x_42 == 0) +uint8_t x_39; +x_39 = !lean_is_exclusive(x_1); +if (x_39 == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_43 = lean_ctor_get(x_1, 3); -x_44 = lean_ctor_get(x_1, 4); -x_45 = l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__1(x_43, x_2, x_3); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -x_48 = l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__2(x_44, x_2, x_47); -x_49 = !lean_is_exclusive(x_48); -if (x_49 == 0) +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_40 = lean_ctor_get(x_1, 2); +x_41 = lean_ctor_get(x_1, 3); +x_42 = l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__1(x_40, x_2, x_3); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_42, 1); +lean_inc(x_44); +lean_dec(x_42); +x_45 = l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__2(x_41, x_2, x_44); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) { -lean_object* x_50; -x_50 = lean_ctor_get(x_48, 0); -lean_ctor_set(x_1, 4, x_50); -lean_ctor_set(x_1, 3, x_46); -lean_ctor_set(x_48, 0, x_1); -return x_48; +lean_object* x_47; +x_47 = lean_ctor_get(x_45, 0); +lean_ctor_set(x_1, 3, x_47); +lean_ctor_set(x_1, 2, x_43); +lean_ctor_set(x_45, 0, x_1); +return x_45; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_48, 0); -x_52 = lean_ctor_get(x_48, 1); +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_45, 0); +x_49 = lean_ctor_get(x_45, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_45); +lean_ctor_set(x_1, 3, x_48); +lean_ctor_set(x_1, 2, x_43); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_1); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_51 = lean_ctor_get(x_1, 0); +x_52 = lean_ctor_get(x_1, 1); +x_53 = lean_ctor_get(x_1, 2); +x_54 = lean_ctor_get(x_1, 3); +lean_inc(x_54); +lean_inc(x_53); lean_inc(x_52); lean_inc(x_51); -lean_dec(x_48); -lean_ctor_set(x_1, 4, x_51); -lean_ctor_set(x_1, 3, x_46); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_1); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_54 = lean_ctor_get(x_1, 0); -x_55 = lean_ctor_get(x_1, 1); -x_56 = lean_ctor_get(x_1, 2); -x_57 = lean_ctor_get(x_1, 3); -x_58 = lean_ctor_get(x_1, 4); -lean_inc(x_58); -lean_inc(x_57); -lean_inc(x_56); -lean_inc(x_55); -lean_inc(x_54); lean_dec(x_1); -x_59 = l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__1(x_57, x_2, x_3); -x_60 = lean_ctor_get(x_59, 0); +x_55 = l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__1(x_53, x_2, x_3); +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 = l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__2(x_54, x_2, x_57); +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_62 = l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__2(x_58, x_2, x_61); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_62)) { - lean_ctor_release(x_62, 0); - lean_ctor_release(x_62, 1); - x_65 = x_62; +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_61 = x_58; } else { - lean_dec_ref(x_62); - x_65 = lean_box(0); + lean_dec_ref(x_58); + x_61 = lean_box(0); } -x_66 = lean_alloc_ctor(2, 5, 0); -lean_ctor_set(x_66, 0, x_54); -lean_ctor_set(x_66, 1, x_55); -lean_ctor_set(x_66, 2, x_56); -lean_ctor_set(x_66, 3, x_60); -lean_ctor_set(x_66, 4, x_63); -if (lean_is_scalar(x_65)) { - x_67 = lean_alloc_ctor(0, 2, 0); +x_62 = lean_alloc_ctor(2, 4, 0); +lean_ctor_set(x_62, 0, x_51); +lean_ctor_set(x_62, 1, x_52); +lean_ctor_set(x_62, 2, x_56); +lean_ctor_set(x_62, 3, x_59); +if (lean_is_scalar(x_61)) { + x_63 = lean_alloc_ctor(0, 2, 0); } else { - x_67 = x_65; + x_63 = x_61; } -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_64); -return x_67; +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_60); +return x_63; } } case 3: { -uint8_t x_68; -x_68 = !lean_is_exclusive(x_1); -if (x_68 == 0) +uint8_t x_64; +x_64 = !lean_is_exclusive(x_1); +if (x_64 == 0) { -lean_object* x_69; lean_object* x_70; uint8_t x_71; -x_69 = lean_ctor_get(x_1, 1); -x_70 = l_Lean_Meta_instantiateMVars(x_69, x_2, x_3); -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_65 = lean_ctor_get(x_1, 0); +x_66 = l_Lean_Meta_instantiateMVars(x_65, x_2, x_3); +x_67 = !lean_is_exclusive(x_66); +if (x_67 == 0) { -lean_object* x_72; -x_72 = lean_ctor_get(x_70, 0); -lean_ctor_set(x_1, 1, x_72); -lean_ctor_set(x_70, 0, x_1); -return x_70; +lean_object* x_68; +x_68 = lean_ctor_get(x_66, 0); +lean_ctor_set(x_1, 0, x_68); +lean_ctor_set(x_66, 0, x_1); +return x_66; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_70, 0); -x_74 = lean_ctor_get(x_70, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_70); -lean_ctor_set(x_1, 1, x_73); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_1); -lean_ctor_set(x_75, 1, x_74); -return x_75; +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_66, 0); +x_70 = lean_ctor_get(x_66, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_66); +lean_ctor_set(x_1, 0, x_69); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_1); +lean_ctor_set(x_71, 1, x_70); +return x_71; } } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_76 = lean_ctor_get(x_1, 0); -x_77 = lean_ctor_get(x_1, 1); -lean_inc(x_77); -lean_inc(x_76); +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_1, 0); +lean_inc(x_72); lean_dec(x_1); -x_78 = l_Lean_Meta_instantiateMVars(x_77, x_2, x_3); -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; +x_73 = l_Lean_Meta_instantiateMVars(x_72, x_2, x_3); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +if (lean_is_exclusive(x_73)) { + lean_ctor_release(x_73, 0); + lean_ctor_release(x_73, 1); + x_76 = x_73; } else { - lean_dec_ref(x_78); - x_81 = lean_box(0); + lean_dec_ref(x_73); + x_76 = lean_box(0); } -x_82 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_82, 0, x_76); -lean_ctor_set(x_82, 1, x_79); -if (lean_is_scalar(x_81)) { - x_83 = lean_alloc_ctor(0, 2, 0); +x_77 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_77, 0, x_74); +if (lean_is_scalar(x_76)) { + x_78 = lean_alloc_ctor(0, 2, 0); } else { - x_83 = x_81; + x_78 = x_76; } -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_80); -return x_83; +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_75); +return x_78; } } case 4: { -uint8_t x_84; -x_84 = !lean_is_exclusive(x_1); -if (x_84 == 0) +uint8_t x_79; +x_79 = !lean_is_exclusive(x_1); +if (x_79 == 0) { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_85 = lean_ctor_get(x_1, 1); -x_86 = lean_ctor_get(x_1, 2); -x_87 = l_Lean_Meta_instantiateMVars(x_85, x_2, x_3); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); +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_80 = lean_ctor_get(x_1, 0); +x_81 = lean_ctor_get(x_1, 1); +x_82 = l_Lean_Meta_instantiateMVars(x_80, x_2, x_3); +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec(x_82); +x_85 = l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__2(x_81, x_2, x_84); +x_86 = !lean_is_exclusive(x_85); +if (x_86 == 0) +{ +lean_object* x_87; +x_87 = lean_ctor_get(x_85, 0); +lean_ctor_set(x_1, 1, x_87); +lean_ctor_set(x_1, 0, x_83); +lean_ctor_set(x_85, 0, x_1); +return x_85; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_85, 0); +x_89 = lean_ctor_get(x_85, 1); lean_inc(x_89); -lean_dec(x_87); -x_90 = l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__2(x_86, x_2, x_89); -x_91 = !lean_is_exclusive(x_90); -if (x_91 == 0) -{ -lean_object* x_92; -x_92 = lean_ctor_get(x_90, 0); -lean_ctor_set(x_1, 2, x_92); +lean_inc(x_88); +lean_dec(x_85); lean_ctor_set(x_1, 1, x_88); +lean_ctor_set(x_1, 0, x_83); +x_90 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_90, 0, x_1); +lean_ctor_set(x_90, 1, x_89); return x_90; } -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_90, 0); -x_94 = lean_ctor_get(x_90, 1); -lean_inc(x_94); -lean_inc(x_93); -lean_dec(x_90); -lean_ctor_set(x_1, 2, x_93); -lean_ctor_set(x_1, 1, x_88); -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_1); -lean_ctor_set(x_95, 1, x_94); -return x_95; -} } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_96 = lean_ctor_get(x_1, 0); -x_97 = lean_ctor_get(x_1, 1); -x_98 = lean_ctor_get(x_1, 2); -lean_inc(x_98); -lean_inc(x_97); -lean_inc(x_96); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_91 = lean_ctor_get(x_1, 0); +x_92 = lean_ctor_get(x_1, 1); +lean_inc(x_92); +lean_inc(x_91); lean_dec(x_1); -x_99 = l_Lean_Meta_instantiateMVars(x_97, x_2, x_3); -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -lean_dec(x_99); -x_102 = l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__2(x_98, x_2, x_101); -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_102, 1); -lean_inc(x_104); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_105 = x_102; +x_93 = l_Lean_Meta_instantiateMVars(x_91, x_2, x_3); +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +lean_dec(x_93); +x_96 = l_List_mapM___main___at_Lean_Meta_DepElim_Pattern_instantiateMVars___main___spec__2(x_92, x_2, x_95); +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_102); - x_105 = lean_box(0); + lean_dec_ref(x_96); + x_99 = lean_box(0); } -x_106 = lean_alloc_ctor(4, 3, 0); -lean_ctor_set(x_106, 0, x_96); -lean_ctor_set(x_106, 1, x_100); -lean_ctor_set(x_106, 2, x_103); -if (lean_is_scalar(x_105)) { - x_107 = lean_alloc_ctor(0, 2, 0); +x_100 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_100, 0, x_94); +lean_ctor_set(x_100, 1, x_97); +if (lean_is_scalar(x_99)) { + x_101 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_105; + x_101 = x_99; } -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_104); -return x_107; +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_98); +return x_101; } } default: { -uint8_t x_108; -x_108 = !lean_is_exclusive(x_1); +uint8_t x_102; +x_102 = !lean_is_exclusive(x_1); +if (x_102 == 0) +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_103 = lean_ctor_get(x_1, 0); +x_104 = lean_ctor_get(x_1, 1); +x_105 = lean_ctor_get(x_3, 1); +lean_inc(x_105); +lean_inc(x_103); +x_106 = lean_metavar_ctx_get_expr_assignment(x_105, x_103); +if (lean_obj_tag(x_106) == 0) +{ +lean_object* x_107; uint8_t x_108; +x_107 = l_Lean_Meta_DepElim_Pattern_instantiateMVars___main(x_104, x_2, x_3); +x_108 = !lean_is_exclusive(x_107); if (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_1, 0); -x_110 = lean_ctor_get(x_1, 1); -x_111 = lean_ctor_get(x_1, 2); -x_112 = lean_ctor_get(x_3, 1); -lean_inc(x_112); +lean_object* x_109; +x_109 = lean_ctor_get(x_107, 0); +lean_ctor_set(x_1, 1, x_109); +lean_ctor_set(x_107, 0, x_1); +return x_107; +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_107, 0); +x_111 = lean_ctor_get(x_107, 1); +lean_inc(x_111); lean_inc(x_110); -x_113 = lean_metavar_ctx_get_expr_assignment(x_112, x_110); -if (lean_obj_tag(x_113) == 0) -{ -lean_object* x_114; uint8_t x_115; -x_114 = l_Lean_Meta_DepElim_Pattern_instantiateMVars___main(x_111, x_2, x_3); -x_115 = !lean_is_exclusive(x_114); -if (x_115 == 0) -{ -lean_object* x_116; -x_116 = lean_ctor_get(x_114, 0); -lean_ctor_set(x_1, 2, x_116); -lean_ctor_set(x_114, 0, x_1); -return x_114; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_114, 0); -x_118 = lean_ctor_get(x_114, 1); -lean_inc(x_118); -lean_inc(x_117); -lean_dec(x_114); -lean_ctor_set(x_1, 2, x_117); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_1); -lean_ctor_set(x_119, 1, x_118); -return x_119; +lean_dec(x_107); +lean_ctor_set(x_1, 1, x_110); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_1); +lean_ctor_set(x_112, 1, x_111); +return x_112; } } else { -lean_dec(x_113); +lean_dec(x_106); lean_free_object(x_1); -lean_dec(x_110); -lean_dec(x_109); -x_1 = x_111; +lean_dec(x_103); +x_1 = x_104; goto _start; } } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_121 = lean_ctor_get(x_1, 0); -x_122 = lean_ctor_get(x_1, 1); -x_123 = lean_ctor_get(x_1, 2); -lean_inc(x_123); -lean_inc(x_122); -lean_inc(x_121); +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_1, 0); +x_115 = lean_ctor_get(x_1, 1); +lean_inc(x_115); +lean_inc(x_114); lean_dec(x_1); -x_124 = lean_ctor_get(x_3, 1); -lean_inc(x_124); -lean_inc(x_122); -x_125 = lean_metavar_ctx_get_expr_assignment(x_124, x_122); -if (lean_obj_tag(x_125) == 0) +x_116 = lean_ctor_get(x_3, 1); +lean_inc(x_116); +lean_inc(x_114); +x_117 = lean_metavar_ctx_get_expr_assignment(x_116, x_114); +if (lean_obj_tag(x_117) == 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; -x_126 = l_Lean_Meta_DepElim_Pattern_instantiateMVars___main(x_123, x_2, x_3); -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_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_118 = l_Lean_Meta_DepElim_Pattern_instantiateMVars___main(x_115, x_2, x_3); +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_121 = x_118; } else { - lean_dec_ref(x_126); - x_129 = lean_box(0); + lean_dec_ref(x_118); + x_121 = lean_box(0); } -x_130 = lean_alloc_ctor(5, 3, 0); -lean_ctor_set(x_130, 0, x_121); -lean_ctor_set(x_130, 1, x_122); -lean_ctor_set(x_130, 2, x_127); -if (lean_is_scalar(x_129)) { - x_131 = lean_alloc_ctor(0, 2, 0); +x_122 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_122, 0, x_114); +lean_ctor_set(x_122, 1, x_119); +if (lean_is_scalar(x_121)) { + x_123 = lean_alloc_ctor(0, 2, 0); } else { - x_131 = x_129; + x_123 = x_121; } -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_128); -return x_131; +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_120); +return x_123; } else { -lean_dec(x_125); -lean_dec(x_122); -lean_dec(x_121); -x_1 = x_123; +lean_dec(x_117); +lean_dec(x_114); +x_1 = x_115; goto _start; } } @@ -2907,236 +2823,214 @@ x_3 = !lean_is_exclusive(x_2); if (x_3 == 0) { lean_object* x_4; lean_object* x_5; -x_4 = lean_ctor_get(x_2, 1); +x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Meta_MVarRenaming_apply(x_1, x_4); -lean_ctor_set(x_2, 1, x_5); +lean_ctor_set(x_2, 0, x_5); return x_2; } else { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_ctor_get(x_2, 0); -x_7 = lean_ctor_get(x_2, 1); -lean_inc(x_7); lean_inc(x_6); lean_dec(x_2); -x_8 = l_Lean_Meta_MVarRenaming_apply(x_1, x_7); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_6); -lean_ctor_set(x_9, 1, x_8); -return x_9; +x_7 = l_Lean_Meta_MVarRenaming_apply(x_1, x_6); +x_8 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_8, 0, x_7); +return x_8; } } case 1: { -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_2, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_2, 1); -lean_inc(x_11); -x_12 = l_Std_RBNode_find___main___at_Lean_Meta_MVarRenaming_find_x3f___spec__1(x_1, x_11); -lean_dec(x_11); -if (lean_obj_tag(x_12) == 0) +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +x_10 = l_Std_RBNode_find___main___at_Lean_Meta_MVarRenaming_find_x3f___spec__1(x_1, x_9); +lean_dec(x_9); +if (lean_obj_tag(x_10) == 0) { +return x_2; +} +else +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_2); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_2, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_10, 0); +lean_inc(x_13); lean_dec(x_10); +lean_ctor_set(x_2, 0, x_13); return x_2; } else { -uint8_t x_13; -x_13 = !lean_is_exclusive(x_2); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_2, 1); -lean_dec(x_14); -x_15 = lean_ctor_get(x_2, 0); -lean_dec(x_15); -x_16 = lean_ctor_get(x_12, 0); -lean_inc(x_16); -lean_dec(x_12); -lean_ctor_set(x_2, 1, x_16); -return x_2; -} -else -{ -lean_object* x_17; lean_object* x_18; +lean_object* x_14; lean_object* x_15; lean_dec(x_2); -x_17 = lean_ctor_get(x_12, 0); -lean_inc(x_17); -lean_dec(x_12); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_10); -lean_ctor_set(x_18, 1, x_17); -return x_18; +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_14); +return x_15; } } } case 2: { -uint8_t x_19; -x_19 = !lean_is_exclusive(x_2); -if (x_19 == 0) +uint8_t x_16; +x_16 = !lean_is_exclusive(x_2); +if (x_16 == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_2, 3); -x_21 = lean_ctor_get(x_2, 4); -x_22 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__1(x_1, x_20); -x_23 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__2(x_1, x_21); -lean_ctor_set(x_2, 4, x_23); -lean_ctor_set(x_2, 3, x_22); +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_2, 2); +x_18 = lean_ctor_get(x_2, 3); +x_19 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__1(x_1, x_17); +x_20 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__2(x_1, x_18); +lean_ctor_set(x_2, 3, x_20); +lean_ctor_set(x_2, 2, x_19); return x_2; } 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; -x_24 = lean_ctor_get(x_2, 0); -x_25 = lean_ctor_get(x_2, 1); -x_26 = lean_ctor_get(x_2, 2); -x_27 = lean_ctor_get(x_2, 3); -x_28 = lean_ctor_get(x_2, 4); -lean_inc(x_28); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_25); +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_21 = lean_ctor_get(x_2, 0); +x_22 = lean_ctor_get(x_2, 1); +x_23 = lean_ctor_get(x_2, 2); +x_24 = lean_ctor_get(x_2, 3); lean_inc(x_24); +lean_inc(x_23); +lean_inc(x_22); +lean_inc(x_21); lean_dec(x_2); -x_29 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__1(x_1, x_27); -x_30 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__2(x_1, x_28); -x_31 = lean_alloc_ctor(2, 5, 0); -lean_ctor_set(x_31, 0, x_24); -lean_ctor_set(x_31, 1, x_25); -lean_ctor_set(x_31, 2, x_26); -lean_ctor_set(x_31, 3, x_29); -lean_ctor_set(x_31, 4, x_30); -return x_31; +x_25 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__1(x_1, x_23); +x_26 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__2(x_1, x_24); +x_27 = lean_alloc_ctor(2, 4, 0); +lean_ctor_set(x_27, 0, x_21); +lean_ctor_set(x_27, 1, x_22); +lean_ctor_set(x_27, 2, x_25); +lean_ctor_set(x_27, 3, x_26); +return x_27; } } case 3: { -uint8_t x_32; -x_32 = !lean_is_exclusive(x_2); -if (x_32 == 0) +uint8_t x_28; +x_28 = !lean_is_exclusive(x_2); +if (x_28 == 0) { -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_2, 1); -x_34 = l_Lean_Meta_MVarRenaming_apply(x_1, x_33); -lean_ctor_set(x_2, 1, x_34); +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_2, 0); +x_30 = l_Lean_Meta_MVarRenaming_apply(x_1, x_29); +lean_ctor_set(x_2, 0, x_30); return x_2; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_35 = lean_ctor_get(x_2, 0); -x_36 = lean_ctor_get(x_2, 1); -lean_inc(x_36); -lean_inc(x_35); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_2, 0); +lean_inc(x_31); lean_dec(x_2); -x_37 = l_Lean_Meta_MVarRenaming_apply(x_1, x_36); -x_38 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_38, 0, x_35); -lean_ctor_set(x_38, 1, x_37); -return x_38; +x_32 = l_Lean_Meta_MVarRenaming_apply(x_1, x_31); +x_33 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_33, 0, x_32); +return x_33; } } case 4: { -uint8_t x_39; -x_39 = !lean_is_exclusive(x_2); -if (x_39 == 0) +uint8_t x_34; +x_34 = !lean_is_exclusive(x_2); +if (x_34 == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_2, 1); -x_41 = lean_ctor_get(x_2, 2); -x_42 = l_Lean_Meta_MVarRenaming_apply(x_1, x_40); -x_43 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__3(x_1, x_41); -lean_ctor_set(x_2, 2, x_43); -lean_ctor_set(x_2, 1, x_42); +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_2, 0); +x_36 = lean_ctor_get(x_2, 1); +x_37 = l_Lean_Meta_MVarRenaming_apply(x_1, x_35); +x_38 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__3(x_1, x_36); +lean_ctor_set(x_2, 1, x_38); +lean_ctor_set(x_2, 0, x_37); return x_2; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_44 = lean_ctor_get(x_2, 0); -x_45 = lean_ctor_get(x_2, 1); -x_46 = lean_ctor_get(x_2, 2); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_2, 0); +x_40 = lean_ctor_get(x_2, 1); +lean_inc(x_40); +lean_inc(x_39); lean_dec(x_2); -x_47 = l_Lean_Meta_MVarRenaming_apply(x_1, x_45); -x_48 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__3(x_1, x_46); -x_49 = lean_alloc_ctor(4, 3, 0); -lean_ctor_set(x_49, 0, x_44); -lean_ctor_set(x_49, 1, x_47); -lean_ctor_set(x_49, 2, x_48); -return x_49; +x_41 = l_Lean_Meta_MVarRenaming_apply(x_1, x_39); +x_42 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main___spec__3(x_1, x_40); +x_43 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; } } default: { -uint8_t x_50; -x_50 = !lean_is_exclusive(x_2); -if (x_50 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_2); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_2, 0); +x_46 = lean_ctor_get(x_2, 1); +x_47 = l_Std_RBNode_find___main___at_Lean_Meta_MVarRenaming_find_x3f___spec__1(x_1, x_45); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; +x_48 = l_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main(x_1, x_46); +lean_ctor_set(x_2, 1, x_48); +return x_2; +} +else +{ +lean_object* x_49; lean_object* x_50; +lean_dec(x_45); +x_49 = lean_ctor_get(x_47, 0); +lean_inc(x_49); +lean_dec(x_47); +x_50 = l_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main(x_1, x_46); +lean_ctor_set(x_2, 1, x_50); +lean_ctor_set(x_2, 0, x_49); +return x_2; +} +} +else { lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_2, 1); -x_52 = lean_ctor_get(x_2, 2); +x_51 = lean_ctor_get(x_2, 0); +x_52 = lean_ctor_get(x_2, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_2); x_53 = l_Std_RBNode_find___main___at_Lean_Meta_MVarRenaming_find_x3f___spec__1(x_1, x_51); if (lean_obj_tag(x_53) == 0) { -lean_object* x_54; +lean_object* x_54; lean_object* x_55; x_54 = l_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main(x_1, x_52); -lean_ctor_set(x_2, 2, x_54); -return x_2; +x_55 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_55, 0, x_51); +lean_ctor_set(x_55, 1, x_54); +return x_55; } else { -lean_object* x_55; lean_object* x_56; +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_dec(x_51); -x_55 = lean_ctor_get(x_53, 0); -lean_inc(x_55); +x_56 = lean_ctor_get(x_53, 0); +lean_inc(x_56); lean_dec(x_53); -x_56 = l_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main(x_1, x_52); -lean_ctor_set(x_2, 2, x_56); -lean_ctor_set(x_2, 1, x_55); -return x_2; -} -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_57 = lean_ctor_get(x_2, 0); -x_58 = lean_ctor_get(x_2, 1); -x_59 = lean_ctor_get(x_2, 2); -lean_inc(x_59); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_2); -x_60 = l_Std_RBNode_find___main___at_Lean_Meta_MVarRenaming_find_x3f___spec__1(x_1, x_58); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; -x_61 = l_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main(x_1, x_59); -x_62 = lean_alloc_ctor(5, 3, 0); -lean_ctor_set(x_62, 0, x_57); -lean_ctor_set(x_62, 1, x_58); -lean_ctor_set(x_62, 2, x_61); -return x_62; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -lean_dec(x_58); -x_63 = lean_ctor_get(x_60, 0); -lean_inc(x_63); -lean_dec(x_60); -x_64 = l_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main(x_1, x_59); -x_65 = lean_alloc_ctor(5, 3, 0); -lean_ctor_set(x_65, 0, x_57); -lean_ctor_set(x_65, 1, x_63); -lean_ctor_set(x_65, 2, x_64); -return x_65; +x_57 = l_Lean_Meta_DepElim_Pattern_applyMVarRenaming___main(x_1, x_52); +x_58 = lean_alloc_ctor(5, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +return x_58; } } } @@ -3342,255 +3236,231 @@ x_3 = !lean_is_exclusive(x_2); if (x_3 == 0) { lean_object* x_4; lean_object* x_5; -x_4 = lean_ctor_get(x_2, 1); +x_4 = lean_ctor_get(x_2, 0); x_5 = l_Lean_Meta_FVarSubst_apply(x_1, x_4); -lean_ctor_set(x_2, 1, x_5); +lean_ctor_set(x_2, 0, x_5); return x_2; } else { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_ctor_get(x_2, 0); -x_7 = lean_ctor_get(x_2, 1); -lean_inc(x_7); lean_inc(x_6); lean_dec(x_2); -x_8 = l_Lean_Meta_FVarSubst_apply(x_1, x_7); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_6); -lean_ctor_set(x_9, 1, x_8); -return x_9; +x_7 = l_Lean_Meta_FVarSubst_apply(x_1, x_6); +x_8 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_8, 0, x_7); +return x_8; } } case 1: { -uint8_t x_10; -x_10 = !lean_is_exclusive(x_2); -if (x_10 == 0) +uint8_t x_9; +x_9 = !lean_is_exclusive(x_2); +if (x_9 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_2, 0); -x_12 = lean_ctor_get(x_2, 1); -x_13 = l_Lean_Meta_FVarSubst_get(x_1, x_12); -if (lean_obj_tag(x_13) == 2) +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_2, 0); +x_11 = l_Lean_Meta_FVarSubst_get(x_1, x_10); +if (lean_obj_tag(x_11) == 2) { -lean_object* x_14; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -lean_dec(x_13); -lean_ctor_set(x_2, 1, x_14); +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); +lean_ctor_set(x_2, 0, x_12); return x_2; } else { -lean_object* x_15; lean_object* x_16; -lean_dec(x_13); -lean_free_object(x_2); +lean_object* x_13; lean_object* x_14; lean_dec(x_11); -x_15 = l_Lean_Meta_DepElim_Pattern_toIPattern___main___closed__1; -x_16 = l_unreachable_x21___rarg(x_15); -return x_16; +lean_free_object(x_2); +x_13 = l_Lean_Meta_DepElim_Pattern_toIPattern___main___closed__1; +x_14 = l_unreachable_x21___rarg(x_13); +return x_14; } } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_2, 0); -x_18 = lean_ctor_get(x_2, 1); -lean_inc(x_18); -lean_inc(x_17); +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_2, 0); +lean_inc(x_15); lean_dec(x_2); -x_19 = l_Lean_Meta_FVarSubst_get(x_1, x_18); -if (lean_obj_tag(x_19) == 2) +x_16 = l_Lean_Meta_FVarSubst_get(x_1, x_15); +if (lean_obj_tag(x_16) == 2) { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_17); -lean_ctor_set(x_21, 1, x_20); -return x_21; +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_17); +return x_18; } else { -lean_object* x_22; lean_object* x_23; -lean_dec(x_19); -lean_dec(x_17); -x_22 = l_Lean_Meta_DepElim_Pattern_toIPattern___main___closed__1; -x_23 = l_unreachable_x21___rarg(x_22); -return x_23; +lean_object* x_19; lean_object* x_20; +lean_dec(x_16); +x_19 = l_Lean_Meta_DepElim_Pattern_toIPattern___main___closed__1; +x_20 = l_unreachable_x21___rarg(x_19); +return x_20; } } } case 2: { -uint8_t x_24; -x_24 = !lean_is_exclusive(x_2); -if (x_24 == 0) +uint8_t x_21; +x_21 = !lean_is_exclusive(x_2); +if (x_21 == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_25 = lean_ctor_get(x_2, 3); -x_26 = lean_ctor_get(x_2, 4); -x_27 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__1(x_1, x_25); -x_28 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__2(x_1, x_26); -lean_ctor_set(x_2, 4, x_28); -lean_ctor_set(x_2, 3, x_27); +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_2, 2); +x_23 = lean_ctor_get(x_2, 3); +x_24 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__1(x_1, x_22); +x_25 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__2(x_1, x_23); +lean_ctor_set(x_2, 3, x_25); +lean_ctor_set(x_2, 2, x_24); return x_2; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_29 = lean_ctor_get(x_2, 0); -x_30 = lean_ctor_get(x_2, 1); -x_31 = lean_ctor_get(x_2, 2); -x_32 = lean_ctor_get(x_2, 3); -x_33 = lean_ctor_get(x_2, 4); -lean_inc(x_33); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_26 = lean_ctor_get(x_2, 0); +x_27 = lean_ctor_get(x_2, 1); +x_28 = lean_ctor_get(x_2, 2); +x_29 = lean_ctor_get(x_2, 3); lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_inc(x_26); lean_dec(x_2); -x_34 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__1(x_1, x_32); -x_35 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__2(x_1, x_33); -x_36 = lean_alloc_ctor(2, 5, 0); -lean_ctor_set(x_36, 0, x_29); -lean_ctor_set(x_36, 1, x_30); -lean_ctor_set(x_36, 2, x_31); -lean_ctor_set(x_36, 3, x_34); -lean_ctor_set(x_36, 4, x_35); -return x_36; +x_30 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__1(x_1, x_28); +x_31 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__2(x_1, x_29); +x_32 = lean_alloc_ctor(2, 4, 0); +lean_ctor_set(x_32, 0, x_26); +lean_ctor_set(x_32, 1, x_27); +lean_ctor_set(x_32, 2, x_30); +lean_ctor_set(x_32, 3, x_31); +return x_32; } } case 3: { -uint8_t x_37; -x_37 = !lean_is_exclusive(x_2); -if (x_37 == 0) +uint8_t x_33; +x_33 = !lean_is_exclusive(x_2); +if (x_33 == 0) { -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_2, 1); -x_39 = l_Lean_Meta_FVarSubst_apply(x_1, x_38); -lean_ctor_set(x_2, 1, x_39); +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_2, 0); +x_35 = l_Lean_Meta_FVarSubst_apply(x_1, x_34); +lean_ctor_set(x_2, 0, x_35); return x_2; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_2, 0); -x_41 = lean_ctor_get(x_2, 1); -lean_inc(x_41); -lean_inc(x_40); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_2, 0); +lean_inc(x_36); lean_dec(x_2); -x_42 = l_Lean_Meta_FVarSubst_apply(x_1, x_41); -x_43 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_43, 0, x_40); -lean_ctor_set(x_43, 1, x_42); -return x_43; +x_37 = l_Lean_Meta_FVarSubst_apply(x_1, x_36); +x_38 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_38, 0, x_37); +return x_38; } } case 4: { -uint8_t x_44; -x_44 = !lean_is_exclusive(x_2); -if (x_44 == 0) +uint8_t x_39; +x_39 = !lean_is_exclusive(x_2); +if (x_39 == 0) { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_45 = lean_ctor_get(x_2, 1); -x_46 = lean_ctor_get(x_2, 2); -x_47 = l_Lean_Meta_FVarSubst_apply(x_1, x_45); -x_48 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__3(x_1, x_46); -lean_ctor_set(x_2, 2, x_48); -lean_ctor_set(x_2, 1, x_47); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_ctor_get(x_2, 0); +x_41 = lean_ctor_get(x_2, 1); +x_42 = l_Lean_Meta_FVarSubst_apply(x_1, x_40); +x_43 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__3(x_1, x_41); +lean_ctor_set(x_2, 1, x_43); +lean_ctor_set(x_2, 0, x_42); return x_2; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_49 = lean_ctor_get(x_2, 0); -x_50 = lean_ctor_get(x_2, 1); -x_51 = lean_ctor_get(x_2, 2); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_44 = lean_ctor_get(x_2, 0); +x_45 = lean_ctor_get(x_2, 1); +lean_inc(x_45); +lean_inc(x_44); lean_dec(x_2); -x_52 = l_Lean_Meta_FVarSubst_apply(x_1, x_50); -x_53 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__3(x_1, x_51); -x_54 = lean_alloc_ctor(4, 3, 0); -lean_ctor_set(x_54, 0, x_49); -lean_ctor_set(x_54, 1, x_52); -lean_ctor_set(x_54, 2, x_53); -return x_54; +x_46 = l_Lean_Meta_FVarSubst_apply(x_1, x_44); +x_47 = l_List_map___main___at_Lean_Meta_DepElim_Pattern_toIPattern___main___spec__3(x_1, x_45); +x_48 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } default: { -uint8_t x_55; -x_55 = !lean_is_exclusive(x_2); -if (x_55 == 0) +uint8_t x_49; +x_49 = !lean_is_exclusive(x_2); +if (x_49 == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_56 = lean_ctor_get(x_2, 0); -x_57 = lean_ctor_get(x_2, 1); -x_58 = lean_ctor_get(x_2, 2); -x_59 = l_Lean_Meta_FVarSubst_get(x_1, x_57); -if (lean_obj_tag(x_59) == 2) +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_2, 0); +x_51 = lean_ctor_get(x_2, 1); +x_52 = l_Lean_Meta_FVarSubst_get(x_1, x_50); +if (lean_obj_tag(x_52) == 2) { -lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -lean_dec(x_59); -x_61 = l_Lean_Meta_DepElim_Pattern_toIPattern___main(x_1, x_58); -lean_ctor_set(x_2, 2, x_61); -lean_ctor_set(x_2, 1, x_60); +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +lean_dec(x_52); +x_54 = l_Lean_Meta_DepElim_Pattern_toIPattern___main(x_1, x_51); +lean_ctor_set(x_2, 1, x_54); +lean_ctor_set(x_2, 0, x_53); return x_2; } else { -lean_object* x_62; lean_object* x_63; -lean_dec(x_59); +lean_object* x_55; lean_object* x_56; +lean_dec(x_52); lean_free_object(x_2); -lean_dec(x_58); -lean_dec(x_56); -x_62 = l_Lean_Meta_DepElim_Pattern_toIPattern___main___closed__1; -x_63 = l_unreachable_x21___rarg(x_62); -return x_63; +lean_dec(x_51); +x_55 = l_Lean_Meta_DepElim_Pattern_toIPattern___main___closed__1; +x_56 = l_unreachable_x21___rarg(x_55); +return x_56; } } else { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_64 = lean_ctor_get(x_2, 0); -x_65 = lean_ctor_get(x_2, 1); -x_66 = lean_ctor_get(x_2, 2); -lean_inc(x_66); -lean_inc(x_65); -lean_inc(x_64); +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_2, 0); +x_58 = lean_ctor_get(x_2, 1); +lean_inc(x_58); +lean_inc(x_57); lean_dec(x_2); -x_67 = l_Lean_Meta_FVarSubst_get(x_1, x_65); -if (lean_obj_tag(x_67) == 2) +x_59 = l_Lean_Meta_FVarSubst_get(x_1, x_57); +if (lean_obj_tag(x_59) == 2) { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -lean_dec(x_67); -x_69 = l_Lean_Meta_DepElim_Pattern_toIPattern___main(x_1, x_66); -x_70 = lean_alloc_ctor(5, 3, 0); -lean_ctor_set(x_70, 0, x_64); -lean_ctor_set(x_70, 1, x_68); -lean_ctor_set(x_70, 2, x_69); -return x_70; +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +lean_dec(x_59); +x_61 = l_Lean_Meta_DepElim_Pattern_toIPattern___main(x_1, x_58); +x_62 = lean_alloc_ctor(5, 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_71; lean_object* x_72; -lean_dec(x_67); -lean_dec(x_66); -lean_dec(x_64); -x_71 = l_Lean_Meta_DepElim_Pattern_toIPattern___main___closed__1; -x_72 = l_unreachable_x21___rarg(x_71); -return x_72; +lean_object* x_63; lean_object* x_64; +lean_dec(x_59); +lean_dec(x_58); +x_63 = l_Lean_Meta_DepElim_Pattern_toIPattern___main___closed__1; +x_64 = l_unreachable_x21___rarg(x_63); +return x_64; } } } @@ -6895,18 +6765,7 @@ x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_6__localDeclsToMVarsAux___main(x return x_6; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__mkThunk(lean_object* x_1) { -_start: -{ -lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lean_Closure_mkNewLevelParam___closed__2; -x_3 = 0; -x_4 = l_Lean_unitToExpr___closed__1; -x_5 = l_Lean_mkForall(x_2, x_3, x_4, x_1); -return x_5; -} -} -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; uint8_t x_4; @@ -6940,7 +6799,7 @@ goto _start; } } } -lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -7014,7 +6873,7 @@ return x_25; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__3(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7033,7 +6892,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = l_Lean_Meta_DepElim_Pattern_toIPattern___main(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3(x_1, x_6); +x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__3(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -7047,7 +6906,7 @@ lean_inc(x_10); lean_inc(x_9); lean_dec(x_2); x_11 = l_Lean_Meta_DepElim_Pattern_toIPattern___main(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3(x_1, x_10); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__3(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); @@ -7056,7 +6915,7 @@ return x_13; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__4(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7075,7 +6934,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = l_Lean_Meta_DepElim_Pattern_toIPattern___main(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4(x_1, x_6); +x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__4(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -7089,7 +6948,7 @@ lean_inc(x_10); lean_inc(x_9); lean_dec(x_2); x_11 = l_Lean_Meta_DepElim_Pattern_toIPattern___main(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4(x_1, x_10); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__4(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); @@ -7098,7 +6957,7 @@ return x_13; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; @@ -7108,7 +6967,7 @@ x_8 = l_Lean_Meta_mkForall(x_2, x_7, x_4, x_5); return x_8; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; lean_object* x_15; @@ -7132,7 +6991,7 @@ lean_inc(x_20); x_21 = lean_ctor_get(x_16, 1); lean_inc(x_21); lean_dec(x_16); -x_22 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3(x_21, x_4); +x_22 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__3(x_21, x_4); x_23 = l_Lean_Meta_FVarSubst_apply(x_21, x_19); lean_dec(x_21); x_24 = lean_alloc_ctor(0, 4, 0); @@ -7143,7 +7002,7 @@ lean_ctor_set(x_24, 3, x_22); x_25 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_6); -x_26 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg(x_7, x_8, x_25, x_14, x_9, x_11, x_17); +x_26 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg(x_7, x_8, x_25, x_14, x_9, x_11, x_17); return x_26; } else @@ -7154,14 +7013,14 @@ lean_inc(x_27); x_28 = lean_ctor_get(x_15, 1); lean_inc(x_28); lean_dec(x_15); -x_29 = l_Lean_unitToExpr___lambda__1___closed__5; +x_29 = l_Lean_unitToExpr___lambda__1___closed__3; x_30 = l_Lean_mkApp(x_10, x_29); x_31 = lean_ctor_get(x_27, 0); lean_inc(x_31); x_32 = lean_ctor_get(x_27, 1); lean_inc(x_32); lean_dec(x_27); -x_33 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4(x_32, x_4); +x_33 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__4(x_32, x_4); x_34 = l_Lean_Meta_FVarSubst_apply(x_32, x_30); lean_dec(x_32); x_35 = lean_alloc_ctor(0, 4, 0); @@ -7172,12 +7031,12 @@ lean_ctor_set(x_35, 3, x_33); x_36 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_36, 0, x_35); lean_ctor_set(x_36, 1, x_6); -x_37 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg(x_7, x_8, x_36, x_14, x_9, x_11, x_28); +x_37 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg(x_7, x_8, x_36, x_14, x_9, x_11, x_28); return x_37; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__1() { _start: { lean_object* x_1; @@ -7185,17 +7044,17 @@ x_1 = lean_mk_string("EqnCompiler"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___private_Lean_Meta_Basic_12__regTraceClasses___closed__2; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__1; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__3() { _start: { lean_object* x_1; @@ -7203,17 +7062,17 @@ x_1 = lean_mk_string("matchDebug"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__3; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__2; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__5() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__5() { _start: { lean_object* x_1; @@ -7221,27 +7080,27 @@ x_1 = lean_mk_string("minor premise "); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__6() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__5; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__5; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__7() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__6; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__6; 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_EqnCompiler_DepElim_9__withAltsAux___main___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___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: { if (lean_obj_tag(x_2) == 0) @@ -7269,7 +7128,7 @@ lean_inc(x_12); x_15 = l_List_toArrayAux___main___rarg(x_12, x_14); x_16 = x_15; x_17 = lean_unsigned_to_nat(0u); -x_18 = l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__1(x_17, x_16); +x_18 = l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__1(x_17, x_16); x_19 = x_18; x_20 = lean_ctor_get(x_10, 1); lean_inc(x_20); @@ -7280,13 +7139,13 @@ lean_dec(x_21); lean_inc(x_20); x_23 = l_List_toArrayAux___main___rarg(x_20, x_22); x_24 = x_23; -x_25 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__2), 4, 2); +x_25 = lean_alloc_closure((void*)(l_Array_umapMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__2), 4, 2); lean_closure_set(x_25, 0, x_17); lean_closure_set(x_25, 1, x_24); x_26 = x_25; lean_inc(x_19); lean_inc(x_1); -x_27 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__1___boxed), 5, 2); +x_27 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___lambda__1___boxed), 5, 2); lean_closure_set(x_27, 0, x_1); lean_closure_set(x_27, 1, x_19); x_28 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); @@ -7309,7 +7168,7 @@ x_34 = lean_unsigned_to_nat(1u); x_35 = lean_nat_add(x_33, x_34); x_36 = l_Lean_Meta_caseValue___closed__2; x_37 = l_Lean_Name_appendIndexAfter(x_36, x_35); -x_38 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__2___boxed), 12, 9); +x_38 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___lambda__2___boxed), 12, 9); lean_closure_set(x_38, 0, x_19); lean_closure_set(x_38, 1, x_4); lean_closure_set(x_38, 2, x_12); @@ -7326,7 +7185,7 @@ x_39 = lean_ctor_get(x_31, 4); lean_inc(x_39); x_40 = lean_ctor_get_uint8(x_39, sizeof(void*)*1); lean_dec(x_39); -x_41 = l___private_Lean_Meta_EqnCompiler_DepElim_8__mkThunk(x_30); +x_41 = l_Lean_mkThunkType(x_30); if (x_40 == 0) { uint8_t x_42; lean_object* x_43; @@ -7337,7 +7196,7 @@ return x_43; else { lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_44 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4; +x_44 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__4; x_45 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_44, x_6, x_31); x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); @@ -7362,7 +7221,7 @@ lean_dec(x_45); lean_inc(x_37); x_52 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_52, 0, x_37); -x_53 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__7; +x_53 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__7; x_54 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_52); @@ -7403,7 +7262,7 @@ return x_66; else { lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; -x_67 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4; +x_67 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__4; x_68 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_67, x_6, x_31); x_69 = lean_ctor_get(x_68, 0); lean_inc(x_69); @@ -7428,7 +7287,7 @@ lean_dec(x_68); lean_inc(x_37); x_75 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_75, 0, x_37); -x_76 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__7; +x_76 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__7; x_77 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_77, 0, x_76); lean_ctor_set(x_77, 1, x_75); @@ -7487,81 +7346,81 @@ return x_89; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg), 7, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg), 7, 0); return x_2; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__3___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__3(x_1, x_2); +x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__3(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___spec__4(x_1, x_2); +x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___spec__4(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___lambda__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___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); return x_6; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___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 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___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); lean_dec(x_1); return x_13; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___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_EqnCompiler_DepElim_9__withAltsAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); return x_8; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___rarg), 7, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___rarg), 7, 0); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAlts___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; x_6 = lean_box(0); x_7 = l_Array_empty___closed__1; -x_8 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg(x_1, x_2, x_6, x_7, x_3, x_4, x_5); +x_8 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg(x_1, x_2, x_6, x_7, x_3, x_4, x_5); return x_8; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_9__withAlts(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts___rarg), 5, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAlts___rarg), 5, 0); return x_2; } } @@ -7587,7 +7446,7 @@ lean_dec(x_3); return x_5; } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_11__isDone(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_10__isDone(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; @@ -7596,17 +7455,17 @@ x_3 = l_List_isEmpty___rarg(x_2); return x_3; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_11__isDone___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_10__isDone___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_11__isDone(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_10__isDone(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_12__isNextVar(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_11__isNextVar(lean_object* x_1) { _start: { lean_object* x_2; @@ -7636,17 +7495,17 @@ return x_6; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_12__isNextVar___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_11__isNextVar___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_12__isNextVar(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_11__isNextVar(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_12__hasAsPattern___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7658,7 +7517,7 @@ else lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; x_3 = lean_ctor_get(x_2, 0); x_4 = lean_ctor_get(x_2, 1); -x_5 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___spec__1(x_1, x_4); +x_5 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_12__hasAsPattern___spec__1(x_1, x_4); x_6 = lean_ctor_get(x_3, 3); if (lean_obj_tag(x_6) == 0) { @@ -7682,39 +7541,39 @@ return x_5; } } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_12__hasAsPattern(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = 0; -x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_12__hasAsPattern___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_12__hasAsPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___spec__1(x_3, x_2); +x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_12__hasAsPattern___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_12__hasAsPattern___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_12__hasAsPattern(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__isVariableTransition___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7737,7 +7596,7 @@ else lean_object* x_6; lean_object* x_7; uint8_t x_8; x_6 = lean_ctor_get(x_2, 1); x_7 = lean_ctor_get(x_4, 0); -x_8 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___spec__1(x_1, x_6); +x_8 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__isVariableTransition___spec__1(x_1, x_6); switch (lean_obj_tag(x_7)) { case 0: { @@ -7758,39 +7617,39 @@ return x_9; } } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_13__isVariableTransition(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = 1; -x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___spec__1(x_3, x_2); +x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__isVariableTransition___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__isVariableTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___spec__1(x_3, x_2); +x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_13__isVariableTransition___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_13__isVariableTransition___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_13__isVariableTransition(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition___spec__1(uint8_t x_1, lean_object* x_2) { +uint8_t l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isConstructorTransition___spec__1(uint8_t x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -7829,39 +7688,39 @@ return x_9; } } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_14__isConstructorTransition(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; uint8_t x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = 1; -x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition___spec__1(x_3, x_2); +x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isConstructorTransition___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isConstructorTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; uint8_t x_4; lean_object* x_5; x_3 = lean_unbox(x_1); lean_dec(x_1); -x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition___spec__1(x_3, x_2); +x_4 = l_List_foldr___main___at___private_Lean_Meta_EqnCompiler_DepElim_14__isConstructorTransition___spec__1(x_3, x_2); lean_dec(x_2); x_5 = lean_box(x_4); return x_5; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_14__isConstructorTransition___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_14__isConstructorTransition(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -8095,7 +7954,7 @@ goto _start; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___closed__1() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; @@ -8108,12 +7967,12 @@ lean_ctor_set(x_4, 1, x_3); return x_4; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___closed__2() { _start: { uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = 1; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__1; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___closed__1; x_3 = lean_box(x_1); x_4 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_4, 0, x_3); @@ -8121,13 +7980,13 @@ lean_ctor_set(x_4, 1, x_2); return x_4; } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition(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; uint8_t x_7; x_2 = lean_ctor_get(x_1, 2); -x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2; -x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___spec__1(x_3, x_2); +x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___closed__2; +x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___spec__1(x_3, x_2); x_5 = lean_ctor_get(x_4, 1); lean_inc(x_5); x_6 = lean_ctor_get(x_4, 0); @@ -8169,26 +8028,26 @@ return x_13; } } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___spec__1(x_1, x_2); +x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isValueTransition___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -8422,13 +8281,13 @@ goto _start; } } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_16__isValueTransition(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; uint8_t x_7; x_2 = lean_ctor_get(x_1, 2); -x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2; -x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___spec__1(x_3, x_2); +x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___closed__2; +x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isValueTransition___spec__1(x_3, x_2); x_5 = lean_ctor_get(x_4, 1); lean_inc(x_5); x_6 = lean_ctor_get(x_4, 0); @@ -8470,26 +8329,26 @@ return x_13; } } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isValueTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___spec__1(x_1, x_2); +x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_16__isValueTransition___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_16__isValueTransition___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isValueTransition(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isArrayLitTransition___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -8723,13 +8582,13 @@ goto _start; } } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_17__isArrayLitTransition(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; uint8_t x_7; x_2 = lean_ctor_get(x_1, 2); -x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2; -x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___spec__1(x_3, x_2); +x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___closed__2; +x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isArrayLitTransition___spec__1(x_3, x_2); x_5 = lean_ctor_get(x_4, 1); lean_inc(x_5); x_6 = lean_ctor_get(x_4, 0); @@ -8771,26 +8630,26 @@ return x_13; } } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isArrayLitTransition___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___spec__1(x_1, x_2); +x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_17__isArrayLitTransition___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_17__isArrayLitTransition___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isArrayLitTransition(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___spec__1(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -8816,7 +8675,7 @@ x_7 = lean_ctor_get(x_4, 0); x_8 = lean_ctor_get(x_4, 1); x_9 = lean_ctor_get(x_4, 2); x_10 = lean_ctor_get(x_4, 3); -x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___spec__1(x_6); +x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___spec__1(x_6); if (lean_obj_tag(x_10) == 0) { lean_object* x_12; lean_object* x_13; @@ -8873,7 +8732,7 @@ lean_inc(x_22); lean_inc(x_21); lean_inc(x_20); lean_dec(x_4); -x_24 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___spec__1(x_19); +x_24 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___spec__1(x_19); if (lean_obj_tag(x_23) == 0) { lean_object* x_25; lean_object* x_26; @@ -8942,7 +8801,7 @@ if (lean_is_exclusive(x_31)) { lean_dec_ref(x_31); x_37 = lean_box(0); } -x_38 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___spec__1(x_32); +x_38 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___spec__1(x_32); if (lean_obj_tag(x_36) == 0) { lean_object* x_39; lean_object* x_40; lean_object* x_41; @@ -8992,7 +8851,7 @@ return x_45; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__1() { _start: { lean_object* x_1; @@ -9000,17 +8859,17 @@ x_1 = lean_mk_string("match"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__2; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__3() { _start: { lean_object* x_1; @@ -9018,27 +8877,27 @@ x_1 = lean_mk_string("non variable step"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__4() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__3; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__3; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__5() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__4; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__4; 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_EqnCompiler_DepElim_19__processNonVariable(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_23; uint8_t x_24; @@ -9056,7 +8915,7 @@ goto block_22; else { lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_25 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; +x_25 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__2; x_26 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_25, x_4, x_5); x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); @@ -9077,7 +8936,7 @@ lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; x_30 = lean_ctor_get(x_26, 1); lean_inc(x_30); lean_dec(x_26); -x_31 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__5; +x_31 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__5; x_32 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_25, x_31, x_4, x_30); x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); @@ -9107,7 +8966,7 @@ lean_inc(x_11); lean_dec(x_6); x_12 = lean_ctor_get(x_2, 2); lean_inc(x_12); -x_13 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___spec__1(x_12); +x_13 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___spec__1(x_12); x_14 = !lean_is_exclusive(x_2); if (x_14 == 0) { @@ -9141,7 +9000,7 @@ return x_21; } } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__4(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -9192,7 +9051,7 @@ goto _start; } } } -lean_object* l_Std_HashSetImp_moveEntries___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Std_HashSetImp_moveEntries___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -9211,7 +9070,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_array_fget(x_2, x_1); x_7 = lean_box(0); x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__4(x_3, x_6); +x_9 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__4(x_3, x_6); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_1, x_10); lean_dec(x_1); @@ -9222,7 +9081,7 @@ goto _start; } } } -lean_object* l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__2(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; lean_object* x_8; lean_object* x_9; lean_object* x_10; @@ -9233,14 +9092,14 @@ lean_dec(x_3); x_6 = lean_box(0); x_7 = lean_mk_array(x_5, x_6); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_Std_HashSetImp_moveEntries___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__3(x_8, x_2, x_7); +x_9 = l_Std_HashSetImp_moveEntries___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__3(x_8, x_2, x_7); x_10 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_10, 0, x_1); lean_ctor_set(x_10, 1, x_9); return x_10; } } -lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -9261,7 +9120,7 @@ x_7 = lean_nat_dec_eq(x_5, x_2); if (x_7 == 0) { lean_object* x_8; -x_8 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5(x_6, x_2, x_3); +x_8 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__5(x_6, x_2, x_3); lean_ctor_set(x_1, 1, x_8); return x_1; } @@ -9284,7 +9143,7 @@ x_11 = lean_nat_dec_eq(x_9, x_2); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; -x_12 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5(x_10, x_2, x_3); +x_12 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__5(x_10, x_2, x_3); x_13 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_13, 0, x_9); lean_ctor_set(x_13, 1, x_12); @@ -9303,7 +9162,7 @@ return x_14; } } } -lean_object* l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__1(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; @@ -9334,7 +9193,7 @@ if (x_15 == 0) { lean_object* x_16; lean_free_object(x_1); -x_16 = l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__2(x_12, x_14); +x_16 = l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__2(x_12, x_14); return x_16; } else @@ -9349,7 +9208,7 @@ else lean_object* x_17; lean_object* x_18; lean_dec(x_6); lean_inc(x_2); -x_17 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5(x_9, x_2, x_2); +x_17 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__5(x_9, x_2, x_2); lean_dec(x_2); x_18 = lean_array_uset(x_5, x_8, x_17); lean_ctor_set(x_1, 1, x_18); @@ -9384,7 +9243,7 @@ lean_dec(x_21); if (x_30 == 0) { lean_object* x_31; -x_31 = l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__2(x_27, x_29); +x_31 = l_Std_HashSetImp_expand___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__2(x_27, x_29); return x_31; } else @@ -9401,7 +9260,7 @@ else lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_21); lean_inc(x_2); -x_33 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5(x_24, x_2, x_2); +x_33 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__5(x_24, x_2, x_2); lean_dec(x_2); x_34 = lean_array_uset(x_20, x_23, x_33); x_35 = lean_alloc_ctor(0, 2, 0); @@ -9412,7 +9271,7 @@ return x_35; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; @@ -9569,7 +9428,7 @@ x_38 = lean_ctor_get(x_2, 0); x_39 = lean_ctor_get(x_35, 0); lean_inc(x_39); lean_dec(x_35); -x_40 = l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__1(x_38, x_39); +x_40 = l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__1(x_38, x_39); lean_ctor_set(x_2, 0, x_40); x_41 = l_Lean_Meta_DepElim_assignGoalOf(x_1, x_36, x_3, x_4); if (lean_obj_tag(x_41) == 0) @@ -9631,7 +9490,7 @@ lean_dec(x_2); x_52 = lean_ctor_get(x_35, 0); lean_inc(x_52); lean_dec(x_35); -x_53 = l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__1(x_50, x_52); +x_53 = l_Std_HashSetImp_insert___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__1(x_50, x_52); x_54 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_51); @@ -9687,25 +9546,25 @@ return x_62; } } } -lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___spec__5(x_1, x_2, x_3); +x_4 = l_List_replace___main___at___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___spec__5(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -9725,7 +9584,7 @@ x_6 = lean_name_eq(x_4, x_2); if (x_6 == 0) { lean_object* x_7; -x_7 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_5, x_2); +x_7 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(x_5, x_2); lean_ctor_set(x_1, 1, x_7); return x_1; } @@ -9748,7 +9607,7 @@ x_10 = lean_name_eq(x_8, x_2); if (x_10 == 0) { lean_object* x_11; lean_object* x_12; -x_11 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_9, x_2); +x_11 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(x_9, x_2); x_12 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_12, 0, x_8); lean_ctor_set(x_12, 1, x_11); @@ -9763,7 +9622,7 @@ return x_9; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -9790,7 +9649,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(x_8, x_2, x_11); +x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__2(x_8, x_2, x_11); x_13 = !lean_is_exclusive(x_12); if (x_13 == 0) { @@ -9831,7 +9690,7 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(x_19, x_2, x_22); +x_23 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__2(x_19, x_2, x_22); x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); x_25 = lean_ctor_get(x_23, 1); @@ -9859,7 +9718,7 @@ return x_28; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -9919,9 +9778,9 @@ lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean x_33 = lean_ctor_get(x_25, 1); x_34 = lean_ctor_get(x_25, 0); lean_dec(x_34); -x_35 = lean_ctor_get(x_26, 1); +x_35 = lean_ctor_get(x_26, 0); lean_inc(x_35); -x_36 = lean_ctor_get(x_26, 2); +x_36 = lean_ctor_get(x_26, 1); lean_inc(x_36); lean_dec(x_26); lean_inc(x_1); @@ -9939,10 +9798,10 @@ lean_inc(x_40); x_41 = lean_ctor_get(x_39, 1); lean_inc(x_41); lean_dec(x_39); -x_42 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_30, x_35); +x_42 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(x_30, x_35); lean_dec(x_35); lean_ctor_set(x_25, 0, x_36); -x_43 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(x_25, x_3, x_41); +x_43 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__2(x_25, x_3, x_41); x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); x_45 = lean_ctor_get(x_43, 1); @@ -9995,9 +9854,9 @@ lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; x_50 = lean_ctor_get(x_25, 1); lean_inc(x_50); lean_dec(x_25); -x_51 = lean_ctor_get(x_26, 1); +x_51 = lean_ctor_get(x_26, 0); lean_inc(x_51); -x_52 = lean_ctor_get(x_26, 2); +x_52 = lean_ctor_get(x_26, 1); lean_inc(x_52); lean_dec(x_26); lean_inc(x_1); @@ -10015,12 +9874,12 @@ lean_inc(x_56); x_57 = lean_ctor_get(x_55, 1); lean_inc(x_57); lean_dec(x_55); -x_58 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_30, x_51); +x_58 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(x_30, x_51); lean_dec(x_51); x_59 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_59, 0, x_52); lean_ctor_set(x_59, 1, x_50); -x_60 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(x_59, x_3, x_57); +x_60 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__2(x_59, x_3, x_57); x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); x_62 = lean_ctor_get(x_60, 1); @@ -10089,9 +9948,9 @@ if (lean_is_exclusive(x_25)) { lean_dec_ref(x_25); x_71 = lean_box(0); } -x_72 = lean_ctor_get(x_26, 1); +x_72 = lean_ctor_get(x_26, 0); lean_inc(x_72); -x_73 = lean_ctor_get(x_26, 2); +x_73 = lean_ctor_get(x_26, 1); lean_inc(x_73); lean_dec(x_26); lean_inc(x_1); @@ -10109,7 +9968,7 @@ lean_inc(x_77); x_78 = lean_ctor_get(x_76, 1); lean_inc(x_78); lean_dec(x_76); -x_79 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_69, x_72); +x_79 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(x_69, x_72); lean_dec(x_72); if (lean_is_scalar(x_71)) { x_80 = lean_alloc_ctor(1, 2, 0); @@ -10118,7 +9977,7 @@ if (lean_is_scalar(x_71)) { } lean_ctor_set(x_80, 0, x_73); lean_ctor_set(x_80, 1, x_70); -x_81 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(x_80, x_3, x_78); +x_81 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__2(x_80, x_3, x_78); x_82 = lean_ctor_get(x_81, 0); lean_inc(x_82); x_83 = lean_ctor_get(x_81, 1); @@ -10181,7 +10040,7 @@ goto block_24; block_24: { lean_object* x_12; -x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__3(x_1, x_8, x_3, x_11); +x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__3(x_1, x_8, x_3, x_11); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -10249,7 +10108,7 @@ return x_23; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__1() { _start: { lean_object* x_1; @@ -10257,27 +10116,27 @@ x_1 = lean_mk_string("as-pattern step"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___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_EqnCompiler_DepElim_21__processAsPattern(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_29; uint8_t x_30; @@ -10295,7 +10154,7 @@ goto block_28; else { lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_31 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; +x_31 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__2; x_32 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_31, x_4, x_5); x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); @@ -10316,7 +10175,7 @@ lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; x_36 = lean_ctor_get(x_32, 1); lean_inc(x_36); lean_dec(x_32); -x_37 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__3; +x_37 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__3; x_38 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_31, x_37, x_4, x_36); x_39 = lean_ctor_get(x_38, 1); lean_inc(x_39); @@ -10345,7 +10204,7 @@ x_11 = lean_ctor_get(x_6, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_2, 2); lean_inc(x_12); -x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__3(x_11, x_12, x_4, x_7); +x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__3(x_11, x_12, x_4, x_7); if (lean_obj_tag(x_13) == 0) { lean_object* x_14; lean_object* x_15; uint8_t x_16; @@ -10414,34 +10273,34 @@ return x_27; } } } -lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_1, x_2); +x_3 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__2(x_1, x_2, x_3); +x_4 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__2(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__3(x_1, x_2, x_3, x_4); +x_5 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__3(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -10468,7 +10327,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1(x_8, x_2, x_11); +x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___spec__1(x_8, x_2, x_11); x_13 = !lean_is_exclusive(x_12); if (x_13 == 0) { @@ -10509,7 +10368,7 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1(x_19, x_2, x_22); +x_23 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___spec__1(x_19, x_2, x_22); x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); x_25 = lean_ctor_get(x_23, 1); @@ -10537,7 +10396,7 @@ return x_28; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -10677,7 +10536,7 @@ lean_dec(x_48); x_49 = lean_ctor_get(x_25, 1); lean_inc(x_49); lean_dec(x_25); -x_50 = lean_ctor_get(x_35, 1); +x_50 = lean_ctor_get(x_35, 0); lean_inc(x_50); lean_dec(x_35); lean_inc(x_1); @@ -10695,9 +10554,9 @@ lean_inc(x_54); x_55 = lean_ctor_get(x_53, 1); lean_inc(x_55); lean_dec(x_53); -x_56 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_47, x_50); +x_56 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(x_47, x_50); lean_dec(x_50); -x_57 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1(x_49, x_3, x_55); +x_57 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___spec__1(x_49, x_3, x_55); x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); x_59 = lean_ctor_get(x_57, 1); @@ -10756,7 +10615,7 @@ lean_dec(x_7); x_67 = lean_ctor_get(x_25, 1); lean_inc(x_67); lean_dec(x_25); -x_68 = lean_ctor_get(x_35, 1); +x_68 = lean_ctor_get(x_35, 0); lean_inc(x_68); lean_dec(x_35); lean_inc(x_1); @@ -10774,9 +10633,9 @@ lean_inc(x_72); x_73 = lean_ctor_get(x_71, 1); lean_inc(x_73); lean_dec(x_71); -x_74 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_66, x_68); +x_74 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(x_66, x_68); lean_dec(x_68); -x_75 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1(x_67, x_3, x_73); +x_75 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___spec__1(x_67, x_3, x_73); x_76 = lean_ctor_get(x_75, 0); lean_inc(x_76); x_77 = lean_ctor_get(x_75, 1); @@ -10880,7 +10739,7 @@ return x_91; block_24: { lean_object* x_12; -x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__2(x_1, x_8, x_3, x_11); +x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___spec__2(x_1, x_8, x_3, x_11); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -10948,7 +10807,7 @@ return x_23; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__1() { _start: { lean_object* x_1; @@ -10956,27 +10815,27 @@ x_1 = lean_mk_string("variable step"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___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_EqnCompiler_DepElim_22__processVariable(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_30; uint8_t x_31; @@ -10994,7 +10853,7 @@ goto block_29; else { lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; +x_32 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__2; x_33 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_32, x_4, x_5); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); @@ -11015,7 +10874,7 @@ lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; x_37 = lean_ctor_get(x_33, 1); lean_inc(x_37); lean_dec(x_33); -x_38 = l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__3; +x_38 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__3; x_39 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_32, x_38, x_4, x_37); x_40 = lean_ctor_get(x_39, 1); lean_inc(x_40); @@ -11048,7 +10907,7 @@ lean_dec(x_6); x_13 = lean_ctor_get(x_2, 2); lean_inc(x_13); lean_inc(x_4); -x_14 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__2(x_11, x_13, x_4, x_7); +x_14 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___spec__2(x_11, x_13, x_4, x_7); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; uint8_t x_17; @@ -11118,16 +10977,16 @@ return x_28; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___spec__1(x_1, x_2, x_3); +x_4 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___spec__1(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_23__isFirstPatternCtor(lean_object* x_1, lean_object* x_2) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_22__isFirstPatternCtor(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -11145,7 +11004,7 @@ x_5 = lean_ctor_get(x_3, 0); if (lean_obj_tag(x_5) == 2) { lean_object* x_6; uint8_t x_7; -x_6 = lean_ctor_get(x_5, 1); +x_6 = lean_ctor_get(x_5, 0); x_7 = lean_name_eq(x_6, x_1); return x_7; } @@ -11158,18 +11017,18 @@ return x_8; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_23__isFirstPatternCtor___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_22__isFirstPatternCtor___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_23__isFirstPatternCtor(x_1, x_2); +x_3 = l___private_Lean_Meta_EqnCompiler_DepElim_22__isFirstPatternCtor(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -11188,7 +11047,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = l_Lean_Meta_FVarSubst_apply(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1(x_1, x_6); +x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__1(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -11202,7 +11061,7 @@ lean_inc(x_10); lean_inc(x_9); lean_dec(x_2); x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1(x_1, x_10); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__1(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); @@ -11211,7 +11070,7 @@ return x_13; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__2(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -11229,7 +11088,7 @@ if (x_3 == 0) lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); -x_6 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__2(x_5); +x_6 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__2(x_5); if (lean_obj_tag(x_4) == 1) { lean_object* x_7; lean_object* x_8; @@ -11260,7 +11119,7 @@ x_11 = lean_ctor_get(x_1, 1); lean_inc(x_11); lean_inc(x_10); lean_dec(x_1); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__2(x_11); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__2(x_11); if (lean_obj_tag(x_10) == 1) { lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -11288,7 +11147,7 @@ return x_17; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -11311,7 +11170,7 @@ x_9 = lean_ctor_get(x_2, 0); x_10 = lean_ctor_get(x_9, 1); x_11 = l_Array_toList___rarg(x_10); x_12 = lean_ctor_get(x_2, 1); -x_13 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__2(x_11); +x_13 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__2(x_11); lean_inc(x_12); x_14 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_14, 0, x_12); @@ -11319,7 +11178,7 @@ lean_ctor_set(x_14, 1, x_13); x_15 = l_Lean_Meta_DepElim_Example_replaceFVarId___main(x_8, x_14, x_6); lean_dec(x_14); lean_dec(x_8); -x_16 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3(x_1, x_2, x_7); +x_16 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__3(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_16); lean_ctor_set(x_3, 0, x_15); return x_3; @@ -11337,7 +11196,7 @@ x_20 = lean_ctor_get(x_2, 0); x_21 = lean_ctor_get(x_20, 1); x_22 = l_Array_toList___rarg(x_21); x_23 = lean_ctor_get(x_2, 1); -x_24 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__2(x_22); +x_24 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__2(x_22); lean_inc(x_23); x_25 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_25, 0, x_23); @@ -11345,7 +11204,7 @@ lean_ctor_set(x_25, 1, x_24); x_26 = l_Lean_Meta_DepElim_Example_replaceFVarId___main(x_19, x_25, x_17); lean_dec(x_25); lean_dec(x_19); -x_27 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3(x_1, x_2, x_18); +x_27 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__3(x_1, x_2, x_18); x_28 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_28, 0, x_26); lean_ctor_set(x_28, 1, x_27); @@ -11354,7 +11213,7 @@ return x_28; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__4(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -11375,7 +11234,7 @@ x_6 = lean_ctor_get(x_2, 1); x_7 = lean_ctor_get(x_1, 0); x_8 = lean_ctor_get(x_7, 2); x_9 = l_Lean_Meta_DepElim_Example_applyFVarSubst___main(x_8, x_5); -x_10 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4(x_1, x_6); +x_10 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__4(x_1, x_6); lean_ctor_set(x_2, 1, x_10); lean_ctor_set(x_2, 0, x_9); return x_2; @@ -11391,7 +11250,7 @@ lean_dec(x_2); x_13 = lean_ctor_get(x_1, 0); x_14 = lean_ctor_get(x_13, 2); x_15 = l_Lean_Meta_DepElim_Example_applyFVarSubst___main(x_14, x_11); -x_16 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4(x_1, x_12); +x_16 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__4(x_1, x_12); x_17 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -11400,7 +11259,7 @@ return x_17; } } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -11419,7 +11278,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; x_6 = lean_ctor_get(x_2, 0); x_7 = lean_ctor_get(x_2, 1); x_8 = lean_ctor_get(x_1, 1); -x_9 = l___private_Lean_Meta_EqnCompiler_DepElim_23__isFirstPatternCtor(x_8, x_6); +x_9 = l___private_Lean_Meta_EqnCompiler_DepElim_22__isFirstPatternCtor(x_8, x_6); if (x_9 == 0) { lean_free_object(x_2); @@ -11448,7 +11307,7 @@ lean_inc(x_13); lean_inc(x_12); lean_dec(x_2); x_14 = lean_ctor_get(x_1, 1); -x_15 = l___private_Lean_Meta_EqnCompiler_DepElim_23__isFirstPatternCtor(x_14, x_12); +x_15 = l___private_Lean_Meta_EqnCompiler_DepElim_22__isFirstPatternCtor(x_14, x_12); if (x_15 == 0) { lean_dec(x_12); @@ -11469,7 +11328,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__6(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__6(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -11495,7 +11354,7 @@ x_7 = lean_ctor_get(x_4, 0); x_8 = lean_ctor_get(x_4, 1); x_9 = lean_ctor_get(x_4, 2); x_10 = lean_ctor_get(x_4, 3); -x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__6(x_6); +x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__6(x_6); if (lean_obj_tag(x_10) == 0) { lean_object* x_12; lean_object* x_13; @@ -11525,7 +11384,7 @@ lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; x_16 = lean_ctor_get(x_10, 1); x_17 = lean_ctor_get(x_10, 0); lean_dec(x_17); -x_18 = lean_ctor_get(x_14, 4); +x_18 = lean_ctor_get(x_14, 3); lean_inc(x_18); lean_dec(x_14); x_19 = l_List_append___rarg(x_18, x_16); @@ -11540,7 +11399,7 @@ lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; x_20 = lean_ctor_get(x_10, 1); lean_inc(x_20); lean_dec(x_10); -x_21 = lean_ctor_get(x_14, 4); +x_21 = lean_ctor_get(x_14, 3); lean_inc(x_21); lean_dec(x_14); x_22 = l_List_append___rarg(x_21, x_20); @@ -11600,7 +11459,7 @@ lean_inc(x_35); lean_inc(x_34); lean_inc(x_33); lean_dec(x_4); -x_37 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__6(x_32); +x_37 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__6(x_32); if (lean_obj_tag(x_36) == 0) { lean_object* x_38; lean_object* x_39; @@ -11632,7 +11491,7 @@ if (lean_is_exclusive(x_36)) { lean_dec_ref(x_36); x_42 = lean_box(0); } -x_43 = lean_ctor_get(x_40, 4); +x_43 = lean_ctor_get(x_40, 3); lean_inc(x_43); lean_dec(x_40); x_44 = l_List_append___rarg(x_43, x_41); @@ -11705,7 +11564,7 @@ if (lean_is_exclusive(x_51)) { lean_dec_ref(x_51); x_57 = lean_box(0); } -x_58 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__6(x_52); +x_58 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__6(x_52); if (lean_obj_tag(x_56) == 0) { lean_object* x_59; lean_object* x_60; lean_object* x_61; @@ -11738,7 +11597,7 @@ if (lean_is_exclusive(x_56)) { lean_dec_ref(x_56); x_64 = lean_box(0); } -x_65 = lean_ctor_get(x_62, 4); +x_65 = lean_ctor_get(x_62, 3); lean_inc(x_65); lean_dec(x_62); x_66 = l_List_append___rarg(x_65, x_63); @@ -11792,7 +11651,7 @@ return x_72; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -11826,7 +11685,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__7(x_1, x_9, x_3, x_12); +x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__7(x_1, x_9, x_3, x_12); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -11927,7 +11786,7 @@ lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); -x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__7(x_1, x_28, x_3, x_31); +x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__7(x_1, x_28, x_3, x_31); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; @@ -12012,7 +11871,7 @@ return x_45; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -12044,7 +11903,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(x_8, x_2, x_11); +x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__8(x_8, x_2, x_11); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -12143,7 +12002,7 @@ lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); -x_31 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(x_27, x_2, x_30); +x_31 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__8(x_27, x_2, x_30); 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; @@ -12227,7 +12086,7 @@ return x_44; } } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; uint8_t x_13; @@ -12267,19 +12126,19 @@ x_22 = l_Array_toList___rarg(x_20); lean_dec(x_20); lean_inc(x_4); x_23 = l_List_append___rarg(x_22, x_4); -x_24 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1(x_21, x_23); +x_24 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__1(x_21, x_23); x_25 = lean_ctor_get(x_2, 3); lean_inc(x_25); -x_26 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3(x_3, x_15, x_25); -x_27 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4(x_15, x_26); +x_26 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__3(x_3, x_15, x_25); +x_27 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__4(x_15, x_26); x_28 = lean_ctor_get(x_2, 2); lean_inc(x_28); x_29 = lean_box(0); -x_30 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__5(x_15, x_28, x_29); +x_30 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__5(x_15, x_28, x_29); lean_dec(x_15); -x_31 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__6(x_30); +x_31 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__6(x_30); lean_inc(x_10); -x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__7(x_21, x_31, x_10, x_11); +x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__7(x_21, x_31, x_10, x_11); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; @@ -12289,7 +12148,7 @@ x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); lean_dec(x_32); lean_inc(x_10); -x_35 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(x_33, x_10, x_34); +x_35 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__8(x_33, x_10, x_34); if (lean_obj_tag(x_35) == 0) { lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; @@ -12413,7 +12272,7 @@ return x_54; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__1() { _start: { lean_object* x_1; @@ -12421,27 +12280,27 @@ x_1 = lean_mk_string("constructor step"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___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_EqnCompiler_DepElim_24__processConstructor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_27; uint8_t x_28; @@ -12459,7 +12318,7 @@ goto block_26; else { lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_29 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; +x_29 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__2; x_30 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_29, x_4, x_5); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); @@ -12480,7 +12339,7 @@ lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; x_34 = lean_ctor_get(x_30, 1); lean_inc(x_34); lean_dec(x_30); -x_35 = l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__3; +x_35 = l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__3; x_36 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_29, x_35, x_4, x_34); x_37 = lean_ctor_get(x_36, 1); lean_inc(x_37); @@ -12526,7 +12385,7 @@ x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); x_20 = lean_unsigned_to_nat(0u); -x_21 = l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__9(x_1, x_2, x_11, x_12, x_14, x_18, x_18, x_20, x_3, x_4, x_19); +x_21 = l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__9(x_1, x_2, x_11, x_12, x_14, x_18, x_18, x_20, x_3, x_4, x_19); lean_dec(x_18); lean_dec(x_14); lean_dec(x_11); @@ -12565,48 +12424,48 @@ return x_25; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__1(x_1, x_2); +x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__1(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__3(x_1, x_2, x_3); +x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__3(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__4___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__4(x_1, x_2); +x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__4(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__5(x_1, x_2, x_3); +x_4 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__5(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +lean_object* l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__9(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_Array_iterateMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -12614,7 +12473,7 @@ lean_dec(x_3); return x_12; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__1() { _start: { lean_object* x_1; @@ -12622,34 +12481,34 @@ x_1 = lean_mk_string("failed to compile pattern matching, inductive type expecte return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___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_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_4 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_4, 0, x_1); x_5 = l_Lean_indentExpr(x_4); -x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__3; +x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__3; x_7 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); @@ -12658,24 +12517,24 @@ x_9 = l_Lean_Meta_throwOther___rarg(x_7, x_8, x_2, x_3); return x_9; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___boxed), 3, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___boxed), 3, 0); return x_2; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg(x_1, x_2, x_3); +x_4 = l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg(x_1, x_2, x_3); lean_dec(x_2); return x_4; } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -12702,7 +12561,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_8, x_2, x_11); +x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__1(x_8, x_2, x_11); x_13 = !lean_is_exclusive(x_12); if (x_13 == 0) { @@ -12743,7 +12602,7 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_19, x_2, x_22); +x_23 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__1(x_19, x_2, x_22); x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); x_25 = lean_ctor_get(x_23, 1); @@ -12771,7 +12630,7 @@ return x_28; } } } -uint8_t l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -12800,7 +12659,7 @@ return x_8; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -12819,7 +12678,7 @@ lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; x_6 = lean_ctor_get(x_3, 0); x_7 = lean_ctor_get(x_3, 1); x_8 = lean_name_eq(x_6, x_1); -x_9 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3(x_1, x_2, x_7); +x_9 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__3(x_1, x_2, x_7); if (x_8 == 0) { lean_object* x_10; lean_object* x_11; @@ -12849,7 +12708,7 @@ lean_inc(x_14); lean_inc(x_13); lean_dec(x_3); x_15 = lean_name_eq(x_13, x_1); -x_16 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3(x_1, x_2, x_14); +x_16 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__3(x_1, x_2, x_14); if (x_15 == 0) { lean_object* x_17; lean_object* x_18; lean_object* x_19; @@ -12876,7 +12735,7 @@ return x_21; } } } -lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_1) == 0) @@ -12951,7 +12810,7 @@ goto _start; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__1() { _start: { lean_object* x_1; @@ -12959,321 +12818,1230 @@ x_1 = lean_mk_string("ill-format alternative"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___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_EqnCompiler_DepElim_26__tryConstructorAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_13; uint8_t x_14; -x_13 = lean_array_get_size(x_7); -x_14 = lean_nat_dec_lt(x_8, x_13); -lean_dec(x_13); -if (x_14 == 0) +lean_object* x_12; uint8_t x_13; +x_12 = lean_array_get_size(x_6); +x_13 = lean_nat_dec_lt(x_7, x_12); +lean_dec(x_12); +if (x_13 == 0) { -lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_7); +x_14 = l_Array_toList___rarg(x_5); +x_15 = l_Array_toList___rarg(x_9); +lean_dec(x_9); +x_16 = 1; +x_17 = lean_alloc_ctor(2, 4, 0); +lean_ctor_set(x_17, 0, x_3); +lean_ctor_set(x_17, 1, x_4); +lean_ctor_set(x_17, 2, x_14); +lean_ctor_set(x_17, 3, x_15); +lean_inc(x_10); +lean_inc(x_17); +x_18 = l_Lean_Meta_DepElim_Pattern_toExpr___main(x_16, x_17, x_10, x_11); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +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 = !lean_is_exclusive(x_1); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_1, 0); +x_23 = lean_ctor_get(x_1, 1); +x_24 = lean_ctor_get(x_1, 2); +x_25 = lean_ctor_get(x_1, 3); +lean_inc(x_2); +x_26 = l_Lean_Meta_assignExprMVar(x_2, x_19, x_10, 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; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__1(x_25, x_10, x_27); +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_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_17); +lean_ctor_set(x_31, 1, x_29); +x_32 = l_Lean_Meta_instantiateMVars(x_23, x_10, x_30); +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_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__2(x_2, x_24); +x_36 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__3(x_2, x_8, x_24); lean_dec(x_8); -x_15 = l_Array_toList___rarg(x_6); -x_16 = l_Array_toList___rarg(x_10); +lean_dec(x_2); +x_37 = l_List_join___main___rarg(x_36); +x_38 = lean_box(0); +if (x_35 == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; +lean_dec(x_37); +lean_dec(x_33); +lean_dec(x_31); +lean_free_object(x_1); +lean_dec(x_22); +x_39 = l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__3; +x_40 = lean_box(0); +x_41 = l_Lean_Meta_throwOther___rarg(x_39, x_40, x_10, x_34); lean_dec(x_10); -x_17 = 1; -x_18 = lean_alloc_ctor(2, 5, 0); -lean_ctor_set(x_18, 0, x_2); -lean_ctor_set(x_18, 1, x_4); -lean_ctor_set(x_18, 2, x_5); -lean_ctor_set(x_18, 3, x_15); -lean_ctor_set(x_18, 4, x_16); -lean_inc(x_11); +x_42 = !lean_is_exclusive(x_41); +if (x_42 == 0) +{ +return x_41; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_41, 0); +x_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_41); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +else +{ +lean_object* x_46; uint8_t x_47; +x_46 = l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__4(x_37, x_38, x_10, x_34); +lean_dec(x_10); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_46, 0); +x_49 = l_List_reverse___rarg(x_48); +lean_ctor_set(x_1, 3, x_31); +lean_ctor_set(x_1, 2, x_49); +lean_ctor_set(x_1, 1, x_33); +lean_ctor_set(x_46, 0, x_1); +return x_46; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_50 = lean_ctor_get(x_46, 0); +x_51 = lean_ctor_get(x_46, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_46); +x_52 = l_List_reverse___rarg(x_50); +lean_ctor_set(x_1, 3, x_31); +lean_ctor_set(x_1, 2, x_52); +lean_ctor_set(x_1, 1, x_33); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_1); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +} +} +else +{ +uint8_t x_54; +lean_free_object(x_1); +lean_dec(x_25); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_22); +lean_dec(x_17); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_2); +x_54 = !lean_is_exclusive(x_26); +if (x_54 == 0) +{ +return x_26; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_26, 0); +x_56 = lean_ctor_get(x_26, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_26); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_58 = lean_ctor_get(x_1, 0); +x_59 = lean_ctor_get(x_1, 1); +x_60 = lean_ctor_get(x_1, 2); +x_61 = lean_ctor_get(x_1, 3); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_1); +lean_inc(x_2); +x_62 = l_Lean_Meta_assignExprMVar(x_2, x_19, x_10, x_20); +if (lean_obj_tag(x_62) == 0) +{ +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; uint8_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_63 = lean_ctor_get(x_62, 1); +lean_inc(x_63); +lean_dec(x_62); +x_64 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__1(x_61, x_10, x_63); +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_17); +lean_ctor_set(x_67, 1, x_65); +x_68 = l_Lean_Meta_instantiateMVars(x_59, x_10, x_66); +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 = l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__2(x_2, x_60); +x_72 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__3(x_2, x_8, x_60); +lean_dec(x_8); +lean_dec(x_2); +x_73 = l_List_join___main___rarg(x_72); +x_74 = lean_box(0); +if (x_71 == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +lean_dec(x_73); +lean_dec(x_69); +lean_dec(x_67); +lean_dec(x_58); +x_75 = l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__3; +x_76 = lean_box(0); +x_77 = l_Lean_Meta_throwOther___rarg(x_75, x_76, x_10, x_70); +lean_dec(x_10); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_80 = x_77; +} else { + lean_dec_ref(x_77); + x_80 = lean_box(0); +} +if (lean_is_scalar(x_80)) { + x_81 = lean_alloc_ctor(1, 2, 0); +} else { + x_81 = x_80; +} +lean_ctor_set(x_81, 0, x_78); +lean_ctor_set(x_81, 1, x_79); +return x_81; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_82 = l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__4(x_73, x_74, x_10, x_70); +lean_dec(x_10); +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; +} else { + lean_dec_ref(x_82); + x_85 = lean_box(0); +} +x_86 = l_List_reverse___rarg(x_83); +x_87 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_87, 0, x_58); +lean_ctor_set(x_87, 1, x_69); +lean_ctor_set(x_87, 2, x_86); +lean_ctor_set(x_87, 3, x_67); +if (lean_is_scalar(x_85)) { + x_88 = lean_alloc_ctor(0, 2, 0); +} else { + x_88 = x_85; +} +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_84); +return x_88; +} +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_61); +lean_dec(x_60); +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_17); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_2); +x_89 = lean_ctor_get(x_62, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_62, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_62)) { + lean_ctor_release(x_62, 0); + lean_ctor_release(x_62, 1); + x_91 = x_62; +} else { + lean_dec_ref(x_62); + x_91 = lean_box(0); +} +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(1, 2, 0); +} else { + x_92 = x_91; +} +lean_ctor_set(x_92, 0, x_89); +lean_ctor_set(x_92, 1, x_90); +return x_92; +} +} +} +else +{ +uint8_t x_93; +lean_dec(x_17); +lean_dec(x_10); +lean_dec(x_8); +lean_dec(x_2); +lean_dec(x_1); +x_93 = !lean_is_exclusive(x_18); +if (x_93 == 0) +{ +return x_18; +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_18, 0); +x_95 = lean_ctor_get(x_18, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_18); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +return x_96; +} +} +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_97 = lean_array_fget(x_6, x_7); +x_98 = l_Lean_Meta_instantiateMVars(x_97, x_10, x_11); +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec(x_98); +if (lean_obj_tag(x_99) == 2) +{ +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_99, 0); +lean_inc(x_108); +lean_dec(x_99); +x_109 = lean_unsigned_to_nat(1u); +x_110 = lean_nat_add(x_7, x_109); +lean_dec(x_7); +lean_inc(x_108); +x_111 = lean_array_push(x_8, x_108); +x_112 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_112, 0, x_108); +x_113 = lean_array_push(x_9, x_112); +x_7 = x_110; +x_8 = x_111; +x_9 = x_113; +x_11 = x_100; +goto _start; +} +else +{ +lean_object* x_115; +x_115 = lean_box(0); +x_101 = x_115; +goto block_107; +} +block_107: +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_101); +x_102 = lean_unsigned_to_nat(1u); +x_103 = lean_nat_add(x_7, x_102); +lean_dec(x_7); +x_104 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_104, 0, x_99); +x_105 = lean_array_push(x_9, x_104); +x_7 = x_103; +x_9 = x_105; +x_11 = x_100; +goto _start; +} +} +} +} +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__1(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__2___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___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__2(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__3(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_4; +} +} +lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__4(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___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* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_6); +lean_dec(x_5); +return x_12; +} +} +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_12; +} +} +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_6); +lean_dec(x_5); +return x_12; +} +} +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ctorName: "); +return x_1; +} +} +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__1; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(", resultType: "); +return x_1; +} +} +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__4; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__5; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(", expectedType: "); +return x_1; +} +} +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__7; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___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_EqnCompiler_DepElim_26__tryConstructor_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* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_inc(x_4); +lean_inc(x_3); +x_9 = l_Lean_mkConst(x_3, x_4); +x_10 = lean_unsigned_to_nat(0u); +x_11 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_5, x_5, x_10, x_9); +lean_inc(x_7); +x_12 = l_Lean_Meta_inferType(x_11, x_7, x_8); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_box(0); +x_16 = 0; +lean_inc(x_7); +x_17 = l_Lean_Meta_forallMetaTelescopeReducing(x_13, x_15, x_16, x_7, 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_50; uint8_t x_51; +x_18 = lean_ctor_get(x_17, 0); lean_inc(x_18); -x_19 = l_Lean_Meta_DepElim_Pattern_toExpr___main(x_17, x_18, x_11, x_12); +x_19 = lean_ctor_get(x_18, 1); +lean_inc(x_19); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +lean_dec(x_19); +x_50 = lean_ctor_get(x_20, 4); +lean_inc(x_50); +x_51 = lean_ctor_get_uint8(x_50, sizeof(void*)*1); +lean_dec(x_50); +if (x_51 == 0) +{ +x_23 = x_20; +goto block_49; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_52 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__4; +x_53 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_52, x_7, x_20); +x_54 = lean_ctor_get(x_53, 0); +lean_inc(x_54); +x_55 = lean_unbox(x_54); +lean_dec(x_54); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +lean_dec(x_53); +x_23 = x_56; +goto block_49; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_57 = lean_ctor_get(x_53, 1); +lean_inc(x_57); +lean_dec(x_53); +lean_inc(x_3); +x_58 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_58, 0, x_3); +x_59 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__3; +x_60 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_58); +x_61 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__6; +x_62 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +lean_inc(x_22); +x_63 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_63, 0, x_22); +x_64 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +x_65 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__9; +x_66 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +lean_inc(x_6); +x_67 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_67, 0, x_6); +x_68 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +x_69 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_52, x_68, x_7, x_57); +x_70 = lean_ctor_get(x_69, 1); +lean_inc(x_70); +lean_dec(x_69); +x_23 = x_70; +goto block_49; +} +} +block_49: +{ +lean_object* x_24; +lean_inc(x_7); +x_24 = l_Lean_Meta_isExprDefEq(x_22, x_6, x_7, x_23); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_unbox(x_25); +lean_dec(x_25); +if (x_26 == 0) +{ +uint8_t x_27; +lean_dec(x_21); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_27 = !lean_is_exclusive(x_24); +if (x_27 == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_24, 0); +lean_dec(x_28); +lean_ctor_set(x_24, 0, x_15); +return x_24; +} +else +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_24, 1); +lean_inc(x_29); +lean_dec(x_24); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_15); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_24, 1); +lean_inc(x_31); +lean_dec(x_24); +x_32 = l_Array_empty___closed__1; +x_33 = l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main(x_1, x_2, x_3, x_4, x_5, x_21, x_10, x_32, x_32, x_7, x_31); +lean_dec(x_21); +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 +{ +uint8_t x_41; +x_41 = !lean_is_exclusive(x_33); +if (x_41 == 0) +{ +return x_33; +} +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; +} +} +} +} +else +{ +uint8_t x_45; +lean_dec(x_21); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_45 = !lean_is_exclusive(x_24); +if (x_45 == 0) +{ +return x_24; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_24, 0); +x_47 = lean_ctor_get(x_24, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_24); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; +} +} +} +} +else +{ +uint8_t x_71; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_71 = !lean_is_exclusive(x_17); +if (x_71 == 0) +{ +return x_17; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_17, 0); +x_73 = lean_ctor_get(x_17, 1); +lean_inc(x_73); +lean_inc(x_72); +lean_dec(x_17); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; +} +} +} +else +{ +uint8_t x_75; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_75 = !lean_is_exclusive(x_12); +if (x_75 == 0) +{ +return x_12; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_12, 0); +x_77 = lean_ctor_get(x_12, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_12); +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; +} +} +} +} +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_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* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_5); +return x_9; +} +} +lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__expandAlt___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: +{ +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_9; +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_1); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_5); +lean_ctor_set(x_9, 1, x_8); +return x_9; +} +else +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_6); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_6, 0); +x_12 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +lean_inc(x_1); +x_13 = l_Lean_Meta_DepElim_Alt_copyCore(x_1, x_7, x_8); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +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, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = l_Lean_Meta_MVarRenaming_find_x21(x_16, x_2); +lean_dec(x_16); +lean_inc(x_18); +x_19 = l_Lean_Meta_getMVarDecl(x_18, x_7, x_15); if (lean_obj_tag(x_19) == 0) { -lean_object* x_20; lean_object* x_21; uint8_t x_22; +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec(x_19); -x_22 = !lean_is_exclusive(x_1); -if (x_22 == 0) +x_22 = lean_ctor_get(x_20, 2); +lean_inc(x_22); +lean_dec(x_20); +lean_inc(x_7); +x_23 = l_Lean_Meta_whnfD(x_22, x_7, x_21); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_1, 0); -x_24 = lean_ctor_get(x_1, 1); -x_25 = lean_ctor_get(x_1, 2); -x_26 = lean_ctor_get(x_1, 3); -lean_inc(x_3); -x_27 = l_Lean_Meta_assignExprMVar(x_3, x_20, x_11, x_21); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); -x_29 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_26, x_11, x_28); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_18); -lean_ctor_set(x_32, 1, x_30); -x_33 = l_Lean_Meta_instantiateMVars(x_24, x_11, x_31); -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_36 = l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__2(x_3, x_25); -x_37 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3(x_3, x_9, x_25); -lean_dec(x_9); -lean_dec(x_3); -x_38 = l_List_join___main___rarg(x_37); -x_39 = lean_box(0); -if (x_36 == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -lean_dec(x_38); -lean_dec(x_34); -lean_dec(x_32); -lean_free_object(x_1); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); lean_dec(x_23); -x_40 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__3; -x_41 = lean_box(0); -x_42 = l_Lean_Meta_throwOther___rarg(x_40, x_41, x_11, x_35); -lean_dec(x_11); -x_43 = !lean_is_exclusive(x_42); -if (x_43 == 0) +x_26 = lean_unsigned_to_nat(0u); +x_27 = l_Lean_Expr_getAppNumArgsAux___main(x_24, x_26); +x_28 = l_Lean_Expr_getAppArgs___closed__1; +lean_inc(x_27); +x_29 = lean_mk_array(x_27, x_28); +x_30 = lean_unsigned_to_nat(1u); +x_31 = lean_nat_sub(x_27, x_30); +lean_dec(x_27); +lean_inc(x_24); +x_32 = l___private_Lean_Expr_3__getAppArgsAux___main(x_24, x_29, x_31); +x_33 = lean_ctor_get(x_4, 1); +x_34 = l_Array_extract___rarg(x_32, x_26, x_33); +lean_dec(x_32); +lean_inc(x_7); +lean_inc(x_3); +x_35 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f(x_17, x_18, x_11, x_3, x_34, x_24, x_7, x_25); +lean_dec(x_34); +if (lean_obj_tag(x_35) == 0) { -return x_42; +lean_object* x_36; +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; +lean_free_object(x_6); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_6 = x_12; +x_8 = x_37; +goto _start; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_42, 0); -x_45 = lean_ctor_get(x_42, 1); -lean_inc(x_45); +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_35, 1); +lean_inc(x_39); +lean_dec(x_35); +x_40 = lean_ctor_get(x_36, 0); +lean_inc(x_40); +lean_dec(x_36); +lean_ctor_set(x_6, 1, x_5); +lean_ctor_set(x_6, 0, x_40); +x_5 = x_6; +x_6 = x_12; +x_8 = x_39; +goto _start; +} +} +else +{ +uint8_t x_42; +lean_free_object(x_6); +lean_dec(x_12); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_42 = !lean_is_exclusive(x_35); +if (x_42 == 0) +{ +return x_35; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_35, 0); +x_44 = lean_ctor_get(x_35, 1); lean_inc(x_44); -lean_dec(x_42); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; +lean_inc(x_43); +lean_dec(x_35); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} } } else { -lean_object* x_47; uint8_t x_48; -x_47 = l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__4(x_38, x_39, x_11, x_35); +uint8_t x_46; +lean_dec(x_18); +lean_dec(x_17); +lean_free_object(x_6); +lean_dec(x_12); lean_dec(x_11); -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_46 = !lean_is_exclusive(x_23); +if (x_46 == 0) { -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_47, 0); -x_50 = l_List_reverse___rarg(x_49); -lean_ctor_set(x_1, 3, x_32); -lean_ctor_set(x_1, 2, x_50); -lean_ctor_set(x_1, 1, x_34); -lean_ctor_set(x_47, 0, x_1); -return x_47; +return x_23; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_51 = lean_ctor_get(x_47, 0); -x_52 = lean_ctor_get(x_47, 1); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_23, 0); +x_48 = lean_ctor_get(x_23, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_23); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +else +{ +uint8_t x_50; +lean_dec(x_18); +lean_dec(x_17); +lean_free_object(x_6); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_50 = !lean_is_exclusive(x_19); +if (x_50 == 0) +{ +return x_19; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_19, 0); +x_52 = lean_ctor_get(x_19, 1); lean_inc(x_52); lean_inc(x_51); -lean_dec(x_47); -x_53 = l_List_reverse___rarg(x_51); -lean_ctor_set(x_1, 3, x_32); -lean_ctor_set(x_1, 2, x_53); -lean_ctor_set(x_1, 1, x_34); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_1); -lean_ctor_set(x_54, 1, x_52); -return x_54; +lean_dec(x_19); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; } } } else { -uint8_t x_55; -lean_free_object(x_1); -lean_dec(x_26); -lean_dec(x_25); -lean_dec(x_24); -lean_dec(x_23); -lean_dec(x_18); +uint8_t x_54; +lean_free_object(x_6); +lean_dec(x_12); lean_dec(x_11); -lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_3); -x_55 = !lean_is_exclusive(x_27); -if (x_55 == 0) -{ -return x_27; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_27, 0); -x_57 = lean_ctor_get(x_27, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_27); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -} -else -{ -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_1, 0); -x_60 = lean_ctor_get(x_1, 1); -x_61 = lean_ctor_get(x_1, 2); -x_62 = lean_ctor_get(x_1, 3); -lean_inc(x_62); -lean_inc(x_61); -lean_inc(x_60); -lean_inc(x_59); lean_dec(x_1); -lean_inc(x_3); -x_63 = l_Lean_Meta_assignExprMVar(x_3, x_20, x_11, x_21); -if (lean_obj_tag(x_63) == 0) +x_54 = !lean_is_exclusive(x_13); +if (x_54 == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_64 = lean_ctor_get(x_63, 1); -lean_inc(x_64); -lean_dec(x_63); -x_65 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_62, x_11, x_64); -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_alloc_ctor(1, 2, 0); -lean_ctor_set(x_68, 0, x_18); -lean_ctor_set(x_68, 1, x_66); -x_69 = l_Lean_Meta_instantiateMVars(x_60, x_11, x_67); -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_69, 1); -lean_inc(x_71); -lean_dec(x_69); -x_72 = l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__2(x_3, x_61); -x_73 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3(x_3, x_9, x_61); -lean_dec(x_9); -lean_dec(x_3); -x_74 = l_List_join___main___rarg(x_73); -x_75 = lean_box(0); -if (x_72 == 0) -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -lean_dec(x_74); -lean_dec(x_70); -lean_dec(x_68); -lean_dec(x_59); -x_76 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__3; -x_77 = lean_box(0); -x_78 = l_Lean_Meta_throwOther___rarg(x_76, x_77, x_11, x_71); -lean_dec(x_11); -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; -} else { - lean_dec_ref(x_78); - 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); -return x_82; +return x_13; } else { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_83 = l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__4(x_74, x_75, x_11, x_71); -lean_dec(x_11); -x_84 = lean_ctor_get(x_83, 0); +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_13, 0); +x_56 = lean_ctor_get(x_13, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_13); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_6, 0); +x_59 = lean_ctor_get(x_6, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_6); +lean_inc(x_7); +lean_inc(x_1); +x_60 = l_Lean_Meta_DepElim_Alt_copyCore(x_1, x_7, x_8); +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; +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); +x_63 = lean_ctor_get(x_61, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_dec(x_61); +x_65 = l_Lean_Meta_MVarRenaming_find_x21(x_63, x_2); +lean_dec(x_63); +lean_inc(x_65); +x_66 = l_Lean_Meta_getMVarDecl(x_65, x_7, x_62); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_69 = lean_ctor_get(x_67, 2); +lean_inc(x_69); +lean_dec(x_67); +lean_inc(x_7); +x_70 = l_Lean_Meta_whnfD(x_69, x_7, x_68); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec(x_70); +x_73 = lean_unsigned_to_nat(0u); +x_74 = l_Lean_Expr_getAppNumArgsAux___main(x_71, x_73); +x_75 = l_Lean_Expr_getAppArgs___closed__1; +lean_inc(x_74); +x_76 = lean_mk_array(x_74, x_75); +x_77 = lean_unsigned_to_nat(1u); +x_78 = lean_nat_sub(x_74, x_77); +lean_dec(x_74); +lean_inc(x_71); +x_79 = l___private_Lean_Expr_3__getAppArgsAux___main(x_71, x_76, x_78); +x_80 = lean_ctor_get(x_4, 1); +x_81 = l_Array_extract___rarg(x_79, x_73, x_80); +lean_dec(x_79); +lean_inc(x_7); +lean_inc(x_3); +x_82 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f(x_64, x_65, x_58, x_3, x_81, x_71, x_7, x_72); +lean_dec(x_81); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; +x_83 = lean_ctor_get(x_82, 0); +lean_inc(x_83); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; +x_84 = lean_ctor_get(x_82, 1); lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); -lean_inc(x_85); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_86 = x_83; -} else { - lean_dec_ref(x_83); - x_86 = lean_box(0); +lean_dec(x_82); +x_6 = x_59; +x_8 = x_84; +goto _start; } -x_87 = l_List_reverse___rarg(x_84); -x_88 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_88, 0, x_59); -lean_ctor_set(x_88, 1, x_70); -lean_ctor_set(x_88, 2, x_87); -lean_ctor_set(x_88, 3, x_68); -if (lean_is_scalar(x_86)) { - x_89 = lean_alloc_ctor(0, 2, 0); -} else { - x_89 = x_86; -} -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_85); -return x_89; +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_82, 1); +lean_inc(x_86); +lean_dec(x_82); +x_87 = lean_ctor_get(x_83, 0); +lean_inc(x_87); +lean_dec(x_83); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_5); +x_5 = x_88; +x_6 = x_59; +x_8 = x_86; +goto _start; } } else { lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -lean_dec(x_62); -lean_dec(x_61); -lean_dec(x_60); lean_dec(x_59); -lean_dec(x_18); -lean_dec(x_11); -lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_3); -x_90 = lean_ctor_get(x_63, 0); +lean_dec(x_1); +x_90 = lean_ctor_get(x_82, 0); lean_inc(x_90); -x_91 = lean_ctor_get(x_63, 1); +x_91 = lean_ctor_get(x_82, 1); lean_inc(x_91); -if (lean_is_exclusive(x_63)) { - lean_ctor_release(x_63, 0); - lean_ctor_release(x_63, 1); - x_92 = x_63; +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_92 = x_82; } else { - lean_dec_ref(x_63); + lean_dec_ref(x_82); x_92 = lean_box(0); } if (lean_is_scalar(x_92)) { @@ -13286,1201 +14054,267 @@ lean_ctor_set(x_93, 1, x_91); return x_93; } } -} else { -uint8_t x_94; -lean_dec(x_18); -lean_dec(x_11); -lean_dec(x_9); +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_dec(x_65); +lean_dec(x_64); +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_94 = !lean_is_exclusive(x_19); -if (x_94 == 0) -{ -return x_19; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_19, 0); -x_96 = lean_ctor_get(x_19, 1); -lean_inc(x_96); +x_94 = lean_ctor_get(x_70, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_70, 1); lean_inc(x_95); -lean_dec(x_19); -x_97 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_97, 0, x_95); -lean_ctor_set(x_97, 1, x_96); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_96 = x_70; +} else { + lean_dec_ref(x_70); + x_96 = lean_box(0); +} +if (lean_is_scalar(x_96)) { + x_97 = lean_alloc_ctor(1, 2, 0); +} else { + x_97 = x_96; +} +lean_ctor_set(x_97, 0, x_94); +lean_ctor_set(x_97, 1, x_95); return x_97; } } -} else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_98 = lean_array_fget(x_7, x_8); -x_99 = l_Lean_Meta_instantiateMVars(x_98, x_11, x_12); -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -lean_dec(x_99); -if (lean_obj_tag(x_100) == 2) -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_109 = lean_ctor_get(x_100, 0); -lean_inc(x_109); -lean_dec(x_100); -x_110 = lean_unsigned_to_nat(1u); -x_111 = lean_nat_add(x_8, x_110); -lean_dec(x_8); -lean_inc(x_109); -x_112 = lean_array_push(x_9, x_109); -lean_inc(x_2); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_2); -lean_ctor_set(x_113, 1, x_109); -x_114 = lean_array_push(x_10, x_113); -x_8 = x_111; -x_9 = x_112; -x_10 = x_114; -x_12 = x_101; -goto _start; -} -else -{ -lean_object* x_116; -x_116 = lean_box(0); -x_102 = x_116; -goto block_108; -} -block_108: -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -lean_dec(x_102); -x_103 = lean_unsigned_to_nat(1u); -x_104 = lean_nat_add(x_8, x_103); -lean_dec(x_8); -lean_inc(x_2); -x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_2); -lean_ctor_set(x_105, 1, x_100); -x_106 = lean_array_push(x_10, x_105); -x_8 = x_104; -x_10 = x_106; -x_12 = x_101; -goto _start; -} -} -} -} -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} -lean_object* l_List_elem___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__2___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___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__2(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__3(x_1, x_2, x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_List_filterAuxM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__4(x_1, x_2, x_3, x_4); +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_dec(x_65); +lean_dec(x_64); +lean_dec(x_59); +lean_dec(x_58); +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_3); -return x_5; +lean_dec(x_1); +x_98 = lean_ctor_get(x_66, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_66, 1); +lean_inc(x_99); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_100 = x_66; +} else { + lean_dec_ref(x_66); + x_100 = lean_box(0); +} +if (lean_is_scalar(x_100)) { + x_101 = lean_alloc_ctor(1, 2, 0); +} else { + x_101 = x_100; +} +lean_ctor_set(x_101, 0, x_98); +lean_ctor_set(x_101, 1, x_99); +return x_101; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___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* x_10, lean_object* x_11, lean_object* x_12) { -_start: +else { -lean_object* x_13; -x_13 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main(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_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec(x_59); +lean_dec(x_58); lean_dec(x_7); -lean_dec(x_6); -return x_13; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_102 = lean_ctor_get(x_60, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_60, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_104 = x_60; +} else { + lean_dec_ref(x_60); + x_104 = lean_box(0); +} +if (lean_is_scalar(x_104)) { + x_105 = lean_alloc_ctor(1, 2, 0); +} else { + x_105 = x_104; +} +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_103); +return x_105; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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___private_Lean_Meta_EqnCompiler_DepElim_27__expandAlt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_13; -x_13 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_13; -} -} -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* 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___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_7); -lean_dec(x_6); -return x_13; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("ctorName: "); -return x_1; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__1; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(", resultType: "); -return x_1; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__4; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__5; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(", expectedType: "); -return x_1; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__7; -x_2 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___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_EqnCompiler_DepElim_27__tryConstructor_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* 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_5; lean_object* x_6; +x_5 = lean_ctor_get(x_4, 0); lean_inc(x_5); -lean_inc(x_4); -x_10 = l_Lean_mkConst(x_4, x_5); -x_11 = lean_unsigned_to_nat(0u); -x_12 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_6, x_6, x_11, x_10); -lean_inc(x_8); -x_13 = l_Lean_Meta_inferType(x_12, x_8, x_9); -if (lean_obj_tag(x_13) == 0) +lean_inc(x_2); +x_6 = l_Lean_Meta_getMVarDecl(x_2, x_3, x_4); +if (lean_obj_tag(x_6) == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +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_ctor_get(x_7, 2); +lean_inc(x_9); +lean_dec(x_7); +lean_inc(x_3); +x_10 = l_Lean_Meta_whnfD(x_9, x_3, x_8); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = l_Lean_Expr_getAppFn___main(x_11); +if (lean_obj_tag(x_13) == 4) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); x_15 = lean_ctor_get(x_13, 1); lean_inc(x_15); lean_dec(x_13); -x_16 = lean_box(0); -x_17 = 0; -lean_inc(x_8); -x_18 = l_Lean_Meta_forallMetaTelescopeReducing(x_14, x_16, x_17, x_8, x_15); -if (lean_obj_tag(x_18) == 0) +x_16 = lean_environment_find(x_5, x_14); +if (lean_obj_tag(x_16) == 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_51; uint8_t x_52; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -x_21 = lean_ctor_get(x_18, 1); -lean_inc(x_21); -lean_dec(x_18); -x_22 = lean_ctor_get(x_19, 0); -lean_inc(x_22); -lean_dec(x_19); -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -lean_dec(x_20); -x_51 = lean_ctor_get(x_21, 4); -lean_inc(x_51); -x_52 = lean_ctor_get_uint8(x_51, sizeof(void*)*1); -lean_dec(x_51); -if (x_52 == 0) -{ -x_24 = x_21; -goto block_50; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_53 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4; -x_54 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_53, x_8, x_21); -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_unbox(x_55); -lean_dec(x_55); -if (x_56 == 0) -{ -lean_object* x_57; -x_57 = lean_ctor_get(x_54, 1); -lean_inc(x_57); -lean_dec(x_54); -x_24 = x_57; -goto block_50; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; 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_58 = lean_ctor_get(x_54, 1); -lean_inc(x_58); -lean_dec(x_54); -lean_inc(x_4); -x_59 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_59, 0, x_4); -x_60 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__3; -x_61 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_59); -x_62 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__6; -x_63 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -lean_inc(x_23); -x_64 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_64, 0, x_23); -x_65 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -x_66 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__9; -x_67 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -lean_inc(x_7); -x_68 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_68, 0, x_7); -x_69 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -x_70 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_53, x_69, x_8, x_58); -x_71 = lean_ctor_get(x_70, 1); -lean_inc(x_71); -lean_dec(x_70); -x_24 = x_71; -goto block_50; -} -} -block_50: -{ -lean_object* x_25; -lean_inc(x_8); -x_25 = l_Lean_Meta_isExprDefEq(x_23, x_7, x_8, x_24); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; uint8_t x_27; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_unbox(x_26); -lean_dec(x_26); -if (x_27 == 0) -{ -uint8_t x_28; -lean_dec(x_22); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_28 = !lean_is_exclusive(x_25); -if (x_28 == 0) -{ -lean_object* x_29; -x_29 = lean_ctor_get(x_25, 0); -lean_dec(x_29); -lean_ctor_set(x_25, 0, x_16); -return x_25; -} -else -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_25, 1); -lean_inc(x_30); -lean_dec(x_25); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_16); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_25, 1); -lean_inc(x_32); -lean_dec(x_25); -x_33 = l_Array_empty___closed__1; -x_34 = l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_22, x_11, x_33, x_33, x_8, x_32); -lean_dec(x_22); -if (lean_obj_tag(x_34) == 0) -{ -uint8_t x_35; -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_34, 0); -x_37 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_34, 0, x_37); -return x_34; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_34, 0); -x_39 = lean_ctor_get(x_34, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_34); -x_40 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_40, 0, x_38); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_39); -return x_41; -} -} -else -{ -uint8_t x_42; -x_42 = !lean_is_exclusive(x_34); -if (x_42 == 0) -{ -return x_34; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_34, 0); -x_44 = lean_ctor_get(x_34, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_34); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; -} -} -} -} -else -{ -uint8_t x_46; -lean_dec(x_22); -lean_dec(x_8); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_46 = !lean_is_exclusive(x_25); -if (x_46 == 0) -{ -return x_25; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_25, 0); -x_48 = lean_ctor_get(x_25, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_25); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -} -else -{ -uint8_t x_72; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_72 = !lean_is_exclusive(x_18); -if (x_72 == 0) -{ -return x_18; -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_18, 0); -x_74 = lean_ctor_get(x_18, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_18); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; -} -} -} -else -{ -uint8_t x_76; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_76 = !lean_is_exclusive(x_13); -if (x_76 == 0) -{ -return x_13; -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_13, 0); -x_78 = lean_ctor_get(x_13, 1); -lean_inc(x_78); -lean_inc(x_77); -lean_dec(x_13); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -return x_79; -} -} -} -} -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_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* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_6); -return x_10; -} -} -lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt___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) { -_start: -{ -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_10; -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_6); -lean_ctor_set(x_10, 1, x_9); -return x_10; -} -else -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_7); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_7, 0); -x_13 = lean_ctor_get(x_7, 1); -lean_inc(x_8); -lean_inc(x_1); -x_14 = l_Lean_Meta_DepElim_Alt_copyCore(x_1, x_8, x_9); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -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_ctor_get(x_15, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); +lean_object* x_17; lean_dec(x_15); -x_19 = l_Lean_Meta_MVarRenaming_find_x21(x_17, x_3); -lean_dec(x_17); -lean_inc(x_19); -x_20 = l_Lean_Meta_getMVarDecl(x_19, 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; -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_ctor_get(x_21, 2); -lean_inc(x_23); -lean_dec(x_21); -lean_inc(x_8); -x_24 = l_Lean_Meta_whnfD(x_23, x_8, x_22); -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; -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 = lean_unsigned_to_nat(0u); -x_28 = l_Lean_Expr_getAppNumArgsAux___main(x_25, x_27); -x_29 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_28); -x_30 = lean_mk_array(x_28, x_29); -x_31 = lean_unsigned_to_nat(1u); -x_32 = lean_nat_sub(x_28, x_31); -lean_dec(x_28); -lean_inc(x_25); -x_33 = l___private_Lean_Expr_3__getAppArgsAux___main(x_25, x_30, x_32); -x_34 = lean_ctor_get(x_5, 1); -x_35 = l_Array_extract___rarg(x_33, x_27, x_34); -lean_dec(x_33); -lean_inc(x_8); -lean_inc(x_4); -lean_inc(x_2); -x_36 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f(x_18, x_2, x_19, x_12, x_4, x_35, x_25, x_8, x_26); -lean_dec(x_35); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; -lean_free_object(x_7); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_7 = x_13; -x_9 = x_38; -goto _start; -} -else -{ -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_36, 1); -lean_inc(x_40); -lean_dec(x_36); -x_41 = lean_ctor_get(x_37, 0); -lean_inc(x_41); -lean_dec(x_37); -lean_ctor_set(x_7, 1, x_6); -lean_ctor_set(x_7, 0, x_41); -x_6 = x_7; -x_7 = x_13; -x_9 = x_40; -goto _start; -} -} -else -{ -uint8_t x_43; -lean_free_object(x_7); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_43 = !lean_is_exclusive(x_36); -if (x_43 == 0) -{ -return x_36; +x_17 = l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg(x_11, x_3, x_12); +lean_dec(x_3); +return x_17; } else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_36, 0); -x_45 = lean_ctor_get(x_36, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_36); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -} -else -{ -uint8_t x_47; -lean_dec(x_19); -lean_dec(x_18); -lean_free_object(x_7); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_47 = !lean_is_exclusive(x_24); -if (x_47 == 0) -{ -return x_24; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_24, 0); -x_49 = lean_ctor_get(x_24, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_24); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; -} -} -} -else -{ -uint8_t x_51; -lean_dec(x_19); -lean_dec(x_18); -lean_free_object(x_7); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -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 -{ -uint8_t x_55; -lean_free_object(x_7); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_55 = !lean_is_exclusive(x_14); -if (x_55 == 0) -{ -return x_14; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_14, 0); -x_57 = lean_ctor_get(x_14, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_14); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_7, 0); -x_60 = lean_ctor_get(x_7, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_7); -lean_inc(x_8); -lean_inc(x_1); -x_61 = l_Lean_Meta_DepElim_Alt_copyCore(x_1, x_8, x_9); -if (lean_obj_tag(x_61) == 0) -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); -lean_inc(x_63); -lean_dec(x_61); -x_64 = lean_ctor_get(x_62, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_62, 1); -lean_inc(x_65); -lean_dec(x_62); -x_66 = l_Lean_Meta_MVarRenaming_find_x21(x_64, x_3); -lean_dec(x_64); -lean_inc(x_66); -x_67 = l_Lean_Meta_getMVarDecl(x_66, x_8, x_63); -if (lean_obj_tag(x_67) == 0) -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); -lean_inc(x_69); -lean_dec(x_67); -x_70 = lean_ctor_get(x_68, 2); -lean_inc(x_70); -lean_dec(x_68); -lean_inc(x_8); -x_71 = l_Lean_Meta_whnfD(x_70, x_8, x_69); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -lean_dec(x_71); -x_74 = lean_unsigned_to_nat(0u); -x_75 = l_Lean_Expr_getAppNumArgsAux___main(x_72, x_74); -x_76 = l_Lean_Expr_getAppArgs___closed__1; -lean_inc(x_75); -x_77 = lean_mk_array(x_75, x_76); -x_78 = lean_unsigned_to_nat(1u); -x_79 = lean_nat_sub(x_75, x_78); -lean_dec(x_75); -lean_inc(x_72); -x_80 = l___private_Lean_Expr_3__getAppArgsAux___main(x_72, x_77, x_79); -x_81 = lean_ctor_get(x_5, 1); -x_82 = l_Array_extract___rarg(x_80, x_74, x_81); -lean_dec(x_80); -lean_inc(x_8); -lean_inc(x_4); -lean_inc(x_2); -x_83 = l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f(x_65, x_2, x_66, x_59, x_4, x_82, x_72, x_8, x_73); -lean_dec(x_82); -if (lean_obj_tag(x_83) == 0) -{ -lean_object* x_84; -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -if (lean_obj_tag(x_84) == 0) -{ -lean_object* x_85; -x_85 = lean_ctor_get(x_83, 1); -lean_inc(x_85); -lean_dec(x_83); -x_7 = x_60; -x_9 = x_85; -goto _start; -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_83, 1); -lean_inc(x_87); -lean_dec(x_83); -x_88 = lean_ctor_get(x_84, 0); -lean_inc(x_88); -lean_dec(x_84); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_6); -x_6 = x_89; -x_7 = x_60; -x_9 = x_87; -goto _start; -} -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_60); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_91 = lean_ctor_get(x_83, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_83, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_93 = x_83; -} else { - lean_dec_ref(x_83); - x_93 = lean_box(0); -} -if (lean_is_scalar(x_93)) { - x_94 = lean_alloc_ctor(1, 2, 0); -} else { - x_94 = x_93; -} -lean_ctor_set(x_94, 0, x_91); -lean_ctor_set(x_94, 1, x_92); -return x_94; -} -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -lean_dec(x_66); -lean_dec(x_65); -lean_dec(x_60); -lean_dec(x_59); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_95 = lean_ctor_get(x_71, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_71, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - x_97 = x_71; -} else { - lean_dec_ref(x_71); - 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; -} -} -else -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_66); -lean_dec(x_65); -lean_dec(x_60); -lean_dec(x_59); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_99 = lean_ctor_get(x_67, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_67, 1); -lean_inc(x_100); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_101 = x_67; -} else { - lean_dec_ref(x_67); - x_101 = lean_box(0); -} -if (lean_is_scalar(x_101)) { - x_102 = lean_alloc_ctor(1, 2, 0); -} else { - x_102 = x_101; -} -lean_ctor_set(x_102, 0, x_99); -lean_ctor_set(x_102, 1, x_100); -return x_102; -} -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -lean_dec(x_60); -lean_dec(x_59); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_103 = lean_ctor_get(x_61, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_61, 1); -lean_inc(x_104); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_105 = x_61; -} else { - lean_dec_ref(x_61); - 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; -} -} -} -} -} -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -lean_inc(x_3); -x_7 = l_Lean_Meta_getMVarDecl(x_3, x_4, x_5); -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -x_10 = lean_ctor_get(x_8, 2); -lean_inc(x_10); -lean_dec(x_8); -lean_inc(x_4); -x_11 = l_Lean_Meta_whnfD(x_10, x_4, x_9); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = l_Lean_Expr_getAppFn___main(x_12); -if (lean_obj_tag(x_14) == 4) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = lean_environment_find(x_6, x_15); -if (lean_obj_tag(x_17) == 0) -{ lean_object* x_18; +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); lean_dec(x_16); -lean_dec(x_3); +if (lean_obj_tag(x_18) == 5) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_11); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +lean_dec(x_18); +x_20 = lean_box(0); +x_21 = lean_ctor_get(x_19, 4); +lean_inc(x_21); +x_22 = l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__expandAlt___spec__1(x_1, x_2, x_15, x_19, x_20, x_21, x_3, x_12); +lean_dec(x_19); lean_dec(x_2); -lean_dec(x_1); -x_18 = l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg(x_12, x_4, x_13); -lean_dec(x_4); -return x_18; +return x_22; } else { -lean_object* x_19; -x_19 = lean_ctor_get(x_17, 0); -lean_inc(x_19); -lean_dec(x_17); -if (lean_obj_tag(x_19) == 5) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -lean_dec(x_12); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -lean_dec(x_19); -x_21 = lean_box(0); -x_22 = lean_ctor_get(x_20, 4); -lean_inc(x_22); -x_23 = l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt___spec__1(x_1, x_2, x_3, x_16, x_20, x_21, x_22, x_4, x_13); -lean_dec(x_20); +lean_object* x_23; +lean_dec(x_18); +lean_dec(x_15); +lean_dec(x_2); +lean_dec(x_1); +x_23 = l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg(x_11, x_3, x_12); lean_dec(x_3); return x_23; } +} +} else { lean_object* x_24; -lean_dec(x_19); -lean_dec(x_16); -lean_dec(x_3); +lean_dec(x_13); +lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_24 = l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg(x_12, x_4, x_13); -lean_dec(x_4); +x_24 = l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg(x_11, x_3, x_12); +lean_dec(x_3); return x_24; } } -} else { -lean_object* x_25; -lean_dec(x_14); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_25 = l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg(x_12, x_4, x_13); -lean_dec(x_4); -return x_25; -} -} -else -{ -uint8_t x_26; -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_26 = !lean_is_exclusive(x_11); -if (x_26 == 0) -{ -return x_11; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_11, 0); -x_28 = lean_ctor_get(x_11, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_11); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -} -else -{ -uint8_t x_30; -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_30 = !lean_is_exclusive(x_7); -if (x_30 == 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_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; -} -} -} -} -lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +uint8_t x_25; lean_dec(x_5); lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_25 = !lean_is_exclusive(x_10); +if (x_25 == 0) +{ return x_10; } +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_10, 0); +x_27 = lean_ctor_get(x_10, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_10); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; } -lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +} +} +else +{ +uint8_t x_29; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_29 = !lean_is_exclusive(x_6); +if (x_29 == 0) +{ +return x_6; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_6, 0); +x_31 = lean_ctor_get(x_6, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_6); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; +} +} +} +} +lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__expandAlt___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_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_27__expandAlt___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_4); +lean_dec(x_2); +return x_9; +} +} +lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -14564,7 +14398,7 @@ lean_dec(x_2); x_21 = !lean_is_exclusive(x_6); if (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_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; x_22 = lean_ctor_get(x_6, 3); lean_dec(x_22); x_23 = lean_ctor_get(x_7, 1); @@ -14572,205 +14406,201 @@ lean_inc(x_23); lean_dec(x_7); x_24 = lean_ctor_get(x_19, 0); lean_inc(x_24); -x_25 = lean_ctor_get(x_19, 1); -lean_inc(x_25); lean_dec(x_19); lean_ctor_set(x_6, 3, x_23); lean_inc(x_3); -x_26 = l___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt(x_6, x_24, x_25, x_3, x_4); -if (lean_obj_tag(x_26) == 0) +x_25 = l___private_Lean_Meta_EqnCompiler_DepElim_27__expandAlt(x_6, x_24, x_3, x_4); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_26, 0); +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = l_List_append___rarg(x_27, x_1); -x_1 = x_29; +lean_dec(x_25); +x_28 = l_List_append___rarg(x_26, x_1); +x_1 = x_28; x_2 = x_20; -x_4 = x_28; +x_4 = x_27; goto _start; } else { -uint8_t x_31; +uint8_t x_30; lean_dec(x_20); lean_dec(x_3); lean_dec(x_1); -x_31 = !lean_is_exclusive(x_26); -if (x_31 == 0) +x_30 = !lean_is_exclusive(x_25); +if (x_30 == 0) { -return x_26; +return x_25; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_26, 0); -x_33 = lean_ctor_get(x_26, 1); -lean_inc(x_33); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_25, 0); +x_32 = lean_ctor_get(x_25, 1); lean_inc(x_32); -lean_dec(x_26); -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -return x_34; +lean_inc(x_31); +lean_dec(x_25); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_35 = lean_ctor_get(x_6, 0); -x_36 = lean_ctor_get(x_6, 1); -x_37 = lean_ctor_get(x_6, 2); -lean_inc(x_37); +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_34 = lean_ctor_get(x_6, 0); +x_35 = lean_ctor_get(x_6, 1); +x_36 = lean_ctor_get(x_6, 2); lean_inc(x_36); lean_inc(x_35); +lean_inc(x_34); lean_dec(x_6); -x_38 = lean_ctor_get(x_7, 1); -lean_inc(x_38); +x_37 = lean_ctor_get(x_7, 1); +lean_inc(x_37); lean_dec(x_7); -x_39 = lean_ctor_get(x_19, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_19, 1); -lean_inc(x_40); +x_38 = lean_ctor_get(x_19, 0); +lean_inc(x_38); lean_dec(x_19); -x_41 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_41, 0, x_35); -lean_ctor_set(x_41, 1, x_36); -lean_ctor_set(x_41, 2, x_37); -lean_ctor_set(x_41, 3, x_38); +x_39 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_39, 0, x_34); +lean_ctor_set(x_39, 1, x_35); +lean_ctor_set(x_39, 2, x_36); +lean_ctor_set(x_39, 3, x_37); lean_inc(x_3); -x_42 = l___private_Lean_Meta_EqnCompiler_DepElim_28__expandAlt(x_41, x_39, x_40, x_3, x_4); -if (lean_obj_tag(x_42) == 0) +x_40 = l___private_Lean_Meta_EqnCompiler_DepElim_27__expandAlt(x_39, x_38, x_3, x_4); +if (lean_obj_tag(x_40) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = l_List_append___rarg(x_43, x_1); -x_1 = x_45; +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = l_List_append___rarg(x_41, x_1); +x_1 = x_43; x_2 = x_20; -x_4 = x_44; +x_4 = x_42; goto _start; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_dec(x_20); lean_dec(x_3); lean_dec(x_1); -x_47 = lean_ctor_get(x_42, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_42, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_42)) { - lean_ctor_release(x_42, 0); - lean_ctor_release(x_42, 1); - x_49 = x_42; +x_45 = lean_ctor_get(x_40, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_40, 1); +lean_inc(x_46); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_47 = x_40; } else { - lean_dec_ref(x_42); - x_49 = lean_box(0); + lean_dec_ref(x_40); + x_47 = lean_box(0); } -if (lean_is_scalar(x_49)) { - x_50 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_47)) { + x_48 = lean_alloc_ctor(1, 2, 0); } else { - x_50 = x_49; + x_48 = x_47; } -lean_ctor_set(x_50, 0, x_47); -lean_ctor_set(x_50, 1, x_48); -return x_50; +lean_ctor_set(x_48, 0, x_45); +lean_ctor_set(x_48, 1, x_46); +return x_48; } } } case 2: { -uint8_t x_51; +uint8_t x_49; lean_dec(x_19); -x_51 = !lean_is_exclusive(x_7); -if (x_51 == 0) +x_49 = !lean_is_exclusive(x_7); +if (x_49 == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_7, 1); -lean_dec(x_52); -x_53 = lean_ctor_get(x_7, 0); -lean_dec(x_53); -x_54 = lean_ctor_get(x_2, 1); -lean_inc(x_54); +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_7, 1); +lean_dec(x_50); +x_51 = lean_ctor_get(x_7, 0); +lean_dec(x_51); +x_52 = lean_ctor_get(x_2, 1); +lean_inc(x_52); lean_dec(x_2); lean_ctor_set(x_7, 1, x_1); lean_ctor_set(x_7, 0, x_6); x_1 = x_7; -x_2 = x_54; +x_2 = x_52; goto _start; } else { -lean_object* x_56; lean_object* x_57; +lean_object* x_54; lean_object* x_55; lean_dec(x_7); -x_56 = lean_ctor_get(x_2, 1); -lean_inc(x_56); +x_54 = lean_ctor_get(x_2, 1); +lean_inc(x_54); lean_dec(x_2); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_6); -lean_ctor_set(x_57, 1, x_1); -x_1 = x_57; -x_2 = x_56; +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_6); +lean_ctor_set(x_55, 1, x_1); +x_1 = x_55; +x_2 = x_54; goto _start; } } default: { -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_dec(x_19); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_59 = lean_ctor_get(x_2, 1); -lean_inc(x_59); +x_57 = lean_ctor_get(x_2, 1); +lean_inc(x_57); lean_dec(x_2); -x_60 = l_Lean_Meta_isClassQuick___main___closed__1; -x_61 = l_unreachable_x21___rarg(x_60); +x_58 = l_Lean_Meta_isClassQuick___main___closed__1; +x_59 = l_unreachable_x21___rarg(x_58); lean_inc(x_3); -x_62 = lean_apply_2(x_61, x_3, x_4); -if (lean_obj_tag(x_62) == 0) +x_60 = lean_apply_2(x_59, x_3, x_4); +if (lean_obj_tag(x_60) == 0) { -lean_object* x_63; lean_object* x_64; -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_1 = x_63; -x_2 = x_59; -x_4 = x_64; +lean_object* x_61; lean_object* x_62; +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); +x_1 = x_61; +x_2 = x_57; +x_4 = x_62; goto _start; } else { -uint8_t x_66; -lean_dec(x_59); +uint8_t x_64; +lean_dec(x_57); lean_dec(x_3); -x_66 = !lean_is_exclusive(x_62); -if (x_66 == 0) +x_64 = !lean_is_exclusive(x_60); +if (x_64 == 0) { -return x_62; +return x_60; } else { -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_62, 0); -x_68 = lean_ctor_get(x_62, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_62); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_60, 0); +x_66 = lean_ctor_get(x_60, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_60); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; } } } @@ -14779,7 +14609,7 @@ return x_69; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___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___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___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; uint8_t x_8; @@ -14793,7 +14623,7 @@ x_10 = lean_ctor_get(x_1, 1); x_11 = lean_ctor_get(x_1, 2); x_12 = lean_ctor_get(x_1, 3); lean_inc(x_5); -x_13 = l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___spec__1(x_7, x_11, x_5, x_6); +x_13 = l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___spec__1(x_7, x_11, x_5, 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; @@ -14850,7 +14680,7 @@ lean_inc(x_23); lean_inc(x_22); lean_dec(x_1); lean_inc(x_5); -x_26 = l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___spec__1(x_7, x_24, x_5, x_6); +x_26 = l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___spec__1(x_7, x_24, x_5, x_6); 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; @@ -14901,7 +14731,7 @@ return x_35; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__1() { _start: { lean_object* x_1; @@ -14909,7 +14739,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_getEnv___boxed), 1, 0); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__2() { _start: { lean_object* x_1; @@ -14917,36 +14747,36 @@ x_1 = lean_mk_string("complete step"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__2; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__4() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__3; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___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_EqnCompiler_DepElim_29__processComplete(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_inc(x_2); -x_6 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___lambda__1___boxed), 6, 3); +x_6 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___lambda__1___boxed), 6, 3); lean_closure_set(x_6, 0, x_2); lean_closure_set(x_6, 1, x_1); lean_closure_set(x_6, 2, x_3); -x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__1; +x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__1; x_8 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); lean_closure_set(x_8, 0, x_7); lean_closure_set(x_8, 1, x_6); @@ -14963,7 +14793,7 @@ return x_11; else { lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_12 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; +x_12 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__2; x_13 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_12, x_4, x_5); x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); @@ -14984,7 +14814,7 @@ lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean x_18 = lean_ctor_get(x_13, 1); lean_inc(x_18); lean_dec(x_13); -x_19 = l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__4; +x_19 = l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__4; x_20 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_12, x_19, x_4, x_18); x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); @@ -14995,25 +14825,25 @@ return x_22; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___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___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___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___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_4); return x_7; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___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_Lean_Meta_EqnCompiler_DepElim_28__processComplete___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_Lean_Meta_EqnCompiler_DepElim_29__processComplete(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); return x_6; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__collectValues___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -15049,7 +14879,7 @@ lean_object* x_8; lean_object* x_9; uint8_t x_10; x_8 = lean_ctor_get(x_2, 1); lean_inc(x_8); lean_dec(x_2); -x_9 = lean_ctor_get(x_7, 1); +x_9 = lean_ctor_get(x_7, 0); lean_inc(x_9); lean_dec(x_7); x_10 = l_Array_contains___at_Lean_Meta_CheckAssignment_check___main___spec__2(x_1, x_9); @@ -15082,7 +14912,7 @@ goto _start; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_29__collectValues(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; @@ -15090,11 +14920,11 @@ x_2 = lean_ctor_get(x_1, 2); lean_inc(x_2); lean_dec(x_1); x_3 = l_Array_empty___closed__1; -x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues___spec__1(x_3, x_2); +x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_29__collectValues___spec__1(x_3, x_2); return x_4; } } -uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_31__isFirstPatternVar(lean_object* x_1) { +uint8_t l___private_Lean_Meta_EqnCompiler_DepElim_30__isFirstPatternVar(lean_object* x_1) { _start: { lean_object* x_2; @@ -15124,17 +14954,17 @@ return x_6; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_31__isFirstPatternVar___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_30__isFirstPatternVar___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_31__isFirstPatternVar(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_30__isFirstPatternVar(x_1); lean_dec(x_1); x_3 = lean_box(x_2); return x_3; } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -15152,7 +14982,7 @@ if (x_4 == 0) lean_object* x_5; lean_object* x_6; uint8_t x_7; x_5 = lean_ctor_get(x_1, 0); x_6 = lean_ctor_get(x_1, 1); -x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_31__isFirstPatternVar(x_5); +x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_30__isFirstPatternVar(x_5); if (x_7 == 0) { lean_free_object(x_1); @@ -15180,7 +15010,7 @@ x_11 = lean_ctor_get(x_1, 1); lean_inc(x_11); lean_inc(x_10); lean_dec(x_1); -x_12 = l___private_Lean_Meta_EqnCompiler_DepElim_31__isFirstPatternVar(x_10); +x_12 = l___private_Lean_Meta_EqnCompiler_DepElim_30__isFirstPatternVar(x_10); if (x_12 == 0) { lean_dec(x_10); @@ -15201,7 +15031,7 @@ goto _start; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__2(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_5) == 0) @@ -15221,7 +15051,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_o x_8 = lean_ctor_get(x_5, 0); x_9 = lean_ctor_get(x_5, 1); lean_inc(x_1); -x_10 = l___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues(x_1); +x_10 = l___private_Lean_Meta_EqnCompiler_DepElim_29__collectValues(x_1); x_11 = l_Lean_Expr_fvarId_x21(x_2); x_12 = lean_array_fget(x_10, x_3); lean_dec(x_10); @@ -15230,7 +15060,7 @@ lean_ctor_set(x_13, 0, x_12); x_14 = l_Lean_Meta_DepElim_Example_replaceFVarId___main(x_11, x_13, x_8); lean_dec(x_13); lean_dec(x_11); -x_15 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__2(x_1, x_2, x_3, lean_box(0), x_9); +x_15 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__2(x_1, x_2, x_3, lean_box(0), x_9); lean_ctor_set(x_5, 1, x_15); lean_ctor_set(x_5, 0, x_14); return x_5; @@ -15244,7 +15074,7 @@ lean_inc(x_17); lean_inc(x_16); lean_dec(x_5); lean_inc(x_1); -x_18 = l___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues(x_1); +x_18 = l___private_Lean_Meta_EqnCompiler_DepElim_29__collectValues(x_1); x_19 = l_Lean_Expr_fvarId_x21(x_2); x_20 = lean_array_fget(x_18, x_3); lean_dec(x_18); @@ -15253,7 +15083,7 @@ lean_ctor_set(x_21, 0, x_20); x_22 = l_Lean_Meta_DepElim_Example_replaceFVarId___main(x_19, x_21, x_16); lean_dec(x_21); lean_dec(x_19); -x_23 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__2(x_1, x_2, x_3, lean_box(0), x_17); +x_23 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__2(x_1, x_2, x_3, lean_box(0), x_17); x_24 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_24, 0, x_22); lean_ctor_set(x_24, 1, x_23); @@ -15262,7 +15092,7 @@ return x_24; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -15287,7 +15117,7 @@ lean_inc(x_10); lean_dec(x_9); x_11 = l_Lean_Meta_DepElim_Example_applyFVarSubst___main(x_10, x_6); lean_dec(x_10); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3(x_1, x_2, x_7); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__3(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_12); lean_ctor_set(x_3, 0, x_11); return x_3; @@ -15307,7 +15137,7 @@ lean_inc(x_17); lean_dec(x_16); x_18 = l_Lean_Meta_DepElim_Example_applyFVarSubst___main(x_17, x_13); lean_dec(x_17); -x_19 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3(x_1, x_2, x_14); +x_19 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__3(x_1, x_2, x_14); x_20 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); @@ -15316,7 +15146,7 @@ return x_20; } } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -15372,7 +15202,7 @@ lean_object* x_14; lean_object* x_15; uint8_t x_16; x_14 = lean_ctor_get(x_2, 1); lean_inc(x_14); lean_dec(x_2); -x_15 = lean_ctor_get(x_10, 1); +x_15 = lean_ctor_get(x_10, 0); lean_inc(x_15); lean_dec(x_10); x_16 = lean_expr_eqv(x_15, x_1); @@ -15434,7 +15264,7 @@ lean_object* x_25; lean_object* x_26; uint8_t x_27; x_25 = lean_ctor_get(x_2, 1); lean_inc(x_25); lean_dec(x_2); -x_26 = lean_ctor_get(x_21, 1); +x_26 = lean_ctor_get(x_21, 0); lean_inc(x_26); lean_dec(x_21); x_27 = lean_expr_eqv(x_26, x_1); @@ -15473,7 +15303,7 @@ goto _start; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -15507,7 +15337,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__5(x_1, x_9, x_3, x_12); +x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__5(x_1, x_9, x_3, x_12); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -15608,7 +15438,7 @@ lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); -x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__5(x_1, x_28, x_3, x_31); +x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__5(x_1, x_28, x_3, x_31); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; @@ -15693,7 +15523,7 @@ return x_45; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -15792,7 +15622,7 @@ lean_dec(x_40); x_41 = lean_ctor_get(x_25, 1); lean_inc(x_41); lean_dec(x_25); -x_42 = lean_ctor_get(x_35, 1); +x_42 = lean_ctor_get(x_35, 0); lean_inc(x_42); lean_dec(x_35); lean_inc(x_1); @@ -15804,7 +15634,7 @@ lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean x_44 = lean_ctor_get(x_43, 1); lean_inc(x_44); lean_dec(x_43); -x_45 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_41, x_3, x_44); +x_45 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__1(x_41, x_3, x_44); x_46 = lean_ctor_get(x_45, 0); lean_inc(x_46); x_47 = lean_ctor_get(x_45, 1); @@ -15816,7 +15646,7 @@ lean_inc(x_49); x_50 = lean_ctor_get(x_48, 1); lean_inc(x_50); lean_dec(x_48); -x_51 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_39, x_42); +x_51 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(x_39, x_42); lean_dec(x_42); lean_ctor_set(x_7, 3, x_46); lean_ctor_set(x_7, 2, x_51); @@ -15871,7 +15701,7 @@ lean_dec(x_7); x_59 = lean_ctor_get(x_25, 1); lean_inc(x_59); lean_dec(x_25); -x_60 = lean_ctor_get(x_35, 1); +x_60 = lean_ctor_get(x_35, 0); lean_inc(x_60); lean_dec(x_35); lean_inc(x_1); @@ -15883,7 +15713,7 @@ lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean x_62 = lean_ctor_get(x_61, 1); lean_inc(x_62); lean_dec(x_61); -x_63 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_59, x_3, x_62); +x_63 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__1(x_59, x_3, x_62); x_64 = lean_ctor_get(x_63, 0); lean_inc(x_64); x_65 = lean_ctor_get(x_63, 1); @@ -15895,7 +15725,7 @@ lean_inc(x_67); x_68 = lean_ctor_get(x_66, 1); lean_inc(x_68); lean_dec(x_66); -x_69 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_58, x_60); +x_69 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(x_58, x_60); lean_dec(x_60); x_70 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_70, 0, x_56); @@ -16036,7 +15866,7 @@ return x_91; block_24: { lean_object* x_12; -x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__6(x_1, x_8, x_3, x_11); +x_12 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__6(x_1, x_8, x_3, x_11); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -16104,7 +15934,7 @@ return x_23; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__7(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -16123,7 +15953,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = l_Lean_Meta_FVarSubst_apply(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7(x_1, x_6); +x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__7(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -16137,7 +15967,7 @@ lean_inc(x_10); lean_inc(x_9); lean_dec(x_2); x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7(x_1, x_10); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__7(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); @@ -16146,7 +15976,7 @@ return x_13; } } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___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* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___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) { _start: { lean_object* x_14; uint8_t x_15; @@ -16175,9 +16005,9 @@ lean_inc(x_24); x_25 = lean_ctor_get(x_2, 3); lean_inc(x_25); x_26 = lean_box(0); -x_27 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__1(x_24, x_26); +x_27 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__1(x_24, x_26); lean_inc(x_12); -x_28 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(x_27, x_12, x_13); +x_28 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__8(x_27, x_12, x_13); if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; @@ -16286,14 +16116,14 @@ lean_inc(x_48); x_49 = lean_ctor_get(x_2, 3); lean_inc(x_49); lean_inc(x_2); -x_50 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__2(x_2, x_4, x_19, lean_box(0), x_49); -x_51 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3(x_8, x_19, x_50); +x_50 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__2(x_2, x_4, x_19, lean_box(0), x_49); +x_51 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__3(x_8, x_19, x_50); lean_dec(x_19); x_52 = lean_box(0); -x_53 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__4(x_45, x_48, x_52); +x_53 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__4(x_45, x_48, x_52); lean_inc(x_12); lean_inc(x_47); -x_54 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__5(x_47, x_53, x_12, x_13); +x_54 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__5(x_47, x_53, x_12, x_13); if (lean_obj_tag(x_54) == 0) { lean_object* x_55; lean_object* x_56; lean_object* x_57; @@ -16303,7 +16133,7 @@ x_56 = lean_ctor_get(x_54, 1); lean_inc(x_56); lean_dec(x_54); lean_inc(x_12); -x_57 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(x_55, x_12, x_56); +x_57 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__8(x_55, x_12, x_56); if (lean_obj_tag(x_57) == 0) { lean_object* x_58; lean_object* x_59; lean_object* x_60; @@ -16313,7 +16143,7 @@ x_59 = lean_ctor_get(x_57, 1); lean_inc(x_59); lean_dec(x_57); lean_inc(x_12); -x_60 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__6(x_45, x_58, x_12, x_59); +x_60 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__6(x_45, x_58, x_12, x_59); 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; @@ -16323,7 +16153,7 @@ x_62 = lean_ctor_get(x_60, 1); lean_inc(x_62); lean_dec(x_60); lean_inc(x_5); -x_63 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7(x_47, x_5); +x_63 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__7(x_47, x_5); lean_dec(x_47); x_64 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_64, 0, x_46); @@ -16493,7 +16323,7 @@ return x_85; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__1() { _start: { lean_object* x_1; @@ -16501,27 +16331,27 @@ x_1 = lean_mk_string("value step"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___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_EqnCompiler_DepElim_32__processValue(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_27; uint8_t x_28; @@ -16539,7 +16369,7 @@ goto block_26; else { lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_29 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; +x_29 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__2; x_30 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_29, x_4, x_5); x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); @@ -16560,7 +16390,7 @@ lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; x_34 = lean_ctor_get(x_30, 1); lean_inc(x_34); lean_dec(x_30); -x_35 = l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__3; +x_35 = l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__3; x_36 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_29, x_35, x_4, x_34); x_37 = lean_ctor_get(x_36, 1); lean_inc(x_37); @@ -16590,7 +16420,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_6, 1); lean_inc(x_12); lean_inc(x_2); -x_13 = l___private_Lean_Meta_EqnCompiler_DepElim_30__collectValues(x_2); +x_13 = l___private_Lean_Meta_EqnCompiler_DepElim_29__collectValues(x_2); x_14 = lean_ctor_get(x_2, 0); lean_inc(x_14); x_15 = l_Lean_Expr_fvarId_x21(x_11); @@ -16607,7 +16437,7 @@ lean_inc(x_19); lean_dec(x_17); x_20 = lean_array_get_size(x_18); lean_inc(x_20); -x_21 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__8(x_1, x_2, x_6, x_11, x_12, x_13, x_15, x_18, x_20, x_20, x_3, x_4, x_19); +x_21 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__8(x_1, x_2, x_6, x_11, x_12, x_13, x_15, x_18, x_20, x_20, x_3, x_4, x_19); lean_dec(x_20); lean_dec(x_18); lean_dec(x_15); @@ -16650,49 +16480,49 @@ return x_25; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___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* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__2(x_1, x_2, x_3, x_4, x_5); +x_6 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__2(x_1, x_2, x_3, x_4, x_5); lean_dec(x_3); lean_dec(x_2); return x_6; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__3(x_1, x_2, x_3); +x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__3(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__4(x_1, x_2, x_3); +x_4 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__4(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__7___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__7(x_1, x_2); +x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__7(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___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* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___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) { _start: { lean_object* x_14; -x_14 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___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 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___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); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -16701,7 +16531,7 @@ lean_dec(x_4); return x_14; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__collectArraySizes___spec__1(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -16728,7 +16558,7 @@ if (lean_obj_tag(x_7) == 4) { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; x_8 = lean_ctor_get(x_2, 1); -x_9 = lean_ctor_get(x_7, 2); +x_9 = lean_ctor_get(x_7, 1); x_10 = lean_unsigned_to_nat(0u); x_11 = l_List_lengthAux___main___rarg(x_9, x_10); x_12 = l_Array_contains___at___private_Lean_Meta_FunInfo_3__collectDepsAux___main___spec__2(x_1, x_11); @@ -16758,35 +16588,35 @@ goto _start; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_32__collectArraySizes(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = lean_ctor_get(x_1, 2); x_3 = l_Array_empty___closed__1; -x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___spec__1(x_3, x_2); +x_4 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__collectArraySizes___spec__1(x_3, x_2); return x_4; } } -lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__collectArraySizes___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___spec__1(x_1, x_2); +x_3 = l_List_foldl___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__collectArraySizes___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes___boxed(lean_object* x_1) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_32__collectArraySizes___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes(x_1); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_32__collectArraySizes(x_1); lean_dec(x_1); return x_2; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__1(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__1(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -16805,7 +16635,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_mkFVar(x_4); -x_7 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__1(x_5); +x_7 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__1(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -16819,7 +16649,7 @@ lean_inc(x_9); lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_mkFVar(x_8); -x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__1(x_9); +x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__1(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); @@ -16828,7 +16658,7 @@ return x_12; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -16847,7 +16677,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_5 = lean_ctor_get(x_2, 0); x_6 = lean_ctor_get(x_2, 1); x_7 = l_Lean_Meta_FVarSubst_apply(x_1, x_5); -x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2(x_1, x_6); +x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__2(x_1, x_6); lean_ctor_set(x_2, 1, x_8); lean_ctor_set(x_2, 0, x_7); return x_2; @@ -16861,7 +16691,7 @@ lean_inc(x_10); lean_inc(x_9); lean_dec(x_2); x_11 = l_Lean_Meta_FVarSubst_apply(x_1, x_9); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2(x_1, x_10); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__2(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); @@ -16870,7 +16700,7 @@ return x_13; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__3(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__3(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -16890,7 +16720,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_6, 0, x_4); -x_7 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__3(x_5); +x_7 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__3(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -16905,7 +16735,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_10, 0, x_8); -x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__3(x_9); +x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__3(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); @@ -16914,7 +16744,7 @@ return x_12; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_4) == 0) @@ -16940,13 +16770,13 @@ lean_inc(x_12); lean_dec(x_11); x_13 = l_Array_toList___rarg(x_12); lean_dec(x_12); -x_14 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__3(x_13); +x_14 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__3(x_13); x_15 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_15, 0, x_14); x_16 = l_Lean_Meta_DepElim_Example_replaceFVarId___main(x_9, x_15, x_7); lean_dec(x_15); lean_dec(x_9); -x_17 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4(x_1, x_2, x_3, x_8); +x_17 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__4(x_1, x_2, x_3, x_8); lean_ctor_set(x_4, 1, x_17); lean_ctor_set(x_4, 0, x_16); return x_4; @@ -16967,13 +16797,13 @@ lean_inc(x_23); lean_dec(x_22); x_24 = l_Array_toList___rarg(x_23); lean_dec(x_23); -x_25 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__3(x_24); +x_25 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__3(x_24); x_26 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_26, 0, x_25); x_27 = l_Lean_Meta_DepElim_Example_replaceFVarId___main(x_20, x_26, x_18); lean_dec(x_26); lean_dec(x_20); -x_28 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4(x_1, x_2, x_3, x_19); +x_28 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__4(x_1, x_2, x_3, x_19); x_29 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_29, 0, x_27); lean_ctor_set(x_29, 1, x_28); @@ -16982,7 +16812,7 @@ return x_29; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -17007,7 +16837,7 @@ lean_inc(x_10); lean_dec(x_9); x_11 = l_Lean_Meta_DepElim_Example_applyFVarSubst___main(x_10, x_6); lean_dec(x_10); -x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5(x_1, x_2, x_7); +x_12 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__5(x_1, x_2, x_7); lean_ctor_set(x_3, 1, x_12); lean_ctor_set(x_3, 0, x_11); return x_3; @@ -17027,7 +16857,7 @@ lean_inc(x_17); lean_dec(x_16); x_18 = l_Lean_Meta_DepElim_Example_applyFVarSubst___main(x_17, x_13); lean_dec(x_17); -x_19 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5(x_1, x_2, x_14); +x_19 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__5(x_1, x_2, x_14); x_20 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); @@ -17036,7 +16866,7 @@ return x_20; } } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_2) == 0) @@ -17092,7 +16922,7 @@ lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint x_14 = lean_ctor_get(x_2, 1); lean_inc(x_14); lean_dec(x_2); -x_15 = lean_ctor_get(x_10, 2); +x_15 = lean_ctor_get(x_10, 1); lean_inc(x_15); lean_dec(x_10); x_16 = lean_unsigned_to_nat(0u); @@ -17157,7 +16987,7 @@ lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint x_27 = lean_ctor_get(x_2, 1); lean_inc(x_27); lean_dec(x_2); -x_28 = lean_ctor_get(x_23, 2); +x_28 = lean_ctor_get(x_23, 1); lean_inc(x_28); lean_dec(x_23); x_29 = lean_unsigned_to_nat(0u); @@ -17199,7 +17029,7 @@ goto _start; } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_2) == 0) @@ -17233,7 +17063,7 @@ lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); lean_dec(x_10); -x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__7(x_1, x_9, x_3, x_12); +x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__7(x_1, x_9, x_3, x_12); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -17334,7 +17164,7 @@ lean_inc(x_30); x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); -x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__7(x_1, x_28, x_3, x_31); +x_32 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__7(x_1, x_28, x_3, x_31); if (lean_obj_tag(x_32) == 0) { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; @@ -17419,7 +17249,7 @@ return x_45; } } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___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* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___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; uint8_t x_8; @@ -17462,7 +17292,7 @@ return x_18; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__9(lean_object* x_1) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__9(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -17482,7 +17312,7 @@ x_4 = lean_ctor_get(x_1, 0); x_5 = lean_ctor_get(x_1, 1); x_6 = l_Lean_Expr_mvarId_x21(x_4); lean_dec(x_4); -x_7 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__9(x_5); +x_7 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__9(x_5); lean_ctor_set(x_1, 1, x_7); lean_ctor_set(x_1, 0, x_6); return x_1; @@ -17497,7 +17327,7 @@ lean_inc(x_8); lean_dec(x_1); x_10 = l_Lean_Expr_mvarId_x21(x_8); lean_dec(x_8); -x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__9(x_9); +x_11 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__9(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); @@ -17506,60 +17336,55 @@ return x_12; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__10(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__10(lean_object* x_1) { _start: { -if (lean_obj_tag(x_2) == 0) +if (lean_obj_tag(x_1) == 0) { -lean_object* x_3; -lean_dec(x_1); -x_3 = lean_box(0); -return x_3; -} -else -{ -uint8_t x_4; -x_4 = !lean_is_exclusive(x_2); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_5 = lean_ctor_get(x_2, 0); -x_6 = lean_ctor_get(x_2, 1); -x_7 = l_Lean_Expr_mvarId_x21(x_5); -lean_dec(x_5); -lean_inc(x_1); -x_8 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_8, 0, x_1); -lean_ctor_set(x_8, 1, x_7); -x_9 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__10(x_1, x_6); -lean_ctor_set(x_2, 1, x_9); -lean_ctor_set(x_2, 0, x_8); +lean_object* x_2; +x_2 = lean_box(0); return x_2; } else { -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_ctor_get(x_2, 0); -x_11 = lean_ctor_get(x_2, 1); -lean_inc(x_11); +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = l_Lean_Expr_mvarId_x21(x_4); +lean_dec(x_4); +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_6); +x_8 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__10(x_5); +lean_ctor_set(x_1, 1, x_8); +lean_ctor_set(x_1, 0, x_7); +return x_1; +} +else +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_9 = lean_ctor_get(x_1, 0); +x_10 = lean_ctor_get(x_1, 1); lean_inc(x_10); -lean_dec(x_2); -x_12 = l_Lean_Expr_mvarId_x21(x_10); -lean_dec(x_10); -lean_inc(x_1); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_1); -lean_ctor_set(x_13, 1, x_12); -x_14 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__10(x_1, x_11); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; +lean_inc(x_9); +lean_dec(x_1); +x_11 = l_Lean_Expr_mvarId_x21(x_9); +lean_dec(x_9); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_11); +x_13 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__10(x_10); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; } } } } -lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__11(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_3) == 0) @@ -17651,7 +17476,7 @@ uint8_t x_37; x_37 = !lean_is_exclusive(x_8); if (x_37 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; x_38 = lean_ctor_get(x_8, 0); x_39 = lean_ctor_get(x_8, 1); x_40 = lean_ctor_get(x_8, 2); @@ -17662,80 +17487,77 @@ lean_inc(x_42); lean_dec(x_26); x_43 = lean_ctor_get(x_36, 0); lean_inc(x_43); -x_44 = lean_ctor_get(x_36, 1); -lean_inc(x_44); lean_dec(x_36); lean_inc(x_4); lean_inc(x_1); -x_45 = l_Lean_Meta_getArrayArgType(x_1, x_4, x_5); -if (lean_obj_tag(x_45) == 0) +x_44 = l_Lean_Meta_getArrayArgType(x_1, x_4, x_5); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_46 = lean_ctor_get(x_45, 0); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_44, 1); lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -x_48 = lean_box(0); +lean_dec(x_44); +x_47 = lean_box(0); lean_inc(x_4); lean_inc(x_2); -lean_inc(x_46); -x_49 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__8(x_46, x_2, x_2, x_48, x_4, x_47); -x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_45); +x_48 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__8(x_45, x_2, x_2, x_47, x_4, x_46); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); lean_inc(x_50); -x_51 = lean_ctor_get(x_49, 1); -lean_inc(x_51); -lean_dec(x_49); +lean_dec(x_48); lean_inc(x_4); -lean_inc(x_50); -x_52 = l_Lean_Meta_mkArrayLit(x_46, x_50, x_4, x_51); -if (lean_obj_tag(x_52) == 0) +lean_inc(x_49); +x_51 = l_Lean_Meta_mkArrayLit(x_45, x_49, x_4, x_50); +if (lean_obj_tag(x_51) == 0) { -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_52, 0); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_51, 1); lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -lean_inc(x_44); -x_55 = l_Lean_Meta_assignExprMVar(x_44, x_53, x_4, x_54); -if (lean_obj_tag(x_55) == 0) +lean_dec(x_51); +lean_inc(x_43); +x_54 = l_Lean_Meta_assignExprMVar(x_43, x_52, x_4, x_53); +if (lean_obj_tag(x_54) == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_56 = lean_ctor_get(x_55, 1); -lean_inc(x_56); -lean_dec(x_55); -x_57 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_42, x_4, x_56); -x_58 = lean_ctor_get(x_57, 0); +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__1(x_42, x_4, x_55); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = l_Lean_Meta_instantiateMVars(x_39, x_4, x_59); -x_61 = lean_ctor_get(x_60, 0); +lean_dec(x_56); +x_59 = l_Lean_Meta_instantiateMVars(x_39, x_4, x_58); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_63 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_40, x_44); -lean_dec(x_44); -lean_inc(x_50); -x_64 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__9(x_50); -x_65 = l_List_append___rarg(x_64, x_63); -x_66 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__10(x_43, x_50); -x_67 = l_List_append___rarg(x_66, x_58); -lean_ctor_set(x_8, 3, x_67); -lean_ctor_set(x_8, 2, x_65); -lean_ctor_set(x_8, 1, x_61); +lean_dec(x_59); +x_62 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(x_40, x_43); +lean_dec(x_43); +lean_inc(x_49); +x_63 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__9(x_49); +x_64 = l_List_append___rarg(x_63, x_62); +x_65 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__10(x_49); +x_66 = l_List_append___rarg(x_65, x_57); +lean_ctor_set(x_8, 3, x_66); +lean_ctor_set(x_8, 2, x_64); +lean_ctor_set(x_8, 1, x_60); x_11 = x_8; -x_12 = x_62; +x_12 = x_61; goto block_25; } else { -uint8_t x_68; -lean_dec(x_50); -lean_dec(x_44); +uint8_t x_67; +lean_dec(x_49); lean_dec(x_43); lean_dec(x_42); lean_free_object(x_8); @@ -17747,31 +17569,30 @@ lean_dec(x_9); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_68 = !lean_is_exclusive(x_55); -if (x_68 == 0) +x_67 = !lean_is_exclusive(x_54); +if (x_67 == 0) { -return x_55; +return x_54; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_55, 0); -x_70 = lean_ctor_get(x_55, 1); -lean_inc(x_70); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_54, 0); +x_69 = lean_ctor_get(x_54, 1); lean_inc(x_69); -lean_dec(x_55); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; +lean_inc(x_68); +lean_dec(x_54); +x_70 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +return x_70; } } } else { -uint8_t x_72; -lean_dec(x_50); -lean_dec(x_44); +uint8_t x_71; +lean_dec(x_49); lean_dec(x_43); lean_dec(x_42); lean_free_object(x_8); @@ -17783,30 +17604,29 @@ lean_dec(x_9); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_72 = !lean_is_exclusive(x_52); -if (x_72 == 0) +x_71 = !lean_is_exclusive(x_51); +if (x_71 == 0) { -return x_52; +return x_51; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_52, 0); -x_74 = lean_ctor_get(x_52, 1); -lean_inc(x_74); +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_51, 0); +x_73 = lean_ctor_get(x_51, 1); lean_inc(x_73); -lean_dec(x_52); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +lean_inc(x_72); +lean_dec(x_51); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +return x_74; } } } else { -uint8_t x_76; -lean_dec(x_44); +uint8_t x_75; lean_dec(x_43); lean_dec(x_42); lean_free_object(x_8); @@ -17818,318 +17638,313 @@ lean_dec(x_9); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_76 = !lean_is_exclusive(x_45); -if (x_76 == 0) +x_75 = !lean_is_exclusive(x_44); +if (x_75 == 0) { -return x_45; +return x_44; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_45, 0); -x_78 = lean_ctor_get(x_45, 1); -lean_inc(x_78); +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_44, 0); +x_77 = lean_ctor_get(x_44, 1); lean_inc(x_77); -lean_dec(x_45); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -return x_79; +lean_inc(x_76); +lean_dec(x_44); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; } } } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_80 = lean_ctor_get(x_8, 0); -x_81 = lean_ctor_get(x_8, 1); -x_82 = lean_ctor_get(x_8, 2); -lean_inc(x_82); +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_79 = lean_ctor_get(x_8, 0); +x_80 = lean_ctor_get(x_8, 1); +x_81 = lean_ctor_get(x_8, 2); lean_inc(x_81); lean_inc(x_80); +lean_inc(x_79); lean_dec(x_8); -x_83 = lean_ctor_get(x_26, 1); -lean_inc(x_83); +x_82 = lean_ctor_get(x_26, 1); +lean_inc(x_82); lean_dec(x_26); -x_84 = lean_ctor_get(x_36, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_36, 1); -lean_inc(x_85); +x_83 = lean_ctor_get(x_36, 0); +lean_inc(x_83); lean_dec(x_36); lean_inc(x_4); lean_inc(x_1); -x_86 = l_Lean_Meta_getArrayArgType(x_1, x_4, x_5); -if (lean_obj_tag(x_86) == 0) +x_84 = l_Lean_Meta_getArrayArgType(x_1, x_4, x_5); +if (lean_obj_tag(x_84) == 0) { -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; -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); -lean_dec(x_86); -x_89 = lean_box(0); +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = lean_box(0); lean_inc(x_4); lean_inc(x_2); -lean_inc(x_87); -x_90 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__8(x_87, x_2, x_2, x_89, x_4, x_88); -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_90, 1); -lean_inc(x_92); -lean_dec(x_90); -lean_inc(x_4); -lean_inc(x_91); -x_93 = l_Lean_Meta_mkArrayLit(x_87, x_91, x_4, x_92); -if (lean_obj_tag(x_93) == 0) -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); -lean_inc(x_95); -lean_dec(x_93); lean_inc(x_85); -x_96 = l_Lean_Meta_assignExprMVar(x_85, x_94, x_4, x_95); -if (lean_obj_tag(x_96) == 0) +x_88 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__8(x_85, x_2, x_2, x_87, x_4, x_86); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec(x_88); +lean_inc(x_4); +lean_inc(x_89); +x_91 = l_Lean_Meta_mkArrayLit(x_85, x_89, x_4, x_90); +if (lean_obj_tag(x_91) == 0) { -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_97 = lean_ctor_get(x_96, 1); +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +lean_dec(x_91); +lean_inc(x_83); +x_94 = l_Lean_Meta_assignExprMVar(x_83, x_92, x_4, x_93); +if (lean_obj_tag(x_94) == 0) +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_95 = lean_ctor_get(x_94, 1); +lean_inc(x_95); +lean_dec(x_94); +x_96 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___spec__1(x_82, x_4, x_95); +x_97 = lean_ctor_get(x_96, 0); lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); lean_dec(x_96); -x_98 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___spec__1(x_83, x_4, x_97); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); +x_99 = l_Lean_Meta_instantiateMVars(x_80, x_4, x_98); +x_100 = lean_ctor_get(x_99, 0); lean_inc(x_100); -lean_dec(x_98); -x_101 = l_Lean_Meta_instantiateMVars(x_81, x_4, x_100); -x_102 = lean_ctor_get(x_101, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_101, 1); -lean_inc(x_103); -lean_dec(x_101); -x_104 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___spec__1(x_82, x_85); -lean_dec(x_85); -lean_inc(x_91); -x_105 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__9(x_91); -x_106 = l_List_append___rarg(x_105, x_104); -x_107 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__10(x_84, x_91); -x_108 = l_List_append___rarg(x_107, x_99); -x_109 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_109, 0, x_80); -lean_ctor_set(x_109, 1, x_102); -lean_ctor_set(x_109, 2, x_106); -lean_ctor_set(x_109, 3, x_108); -x_11 = x_109; -x_12 = x_103; +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec(x_99); +x_102 = l_List_erase___main___at___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___spec__1(x_81, x_83); +lean_dec(x_83); +lean_inc(x_89); +x_103 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__9(x_89); +x_104 = l_List_append___rarg(x_103, x_102); +x_105 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__10(x_89); +x_106 = l_List_append___rarg(x_105, x_97); +x_107 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_107, 0, x_79); +lean_ctor_set(x_107, 1, x_100); +lean_ctor_set(x_107, 2, x_104); +lean_ctor_set(x_107, 3, x_106); +x_11 = x_107; +x_12 = x_101; goto block_25; } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -lean_dec(x_91); -lean_dec(x_85); -lean_dec(x_84); +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_dec(x_89); lean_dec(x_83); lean_dec(x_82); lean_dec(x_81); lean_dec(x_80); +lean_dec(x_79); lean_dec(x_10); lean_dec(x_9); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_110 = lean_ctor_get(x_96, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_96, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - x_112 = x_96; +x_108 = lean_ctor_get(x_94, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_94, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_110 = x_94; } else { - lean_dec_ref(x_96); - x_112 = lean_box(0); + lean_dec_ref(x_94); + x_110 = lean_box(0); } -if (lean_is_scalar(x_112)) { - x_113 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_110)) { + x_111 = lean_alloc_ctor(1, 2, 0); } else { - x_113 = x_112; + x_111 = x_110; } -lean_ctor_set(x_113, 0, x_110); -lean_ctor_set(x_113, 1, x_111); -return x_113; +lean_ctor_set(x_111, 0, x_108); +lean_ctor_set(x_111, 1, x_109); +return x_111; } } else { -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -lean_dec(x_91); -lean_dec(x_85); -lean_dec(x_84); +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +lean_dec(x_89); lean_dec(x_83); lean_dec(x_82); lean_dec(x_81); lean_dec(x_80); +lean_dec(x_79); lean_dec(x_10); lean_dec(x_9); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_114 = lean_ctor_get(x_93, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_93, 1); -lean_inc(x_115); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_116 = x_93; +x_112 = lean_ctor_get(x_91, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_91, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_114 = x_91; } else { - lean_dec_ref(x_93); - x_116 = lean_box(0); + lean_dec_ref(x_91); + x_114 = lean_box(0); } -if (lean_is_scalar(x_116)) { - x_117 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(1, 2, 0); } else { - x_117 = x_116; + x_115 = x_114; } -lean_ctor_set(x_117, 0, x_114); -lean_ctor_set(x_117, 1, x_115); -return x_117; +lean_ctor_set(x_115, 0, x_112); +lean_ctor_set(x_115, 1, x_113); +return x_115; } } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -lean_dec(x_85); -lean_dec(x_84); +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_dec(x_83); lean_dec(x_82); lean_dec(x_81); lean_dec(x_80); +lean_dec(x_79); lean_dec(x_10); lean_dec(x_9); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_118 = lean_ctor_get(x_86, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_86, 1); -lean_inc(x_119); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_120 = x_86; +x_116 = lean_ctor_get(x_84, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_84, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_118 = x_84; } else { - lean_dec_ref(x_86); - x_120 = lean_box(0); + lean_dec_ref(x_84); + x_118 = lean_box(0); } -if (lean_is_scalar(x_120)) { - x_121 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(1, 2, 0); } else { - x_121 = x_120; + x_119 = x_118; } -lean_ctor_set(x_121, 0, x_118); -lean_ctor_set(x_121, 1, x_119); -return x_121; +lean_ctor_set(x_119, 0, x_116); +lean_ctor_set(x_119, 1, x_117); +return x_119; } } } case 4: { -uint8_t x_122; -x_122 = !lean_is_exclusive(x_8); -if (x_122 == 0) +uint8_t x_120; +x_120 = !lean_is_exclusive(x_8); +if (x_120 == 0) { -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_123 = lean_ctor_get(x_8, 3); -lean_dec(x_123); -x_124 = lean_ctor_get(x_26, 1); -lean_inc(x_124); +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_121 = lean_ctor_get(x_8, 3); +lean_dec(x_121); +x_122 = lean_ctor_get(x_26, 1); +lean_inc(x_122); lean_dec(x_26); -x_125 = lean_ctor_get(x_36, 2); -lean_inc(x_125); +x_123 = lean_ctor_get(x_36, 1); +lean_inc(x_123); lean_dec(x_36); -x_126 = l_List_append___rarg(x_125, x_124); -lean_ctor_set(x_8, 3, x_126); +x_124 = l_List_append___rarg(x_123, x_122); +lean_ctor_set(x_8, 3, x_124); x_11 = x_8; x_12 = x_5; goto block_25; } else { -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; -x_127 = lean_ctor_get(x_8, 0); -x_128 = lean_ctor_get(x_8, 1); -x_129 = lean_ctor_get(x_8, 2); -lean_inc(x_129); -lean_inc(x_128); +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_125 = lean_ctor_get(x_8, 0); +x_126 = lean_ctor_get(x_8, 1); +x_127 = lean_ctor_get(x_8, 2); lean_inc(x_127); +lean_inc(x_126); +lean_inc(x_125); lean_dec(x_8); -x_130 = lean_ctor_get(x_26, 1); -lean_inc(x_130); +x_128 = lean_ctor_get(x_26, 1); +lean_inc(x_128); lean_dec(x_26); -x_131 = lean_ctor_get(x_36, 2); -lean_inc(x_131); +x_129 = lean_ctor_get(x_36, 1); +lean_inc(x_129); lean_dec(x_36); -x_132 = l_List_append___rarg(x_131, x_130); -x_133 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_133, 0, x_127); -lean_ctor_set(x_133, 1, x_128); -lean_ctor_set(x_133, 2, x_129); -lean_ctor_set(x_133, 3, x_132); -x_11 = x_133; +x_130 = l_List_append___rarg(x_129, x_128); +x_131 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_131, 0, x_125); +lean_ctor_set(x_131, 1, x_126); +lean_ctor_set(x_131, 2, x_127); +lean_ctor_set(x_131, 3, x_130); +x_11 = x_131; x_12 = x_5; goto block_25; } } default: { -lean_object* x_134; lean_object* x_135; lean_object* x_136; +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_dec(x_36); lean_dec(x_26); lean_dec(x_8); -x_134 = l_Lean_Meta_isClassQuick___main___closed__1; -x_135 = l_unreachable_x21___rarg(x_134); +x_132 = l_Lean_Meta_isClassQuick___main___closed__1; +x_133 = l_unreachable_x21___rarg(x_132); lean_inc(x_4); -x_136 = lean_apply_2(x_135, x_4, x_5); -if (lean_obj_tag(x_136) == 0) +x_134 = lean_apply_2(x_133, x_4, x_5); +if (lean_obj_tag(x_134) == 0) { -lean_object* x_137; lean_object* x_138; -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_136, 1); -lean_inc(x_138); -lean_dec(x_136); -x_11 = x_137; -x_12 = x_138; +lean_object* x_135; lean_object* x_136; +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_11 = x_135; +x_12 = x_136; goto block_25; } else { -uint8_t x_139; +uint8_t x_137; lean_dec(x_10); lean_dec(x_9); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_139 = !lean_is_exclusive(x_136); -if (x_139 == 0) +x_137 = !lean_is_exclusive(x_134); +if (x_137 == 0) { -return x_136; +return x_134; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_136, 0); -x_141 = lean_ctor_get(x_136, 1); -lean_inc(x_141); -lean_inc(x_140); -lean_dec(x_136); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_140); -lean_ctor_set(x_142, 1, x_141); -return x_142; +lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_138 = lean_ctor_get(x_134, 0); +x_139 = lean_ctor_get(x_134, 1); +lean_inc(x_139); +lean_inc(x_138); +lean_dec(x_134); +x_140 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_140, 0, x_138); +lean_ctor_set(x_140, 1, x_139); +return x_140; } } } @@ -18138,7 +17953,7 @@ return x_142; block_25: { lean_object* x_13; -x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__11(x_1, x_2, x_9, x_4, x_12); +x_13 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__11(x_1, x_2, x_9, x_4, x_12); if (lean_obj_tag(x_13) == 0) { uint8_t x_14; @@ -18206,7 +18021,7 @@ return x_24; } } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___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* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___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) { _start: { lean_object* x_14; uint8_t x_15; @@ -18235,9 +18050,9 @@ lean_inc(x_24); x_25 = lean_ctor_get(x_2, 3); lean_inc(x_25); x_26 = lean_box(0); -x_27 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___spec__1(x_24, x_26); +x_27 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___spec__1(x_24, x_26); lean_inc(x_12); -x_28 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(x_27, x_12, x_13); +x_28 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__8(x_27, x_12, x_13); if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; @@ -18348,21 +18163,21 @@ lean_inc(x_49); lean_dec(x_21); x_50 = l_Array_toList___rarg(x_48); lean_dec(x_48); -x_51 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__1(x_50); +x_51 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__1(x_50); lean_inc(x_5); x_52 = l_List_append___rarg(x_51, x_5); -x_53 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2(x_49, x_52); +x_53 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__2(x_49, x_52); x_54 = lean_ctor_get(x_2, 2); lean_inc(x_54); x_55 = lean_ctor_get(x_2, 3); lean_inc(x_55); -x_56 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4(x_4, x_8, x_19, x_55); -x_57 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5(x_8, x_19, x_56); +x_56 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__4(x_4, x_8, x_19, x_55); +x_57 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__5(x_8, x_19, x_56); lean_dec(x_19); x_58 = lean_box(0); -x_59 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__6(x_46, x_54, x_58); +x_59 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__6(x_46, x_54, x_58); lean_inc(x_12); -x_60 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__7(x_49, x_59, x_12, x_13); +x_60 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__7(x_49, x_59, x_12, x_13); if (lean_obj_tag(x_60) == 0) { lean_object* x_61; lean_object* x_62; lean_object* x_63; @@ -18372,7 +18187,7 @@ x_62 = lean_ctor_get(x_60, 1); lean_inc(x_62); lean_dec(x_60); lean_inc(x_12); -x_63 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___spec__8(x_61, x_12, x_62); +x_63 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___spec__8(x_61, x_12, x_62); if (lean_obj_tag(x_63) == 0) { lean_object* x_64; lean_object* x_65; lean_object* x_66; @@ -18383,7 +18198,7 @@ lean_inc(x_65); lean_dec(x_63); lean_inc(x_12); lean_inc(x_4); -x_66 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__11(x_4, x_46, x_64, x_12, x_65); +x_66 = l_List_mapM___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__11(x_4, x_46, x_64, x_12, x_65); if (lean_obj_tag(x_66) == 0) { lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; @@ -18565,7 +18380,7 @@ return x_90; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__1() { _start: { lean_object* x_1; @@ -18573,27 +18388,27 @@ x_1 = lean_mk_string("array literal step"); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__2; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___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_EqnCompiler_DepElim_34__processArrayLit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_28; uint8_t x_29; @@ -18611,7 +18426,7 @@ goto block_27; else { lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_30 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; +x_30 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__2; x_31 = l___private_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___main___spec__2(x_30, x_4, x_5); x_32 = lean_ctor_get(x_31, 0); lean_inc(x_32); @@ -18632,7 +18447,7 @@ lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; x_35 = lean_ctor_get(x_31, 1); lean_inc(x_35); lean_dec(x_31); -x_36 = l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__3; +x_36 = l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__3; x_37 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main___spec__1(x_30, x_36, x_4, x_35); x_38 = lean_ctor_get(x_37, 1); lean_inc(x_38); @@ -18661,7 +18476,7 @@ x_11 = lean_ctor_get(x_6, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_6, 1); lean_inc(x_12); -x_13 = l___private_Lean_Meta_EqnCompiler_DepElim_33__collectArraySizes(x_2); +x_13 = l___private_Lean_Meta_EqnCompiler_DepElim_32__collectArraySizes(x_2); x_14 = lean_ctor_get(x_2, 0); lean_inc(x_14); x_15 = l_Lean_Expr_fvarId_x21(x_11); @@ -18681,7 +18496,7 @@ lean_inc(x_20); lean_dec(x_18); x_21 = lean_array_get_size(x_19); lean_inc(x_21); -x_22 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__12(x_1, x_2, x_6, x_11, x_12, x_13, x_15, x_19, x_21, x_21, x_3, x_4, x_20); +x_22 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__12(x_1, x_2, x_6, x_11, x_12, x_13, x_15, x_19, x_21, x_21, x_3, x_4, x_20); lean_dec(x_21); lean_dec(x_19); lean_dec(x_15); @@ -18723,59 +18538,59 @@ return x_26; } } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__2(x_1, x_2); +x_3 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__2(x_1, x_2); lean_dec(x_1); return x_3; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__4(x_1, x_2, x_3, x_4); +x_5 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__4(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_5; } } -lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__5(x_1, x_2, x_3); +x_4 = l_List_map___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__5(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__6(x_1, x_2, x_3); +x_4 = l_List_filterAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__6(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___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* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___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) { _start: { lean_object* x_7; -x_7 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__8(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__8(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); return x_7; } } -lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +lean_object* l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___spec__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___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 = l_Nat_foldMAux___main___at___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___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); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -18783,7 +18598,7 @@ lean_dec(x_6); return x_14; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -18807,7 +18622,7 @@ return x_9; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) { _start: { if (x_3 == 0) @@ -18862,37 +18677,37 @@ return x_15; } } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__1() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__1___boxed), 4, 1); +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___lambda__1___boxed), 4, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__2() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_tracer___closed__3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__1; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__1; x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main), 4, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main), 4, 0); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__4() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__4() { _start: { lean_object* x_1; @@ -18900,40 +18715,40 @@ x_1 = lean_mk_string("not implement yet "); return x_1; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__5() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__4; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__6() { +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__5; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__5; 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_EqnCompiler_DepElim_35__process___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { 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; uint8_t x_12; uint8_t x_13; -x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; +x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__2; lean_inc(x_1); -x_6 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__2___boxed), 5, 2); +x_6 = lean_alloc_closure((void*)(l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___lambda__2___boxed), 5, 2); lean_closure_set(x_6, 0, x_1); lean_closure_set(x_6, 1, x_5); -x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__2; +x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__2; x_8 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg), 4, 2); lean_closure_set(x_8, 0, x_7); lean_closure_set(x_8, 1, x_6); -x_9 = l___private_Lean_Meta_EqnCompiler_DepElim_11__isDone(x_1); +x_9 = l___private_Lean_Meta_EqnCompiler_DepElim_10__isDone(x_1); x_10 = lean_ctor_get(x_3, 3); lean_inc(x_10); x_11 = lean_ctor_get(x_3, 4); @@ -19014,38 +18829,38 @@ lean_object* x_20; uint8_t x_21; x_20 = lean_ctor_get(x_19, 1); lean_inc(x_20); lean_dec(x_19); -x_21 = l___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern(x_1); +x_21 = l___private_Lean_Meta_EqnCompiler_DepElim_12__hasAsPattern(x_1); if (x_21 == 0) { uint8_t x_22; -x_22 = l___private_Lean_Meta_EqnCompiler_DepElim_12__isNextVar(x_1); +x_22 = l___private_Lean_Meta_EqnCompiler_DepElim_11__isNextVar(x_1); if (x_22 == 0) { lean_object* x_23; lean_object* x_24; -x_23 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; -x_24 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable(x_23, x_1, x_2, x_3, x_20); +x_23 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3; +x_24 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable(x_23, x_1, x_2, x_3, x_20); return x_24; } else { uint8_t x_25; -x_25 = l___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition(x_1); +x_25 = l___private_Lean_Meta_EqnCompiler_DepElim_13__isVariableTransition(x_1); if (x_25 == 0) { uint8_t x_26; -x_26 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition(x_1); +x_26 = l___private_Lean_Meta_EqnCompiler_DepElim_14__isConstructorTransition(x_1); if (x_26 == 0) { uint8_t x_27; -x_27 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition(x_1); +x_27 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition(x_1); if (x_27 == 0) { uint8_t x_28; -x_28 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition(x_1); +x_28 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isValueTransition(x_1); if (x_28 == 0) { uint8_t x_29; -x_29 = l___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition(x_1); +x_29 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isArrayLitTransition(x_1); if (x_29 == 0) { lean_object* x_30; @@ -19059,7 +18874,7 @@ lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); lean_dec(x_30); -x_33 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__6; +x_33 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__6; x_34 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_34, 0, x_33); lean_ctor_set(x_34, 1, x_31); @@ -19095,24 +18910,24 @@ return x_40; else { lean_object* x_41; lean_object* x_42; -x_41 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; -x_42 = l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit(x_41, x_1, x_2, x_3, x_20); +x_41 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3; +x_42 = l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit(x_41, x_1, x_2, x_3, x_20); return x_42; } } else { lean_object* x_43; lean_object* x_44; -x_43 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; -x_44 = l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue(x_43, x_1, x_2, x_3, x_20); +x_43 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3; +x_44 = l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue(x_43, x_1, x_2, x_3, x_20); return x_44; } } else { lean_object* x_45; lean_object* x_46; -x_45 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; -x_46 = l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete(x_45, x_1, x_2, x_3, x_20); +x_45 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3; +x_46 = l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete(x_45, x_1, x_2, x_3, x_20); lean_dec(x_3); return x_46; } @@ -19120,16 +18935,16 @@ return x_46; else { lean_object* x_47; lean_object* x_48; -x_47 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; -x_48 = l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor(x_47, x_1, x_2, x_3, x_20); +x_47 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3; +x_48 = l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor(x_47, x_1, x_2, x_3, x_20); return x_48; } } else { lean_object* x_49; lean_object* x_50; -x_49 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; -x_50 = l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable(x_49, x_1, x_2, x_3, x_20); +x_49 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3; +x_50 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable(x_49, x_1, x_2, x_3, x_20); return x_50; } } @@ -19137,8 +18952,8 @@ return x_50; else { lean_object* x_51; lean_object* x_52; -x_51 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; -x_52 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern(x_51, x_1, x_2, x_3, x_20); +x_51 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3; +x_52 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern(x_51, x_1, x_2, x_3, x_20); return x_52; } } @@ -19148,7 +18963,7 @@ lean_object* x_53; lean_object* x_54; x_53 = lean_ctor_get(x_19, 1); lean_inc(x_53); lean_dec(x_19); -x_54 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf(x_1, x_2, x_3, x_53); +x_54 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf(x_1, x_2, x_3, x_53); lean_dec(x_3); return x_54; } @@ -19208,38 +19023,38 @@ lean_object* x_66; uint8_t x_67; x_66 = lean_ctor_get(x_65, 1); lean_inc(x_66); lean_dec(x_65); -x_67 = l___private_Lean_Meta_EqnCompiler_DepElim_13__hasAsPattern(x_1); +x_67 = l___private_Lean_Meta_EqnCompiler_DepElim_12__hasAsPattern(x_1); if (x_67 == 0) { uint8_t x_68; -x_68 = l___private_Lean_Meta_EqnCompiler_DepElim_12__isNextVar(x_1); +x_68 = l___private_Lean_Meta_EqnCompiler_DepElim_11__isNextVar(x_1); if (x_68 == 0) { lean_object* x_69; lean_object* x_70; -x_69 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; -x_70 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable(x_69, x_1, x_2, x_64, x_66); +x_69 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3; +x_70 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable(x_69, x_1, x_2, x_64, x_66); return x_70; } else { uint8_t x_71; -x_71 = l___private_Lean_Meta_EqnCompiler_DepElim_14__isVariableTransition(x_1); +x_71 = l___private_Lean_Meta_EqnCompiler_DepElim_13__isVariableTransition(x_1); if (x_71 == 0) { uint8_t x_72; -x_72 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isConstructorTransition(x_1); +x_72 = l___private_Lean_Meta_EqnCompiler_DepElim_14__isConstructorTransition(x_1); if (x_72 == 0) { uint8_t x_73; -x_73 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition(x_1); +x_73 = l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition(x_1); if (x_73 == 0) { uint8_t x_74; -x_74 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isValueTransition(x_1); +x_74 = l___private_Lean_Meta_EqnCompiler_DepElim_16__isValueTransition(x_1); if (x_74 == 0) { uint8_t x_75; -x_75 = l___private_Lean_Meta_EqnCompiler_DepElim_18__isArrayLitTransition(x_1); +x_75 = l___private_Lean_Meta_EqnCompiler_DepElim_17__isArrayLitTransition(x_1); if (x_75 == 0) { lean_object* x_76; @@ -19253,7 +19068,7 @@ lean_inc(x_77); x_78 = lean_ctor_get(x_76, 1); lean_inc(x_78); lean_dec(x_76); -x_79 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__6; +x_79 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__6; x_80 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_80, 0, x_79); lean_ctor_set(x_80, 1, x_77); @@ -19291,24 +19106,24 @@ return x_86; else { lean_object* x_87; lean_object* x_88; -x_87 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; -x_88 = l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit(x_87, x_1, x_2, x_64, x_66); +x_87 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3; +x_88 = l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit(x_87, x_1, x_2, x_64, x_66); return x_88; } } else { lean_object* x_89; lean_object* x_90; -x_89 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; -x_90 = l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue(x_89, x_1, x_2, x_64, x_66); +x_89 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3; +x_90 = l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue(x_89, x_1, x_2, x_64, x_66); return x_90; } } else { lean_object* x_91; lean_object* x_92; -x_91 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; -x_92 = l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete(x_91, x_1, x_2, x_64, x_66); +x_91 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3; +x_92 = l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete(x_91, x_1, x_2, x_64, x_66); lean_dec(x_64); return x_92; } @@ -19316,16 +19131,16 @@ return x_92; else { lean_object* x_93; lean_object* x_94; -x_93 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; -x_94 = l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor(x_93, x_1, x_2, x_64, x_66); +x_93 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3; +x_94 = l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor(x_93, x_1, x_2, x_64, x_66); return x_94; } } else { lean_object* x_95; lean_object* x_96; -x_95 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; -x_96 = l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable(x_95, x_1, x_2, x_64, x_66); +x_95 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3; +x_96 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable(x_95, x_1, x_2, x_64, x_66); return x_96; } } @@ -19333,8 +19148,8 @@ return x_96; else { lean_object* x_97; lean_object* x_98; -x_97 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3; -x_98 = l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern(x_97, x_1, x_2, x_64, x_66); +x_97 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3; +x_98 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern(x_97, x_1, x_2, x_64, x_66); return x_98; } } @@ -19344,7 +19159,7 @@ lean_object* x_99; lean_object* x_100; x_99 = lean_ctor_get(x_65, 1); lean_inc(x_99); lean_dec(x_65); -x_100 = l___private_Lean_Meta_EqnCompiler_DepElim_20__processLeaf(x_1, x_2, x_64, x_99); +x_100 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processLeaf(x_1, x_2, x_64, x_99); lean_dec(x_64); return x_100; } @@ -19380,212 +19195,32 @@ return x_104; } } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__1(x_1, x_2, x_3, x_4); +x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___lambda__1(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process___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* l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; x_6 = lean_unbox(x_3); lean_dec(x_3); -x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___lambda__2(x_1, x_2, x_6, x_4, x_5); +x_7 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___lambda__2(x_1, x_2, x_6, x_4, x_5); lean_dec(x_4); return x_7; } } -lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__process(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_34__process(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main(x_1, x_2, x_3, x_4); -return x_5; -} -} -lean_object* l_List_foldlM___main___at_Lean_Meta_DepElim_getUnusedLevelParam___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_5; -lean_dec(x_3); -x_5 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_5, 0, x_1); -lean_ctor_set(x_5, 1, x_4); -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_6 = lean_ctor_get(x_2, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_2, 1); -lean_inc(x_7); -lean_dec(x_2); -x_8 = l_Lean_Meta_instantiateMVars(x_6, x_3, x_4); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -lean_inc(x_3); -lean_inc(x_9); -x_11 = l_Lean_Meta_inferType(x_9, x_3, x_10); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = l_Lean_Meta_instantiateMVars(x_12, x_3, x_13); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = l_Lean_CollectLevelParams_main___main(x_9, x_1); -x_18 = l_Lean_CollectLevelParams_main___main(x_15, x_17); -x_1 = x_18; -x_2 = x_7; -x_4 = x_16; -goto _start; -} -else -{ -uint8_t x_20; -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_3); -lean_dec(x_1); -x_20 = !lean_is_exclusive(x_11); -if (x_20 == 0) -{ -return x_11; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_11, 0); -x_22 = lean_ctor_get(x_11, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_11); -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* _init_l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Std_HashSet_Inhabited___closed__1; -x_2 = l_Array_empty___closed__1; -x_3 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_1); -lean_ctor_set(x_3, 2, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Meta_DepElim_getUnusedLevelParam___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("v"); -return x_1; -} -} -lean_object* _init_l_Lean_Meta_DepElim_getUnusedLevelParam___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_DepElim_getUnusedLevelParam___closed__2; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1; -x_6 = l_List_foldlM___main___at_Lean_Meta_DepElim_getUnusedLevelParam___spec__1(x_5, x_1, x_3, x_4); -if (lean_obj_tag(x_6) == 0) -{ -uint8_t x_7; -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_6, 0); -x_9 = l_Lean_Meta_DepElim_getUnusedLevelParam___closed__3; -x_10 = l_Lean_CollectLevelParams_State_getUnusedLevelParam(x_8, x_9); -lean_dec(x_8); -lean_ctor_set(x_6, 0, x_10); -return x_6; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_ctor_get(x_6, 0); -x_12 = lean_ctor_get(x_6, 1); -lean_inc(x_12); -lean_inc(x_11); -lean_dec(x_6); -x_13 = l_Lean_Meta_DepElim_getUnusedLevelParam___closed__3; -x_14 = l_Lean_CollectLevelParams_State_getUnusedLevelParam(x_11, x_13); -lean_dec(x_11); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_12); -return x_15; -} -} -else -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_6); -if (x_16 == 0) -{ -return x_6; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_6, 0); -x_18 = lean_ctor_get(x_6, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_6); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; -} -} -} -} -lean_object* l_Lean_Meta_DepElim_getUnusedLevelParam___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Meta_DepElim_getUnusedLevelParam(x_1, x_2, x_3, x_4); -lean_dec(x_2); +x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main(x_1, x_2, x_3, x_4); return x_5; } } @@ -19840,7 +19475,7 @@ lean_ctor_set(x_19, 3, x_17); x_20 = lean_box(0); x_21 = l_Lean_Meta_DepElim_mkElim___lambda__1___closed__3; lean_inc(x_9); -x_22 = l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main(x_19, x_21, x_9, x_15); +x_22 = l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main(x_19, x_21, x_9, x_15); if (lean_obj_tag(x_22) == 0) { lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; @@ -20328,7 +19963,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_o x_8 = lean_unsigned_to_nat(0u); lean_inc(x_1); x_9 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_4, x_4, x_8, x_1); -x_10 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4; +x_10 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__4; lean_inc(x_3); lean_inc(x_1); lean_inc(x_4); @@ -20356,7 +19991,7 @@ if (x_15 == 0) { lean_object* x_16; lean_dec(x_9); -x_16 = l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts___rarg(x_1, x_3, x_11, x_6, x_13); +x_16 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAlts___rarg(x_1, x_3, x_11, x_6, x_13); return x_16; } else @@ -20374,7 +20009,7 @@ lean_dec(x_9); x_20 = lean_ctor_get(x_17, 1); lean_inc(x_20); lean_dec(x_17); -x_21 = l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts___rarg(x_1, x_3, x_11, x_6, x_20); +x_21 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAlts___rarg(x_1, x_3, x_11, x_6, x_20); return x_21; } else @@ -20393,7 +20028,7 @@ x_26 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isLevelDefEqAux___main_ x_27 = lean_ctor_get(x_26, 1); lean_inc(x_27); lean_dec(x_26); -x_28 = l___private_Lean_Meta_EqnCompiler_DepElim_10__withAlts___rarg(x_1, x_3, x_11, x_6, x_27); +x_28 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAlts___rarg(x_1, x_3, x_11, x_6, x_27); return x_28; } } @@ -20514,13 +20149,193 @@ lean_dec(x_5); return x_8; } } +lean_object* l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_5; +lean_dec(x_3); +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +lean_dec(x_2); +x_8 = l_Lean_Meta_instantiateMVars(x_6, x_3, x_4); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +lean_inc(x_3); +lean_inc(x_9); +x_11 = l_Lean_Meta_inferType(x_9, x_3, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = l_Lean_Meta_instantiateMVars(x_12, x_3, x_13); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = l_Lean_CollectLevelParams_main___main(x_9, x_1); +x_18 = l_Lean_CollectLevelParams_main___main(x_15, x_17); +x_1 = x_18; +x_2 = x_7; +x_4 = x_16; +goto _start; +} +else +{ +uint8_t x_20; +lean_dec(x_9); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_1); +x_20 = !lean_is_exclusive(x_11); +if (x_20 == 0) +{ +return x_11; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_11, 0); +x_22 = lean_ctor_get(x_11, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_11); +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* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Std_HashSet_Inhabited___closed__1; +x_2 = l_Array_empty___closed__1; +x_3 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_1); +lean_ctor_set(x_3, 2, x_2); +return x_3; +} +} +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("v"); +return x_1; +} +} +lean_object* _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__2; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; +x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__1; +x_6 = l_List_foldlM___main___at___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___spec__1(x_5, x_1, x_3, x_4); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_6, 0); +x_9 = l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__3; +x_10 = l_Lean_CollectLevelParams_State_getUnusedLevelParam(x_8, x_9); +lean_dec(x_8); +lean_ctor_set(x_6, 0, x_10); +return x_6; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_11 = lean_ctor_get(x_6, 0); +x_12 = lean_ctor_get(x_6, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_6); +x_13 = l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__3; +x_14 = l_Lean_CollectLevelParams_State_getUnusedLevelParam(x_11, x_13); +lean_dec(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_12); +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_6); +if (x_16 == 0) +{ +return x_6; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_6, 0); +x_18 = lean_ctor_get(x_6, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_6); +x_19 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_19, 1, x_18); +return x_19; +} +} +} +} +lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam(x_1, x_2, x_3, x_4); +lean_dec(x_2); +return x_5; +} +} lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_36__mkElimSort(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) { _start: { if (x_3 == 0) { lean_object* x_6; -x_6 = l_Lean_Meta_DepElim_getUnusedLevelParam(x_1, x_2, x_4, x_5); +x_6 = l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam(x_1, x_2, x_4, x_5); if (lean_obj_tag(x_6) == 0) { uint8_t x_7; @@ -20726,7 +20541,7 @@ lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_37__regTraceClasses(lean_ _start: { lean_object* x_2; lean_object* x_3; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__2; x_3 = l_Lean_registerTraceClass(x_2, x_1); if (lean_obj_tag(x_3) == 0) { @@ -20734,7 +20549,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_dec(x_3); -x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4; +x_5 = l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__4; x_6 = l_Lean_registerTraceClass(x_5, x_4); return x_6; } @@ -20865,120 +20680,114 @@ l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__2 = _ini lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__2); l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__3(); lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_5__checkNumPatterns___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__4); -l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__5); -l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__6 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__6); -l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__7 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__7(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_9__withAltsAux___main___rarg___closed__7); -l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_16__isCompleteTransition___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__4); -l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__5); -l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_21__processAsPattern___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_22__processVariable___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_24__processConstructor___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_25__throwInductiveTypeExpected___rarg___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructorAux___main___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__4); -l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__5); -l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__6 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__6); -l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__7 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__7(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__7); -l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__8 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__8(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__8); -l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__9 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__9(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_27__tryConstructor_x3f___closed__9); -l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_29__processComplete___closed__4); -l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_32__processValue___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_34__processArrayLit___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__1); -l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__2); -l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__3); -l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__4); -l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__5); -l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__6 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__6(); -lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__process___main___closed__6); -l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1 = _init_l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1(); -lean_mark_persistent(l_Lean_Meta_DepElim_getUnusedLevelParam___closed__1); -l_Lean_Meta_DepElim_getUnusedLevelParam___closed__2 = _init_l_Lean_Meta_DepElim_getUnusedLevelParam___closed__2(); -lean_mark_persistent(l_Lean_Meta_DepElim_getUnusedLevelParam___closed__2); -l_Lean_Meta_DepElim_getUnusedLevelParam___closed__3 = _init_l_Lean_Meta_DepElim_getUnusedLevelParam___closed__3(); -lean_mark_persistent(l_Lean_Meta_DepElim_getUnusedLevelParam___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__4); +l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__5); +l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__6 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__6); +l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__7 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__7(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_8__withAltsAux___main___rarg___closed__7); +l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_15__isCompleteTransition___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__4); +l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__5); +l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_20__processAsPattern___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_21__processVariable___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_23__processConstructor___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_24__throwInductiveTypeExpected___rarg___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_25__tryConstructorAux___main___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__4); +l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__5); +l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__6 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__6); +l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__7 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__7(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__7); +l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__8 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__8(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__8); +l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__9 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__9(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_26__tryConstructor_x3f___closed__9); +l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_28__processComplete___closed__4); +l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_31__processValue___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_33__processArrayLit___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__3); +l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__4 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__4); +l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__5 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__5); +l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__6 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_34__process___main___closed__6); l_Lean_Meta_DepElim_mkElim___lambda__1___closed__1 = _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___lambda__1___closed__1); l_Lean_Meta_DepElim_mkElim___lambda__1___closed__2 = _init_l_Lean_Meta_DepElim_mkElim___lambda__1___closed__2(); @@ -21013,6 +20822,12 @@ l_Lean_Meta_DepElim_mkElim___closed__1 = _init_l_Lean_Meta_DepElim_mkElim___clos lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___closed__1); l_Lean_Meta_DepElim_mkElim___closed__2 = _init_l_Lean_Meta_DepElim_mkElim___closed__2(); lean_mark_persistent(l_Lean_Meta_DepElim_mkElim___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__1 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__1); +l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__2 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__2); +l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__3 = _init_l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_EqnCompiler_DepElim_35__getUnusedLevelParam___closed__3); l_Lean_Meta_DepElim_mkElimTester___closed__1 = _init_l_Lean_Meta_DepElim_mkElimTester___closed__1(); lean_mark_persistent(l_Lean_Meta_DepElim_mkElimTester___closed__1); l_Lean_Meta_DepElim_mkElimTester___closed__2 = _init_l_Lean_Meta_DepElim_mkElimTester___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Offset.c b/stage0/stdlib/Lean/Meta/Offset.c index af3c16022e..78b1e92860 100644 --- a/stage0/stdlib/Lean/Meta/Offset.c +++ b/stage0/stdlib/Lean/Meta/Offset.c @@ -35,6 +35,7 @@ lean_object* l___private_Lean_Meta_Offset_4__isNatZero___boxed(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); +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; extern lean_object* l_Lean_Literal_type___closed__2; @@ -52,7 +53,6 @@ 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__18; 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; @@ -129,22 +129,14 @@ return x_3; lean_object* _init_l_Lean_Meta_evalNat___main___closed__8() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("ofNat"); -return x_1; -} -} -lean_object* _init_l_Lean_Meta_evalNat___main___closed__9() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_evalNat___main___closed__7; -x_2 = l_Lean_Meta_evalNat___main___closed__8; +x_2 = l_Lean_Expr_isCharLit___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Meta_evalNat___main___closed__10() { +lean_object* _init_l_Lean_Meta_evalNat___main___closed__9() { _start: { lean_object* x_1; @@ -152,17 +144,17 @@ x_1 = lean_mk_string("sub"); return x_1; } } -lean_object* _init_l_Lean_Meta_evalNat___main___closed__11() { +lean_object* _init_l_Lean_Meta_evalNat___main___closed__10() { _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__10; +x_2 = l_Lean_Meta_evalNat___main___closed__9; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Meta_evalNat___main___closed__12() { +lean_object* _init_l_Lean_Meta_evalNat___main___closed__11() { _start: { lean_object* x_1; @@ -170,17 +162,17 @@ x_1 = lean_mk_string("add"); return x_1; } } -lean_object* _init_l_Lean_Meta_evalNat___main___closed__13() { +lean_object* _init_l_Lean_Meta_evalNat___main___closed__12() { _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__12; +x_2 = l_Lean_Meta_evalNat___main___closed__11; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Meta_evalNat___main___closed__14() { +lean_object* _init_l_Lean_Meta_evalNat___main___closed__13() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -190,12 +182,22 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } +lean_object* _init_l_Lean_Meta_evalNat___main___closed__14() { +_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_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} 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__10; +x_2 = l_Lean_Meta_evalNat___main___closed__11; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -203,27 +205,17 @@ return x_3; lean_object* _init_l_Lean_Meta_evalNat___main___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___main___closed__12; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Meta_evalNat___main___closed__17() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("succ"); return x_1; } } -lean_object* _init_l_Lean_Meta_evalNat___main___closed__18() { +lean_object* _init_l_Lean_Meta_evalNat___main___closed__17() { _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__17; +x_2 = l_Lean_Meta_evalNat___main___closed__16; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -328,7 +320,7 @@ 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__18; +x_206 = l_Lean_Meta_evalNat___main___closed__17; x_207 = lean_name_eq(x_19, x_206); if (x_207 == 0) { @@ -396,7 +388,7 @@ block_127: { 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__13; +x_101 = l_Lean_Meta_evalNat___main___closed__12; x_102 = lean_name_eq(x_19, x_101); if (x_102 == 0) { @@ -497,7 +489,7 @@ 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__9; +x_26 = l_Lean_Meta_evalNat___main___closed__8; x_27 = lean_name_eq(x_19, x_26); lean_dec(x_19); if (x_27 == 0) @@ -545,7 +537,7 @@ 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__9; +x_40 = l_Lean_Meta_evalNat___main___closed__8; x_41 = lean_name_eq(x_19, x_40); lean_dec(x_19); if (x_41 == 0) @@ -661,7 +653,7 @@ block_100: { lean_object* x_74; uint8_t x_75; lean_dec(x_73); -x_74 = l_Lean_Meta_evalNat___main___closed__11; +x_74 = l_Lean_Meta_evalNat___main___closed__10; x_75 = lean_name_eq(x_19, x_74); if (x_75 == 0) { @@ -759,7 +751,7 @@ block_153: { lean_object* x_129; uint8_t x_130; lean_dec(x_128); -x_129 = l_Lean_Meta_evalNat___main___closed__14; +x_129 = l_Lean_Meta_evalNat___main___closed__13; x_130 = lean_name_eq(x_19, x_129); if (x_130 == 0) { @@ -854,7 +846,7 @@ block_179: { lean_object* x_155; uint8_t x_156; lean_dec(x_154); -x_155 = l_Lean_Meta_evalNat___main___closed__15; +x_155 = l_Lean_Meta_evalNat___main___closed__14; x_156 = lean_name_eq(x_19, x_155); if (x_156 == 0) { @@ -949,7 +941,7 @@ block_205: { lean_object* x_181; uint8_t x_182; lean_dec(x_180); -x_181 = l_Lean_Meta_evalNat___main___closed__16; +x_181 = l_Lean_Meta_evalNat___main___closed__15; x_182 = lean_name_eq(x_19, x_181); if (x_182 == 0) { @@ -1120,7 +1112,7 @@ 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__18; +x_90 = l_Lean_Meta_evalNat___main___closed__17; x_91 = lean_name_eq(x_11, x_90); if (x_91 == 0) { @@ -1230,7 +1222,7 @@ block_52: { lean_object* x_15; uint8_t x_16; lean_dec(x_14); -x_15 = l_Lean_Meta_evalNat___main___closed__13; +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) @@ -1372,7 +1364,7 @@ block_89: { lean_object* x_54; uint8_t x_55; lean_dec(x_53); -x_54 = l_Lean_Meta_evalNat___main___closed__16; +x_54 = l_Lean_Meta_evalNat___main___closed__15; x_55 = lean_name_eq(x_11, x_54); if (x_55 == 0) { @@ -1600,12 +1592,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__18; +x_18 = l_Lean_Meta_evalNat___main___closed__17; 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__16; +x_20 = l_Lean_Meta_evalNat___main___closed__15; x_21 = lean_name_eq(x_3, x_20); if (x_21 == 0) { @@ -1643,7 +1635,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__16; +x_29 = l_Lean_Meta_evalNat___main___closed__15; x_30 = lean_name_eq(x_3, x_29); if (x_30 == 0) { @@ -1684,7 +1676,7 @@ return x_36; block_17: { lean_object* x_7; uint8_t x_8; -x_7 = l_Lean_Meta_evalNat___main___closed__13; +x_7 = l_Lean_Meta_evalNat___main___closed__12; x_8 = lean_name_eq(x_3, x_7); lean_dec(x_3); if (x_8 == 0) @@ -1784,7 +1776,7 @@ _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__16; +x_2 = l_Lean_Meta_evalNat___main___closed__15; x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } @@ -2361,8 +2353,6 @@ l_Lean_Meta_evalNat___main___closed__16 = _init_l_Lean_Meta_evalNat___main___clo 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_Lean_Meta_evalNat___main___closed__18 = _init_l_Lean_Meta_evalNat___main___closed__18(); -lean_mark_persistent(l_Lean_Meta_evalNat___main___closed__18); 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); return lean_mk_io_result(lean_box(0)); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Intro.c b/stage0/stdlib/Lean/Meta/Tactic/Intro.c index 7edf6ec8d5..47ae590016 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Intro.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Intro.c @@ -13,10 +13,10 @@ #ifdef __cplusplus extern "C" { #endif -extern lean_object* l_Lean_mkHole___closed__3; lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* lean_local_ctx_get_unused_name(lean_object*, lean_object*); lean_object* l_Lean_Meta_isClassExpensive___main(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_mkThunk___closed__1; lean_object* l_Lean_Meta_introN(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_introN___spec__4(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*); extern lean_object* l_EIO_Monad___closed__1; @@ -69,7 +69,6 @@ lean_object* l_Lean_mkFVar(lean_object*); uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l_Lean_Meta_introNCoreAux___main___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* l_Lean_Meta_intro___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_mkAuxName___closed__1; lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l_Array_umapMAux___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -836,16 +835,6 @@ lean_dec(x_5); return x_7; } } -lean_object* _init_l_Lean_Meta_mkAuxName___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_mkHole___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} lean_object* l_Lean_Meta_mkAuxName(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -878,7 +867,7 @@ lean_inc(x_8); x_9 = lean_ctor_get(x_4, 1); lean_inc(x_9); lean_dec(x_4); -x_10 = l_Lean_Meta_mkAuxName___closed__1; +x_10 = l_Lean_mkThunk___closed__1; x_11 = lean_name_eq(x_8, x_10); if (x_11 == 0) { @@ -5804,8 +5793,6 @@ l_Lean_Meta_introNCoreAux___main___rarg___closed__1 = _init_l_Lean_Meta_introNCo lean_mark_persistent(l_Lean_Meta_introNCoreAux___main___rarg___closed__1); l_Lean_Meta_introNCore___rarg___lambda__2___closed__1 = _init_l_Lean_Meta_introNCore___rarg___lambda__2___closed__1(); lean_mark_persistent(l_Lean_Meta_introNCore___rarg___lambda__2___closed__1); -l_Lean_Meta_mkAuxName___closed__1 = _init_l_Lean_Meta_mkAuxName___closed__1(); -lean_mark_persistent(l_Lean_Meta_mkAuxName___closed__1); return lean_mk_io_result(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Parser/Extension.c b/stage0/stdlib/Lean/Parser/Extension.c index 567f789f41..ccf3db3f34 100644 --- a/stage0/stdlib/Lean/Parser/Extension.c +++ b/stage0/stdlib/Lean/Parser/Extension.c @@ -72,7 +72,6 @@ lean_object* l___private_Lean_Parser_Extension_2__throwParserCategoryAlreadyDefi lean_object* l_Lean_Parser_mkParserState(lean_object*); lean_object* l_Lean_Parser_mkParserExtension___lambda__2(lean_object*); lean_object* lean_io_ref_get(lean_object*, lean_object*); -lean_object* l_Lean_Parser_declareBuiltinParser___closed__5; lean_object* l_List_map___main___at_Lean_Parser_addLeadingParser___spec__4(lean_object*); lean_object* l___private_Lean_Parser_Extension_13__registerParserAttributeImplBuilder___closed__1; lean_object* l_Lean_Parser_declareBuiltinParser___closed__3; @@ -105,7 +104,6 @@ lean_object* l_Lean_Parser_declareBuiltinParser___closed__2; extern lean_object* l_Lean_mkAppStx___closed__4; lean_object* l___private_Lean_Parser_Extension_11__BuiltinParserAttribute_add___closed__1; lean_object* l_Lean_Parser_parserExtension___closed__1; -lean_object* l_Lean_Parser_declareBuiltinParser___closed__4; extern lean_object* l_Lean_nameLitKind; extern lean_object* l_Lean_LocalContext_Inhabited___closed__1; lean_object* l_Array_anyRangeMAux___main___at_Lean_Parser_mkParserExtension___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -157,6 +155,7 @@ extern lean_object* l_Lean_PrettyPrinter_Parenthesizer_mkParenthesizerOfConstant lean_object* l_Lean_Parser_declareBuiltinParser(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_noFirstTokenInfo(lean_object*); lean_object* l_Std_PersistentHashMap_insertAux___main___at___private_Lean_Parser_Extension_3__addParserCategoryCore___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__6; lean_object* l_Lean_Parser_mkParserOfConstantUnsafe___closed__1; extern lean_object* l_Std_PersistentHashMap_insertAux___main___rarg___closed__3; extern lean_object* l_Lean_strLitKind; @@ -167,7 +166,6 @@ lean_object* l_Lean_Parser_mkParserOfConstantUnsafe(lean_object*, lean_object*, lean_object* l_Lean_registerAttributeOfBuilder(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_append___main(lean_object*, lean_object*); lean_object* l_Lean_Parser_regTermParserAttribute___closed__1; -extern lean_object* l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__4; lean_object* l_Lean_Parser_mkParserExtension___closed__8; lean_object* l_Lean_Parser_whitespace___main(lean_object*, lean_object*); lean_object* l_Lean_Parser_parserExtension___closed__4; @@ -187,7 +185,6 @@ lean_object* l_Lean_Parser_mkParserExtension___lambda__2___boxed(lean_object*); lean_object* l_Lean_Parser_mkParserOfConstantUnsafe___closed__4; size_t l_Lean_Name_hash(lean_object*); lean_object* l_Lean_Parser_addToken(lean_object*, lean_object*); -extern lean_object* l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; lean_object* l_Nat_repr(lean_object*); extern lean_object* l_Char_HasRepr___closed__1; lean_object* l_Lean_Parser_mkBuiltinSyntaxNodeKindSetRef(lean_object*); @@ -238,7 +235,6 @@ lean_object* l_Lean_Parser_sepByFn___boxed(lean_object*, lean_object*, lean_obje lean_object* l_Lean_Parser_mkBuiltinTokenTable(lean_object*); lean_object* l_Lean_Parser_addTrailingParser(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_type(lean_object*); -lean_object* l_Lean_Parser_declareBuiltinParser___closed__6; lean_object* l_Lean_Parser_trailingNodeFn(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_addBuiltinLeadingParser(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_mkParserExtension___closed__7; @@ -276,7 +272,6 @@ lean_object* l_Lean_Parser_tryFn(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Parser_isParserCategory(lean_object*, lean_object*); uint8_t l_USize_decLe(size_t, size_t); extern lean_object* l_Lean_registerTagAttribute___lambda__4___closed__5; -lean_object* l_Lean_mkApp(lean_object*, lean_object*); lean_object* l_Std_PersistentHashMap_containsAtAux___main___at_Lean_Parser_isValidSyntaxNodeKind___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_categoryParser(lean_object*, lean_object*); lean_object* l_Lean_Environment_addAndCompile(lean_object*, lean_object*, lean_object*); @@ -7918,36 +7913,6 @@ return x_3; lean_object* _init_l_Lean_Parser_declareBuiltinParser___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Lean_Compiler_InitAttr_2__isUnitType___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_declareBuiltinParser___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_declareBuiltinParser___closed__3; -x_3 = l_Lean_mkConst(x_2, x_1); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_declareBuiltinParser___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__4; -x_2 = l_Lean_Parser_declareBuiltinParser___closed__4; -x_3 = l_Lean_mkApp(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_declareBuiltinParser___closed__6() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("failed to emit registration code for builtin parser '"); return x_1; @@ -7974,7 +7939,7 @@ x_16 = lean_array_push(x_15, x_12); x_17 = lean_unsigned_to_nat(0u); x_18 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_16, x_16, x_17, x_9); lean_dec(x_16); -x_19 = l_Lean_Parser_declareBuiltinParser___closed__5; +x_19 = l_Lean_KeyedDeclsAttribute_declareBuiltin___rarg___closed__6; lean_inc(x_7); x_20 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_20, 0, x_7); @@ -7999,7 +7964,7 @@ lean_dec(x_26); lean_dec(x_7); x_27 = l_Lean_Name_toString___closed__1; x_28 = l_Lean_Name_toStringWithSep___main(x_27, x_4); -x_29 = l_Lean_Parser_declareBuiltinParser___closed__6; +x_29 = l_Lean_Parser_declareBuiltinParser___closed__3; x_30 = lean_string_append(x_29, x_28); lean_dec(x_28); x_31 = l_Char_HasRepr___closed__1; @@ -9368,12 +9333,6 @@ l_Lean_Parser_declareBuiltinParser___closed__2 = _init_l_Lean_Parser_declareBuil lean_mark_persistent(l_Lean_Parser_declareBuiltinParser___closed__2); l_Lean_Parser_declareBuiltinParser___closed__3 = _init_l_Lean_Parser_declareBuiltinParser___closed__3(); lean_mark_persistent(l_Lean_Parser_declareBuiltinParser___closed__3); -l_Lean_Parser_declareBuiltinParser___closed__4 = _init_l_Lean_Parser_declareBuiltinParser___closed__4(); -lean_mark_persistent(l_Lean_Parser_declareBuiltinParser___closed__4); -l_Lean_Parser_declareBuiltinParser___closed__5 = _init_l_Lean_Parser_declareBuiltinParser___closed__5(); -lean_mark_persistent(l_Lean_Parser_declareBuiltinParser___closed__5); -l_Lean_Parser_declareBuiltinParser___closed__6 = _init_l_Lean_Parser_declareBuiltinParser___closed__6(); -lean_mark_persistent(l_Lean_Parser_declareBuiltinParser___closed__6); l_Lean_Parser_declareLeadingBuiltinParser___closed__1 = _init_l_Lean_Parser_declareLeadingBuiltinParser___closed__1(); lean_mark_persistent(l_Lean_Parser_declareLeadingBuiltinParser___closed__1); l_Lean_Parser_declareLeadingBuiltinParser___closed__2 = _init_l_Lean_Parser_declareLeadingBuiltinParser___closed__2(); diff --git a/stage0/stdlib/Lean/Parser/Tactic.c b/stage0/stdlib/Lean/Parser/Tactic.c index 82c9eac765..dc66f54299 100644 --- a/stage0/stdlib/Lean/Parser/Tactic.c +++ b/stage0/stdlib/Lean/Parser/Tactic.c @@ -65,6 +65,7 @@ lean_object* l_Lean_Parser_Tactic_inductionAlts_parenthesizer___lambda__1___clos lean_object* l_Lean_Parser_Tactic_traceState_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_intros___elambda__1___closed__5; extern lean_object* l_Lean_nullKind; +extern lean_object* l_Lean_mkThunk___closed__1; lean_object* l_Lean_Parser_Tactic_nestedTacticBlockCurly___closed__2; lean_object* l_Lean_Parser_Tactic_intros___elambda__1___closed__3; lean_object* l_Lean_Parser_Tactic_orelse___closed__1; @@ -527,7 +528,6 @@ lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Tactic_intros___elamb lean_object* l_Lean_Parser_Tactic_failIfSuccess___elambda__1___closed__6; lean_object* l_Lean_Parser_Tactic_injection___elambda__1___closed__4; lean_object* l_Lean_Parser_Tactic_intros___closed__4; -extern lean_object* l_Lean_Meta_mkAuxName___closed__1; lean_object* l_Lean_Parser_Tactic_cases___elambda__1___closed__5; lean_object* l_Lean_Parser_sepBy1Info(lean_object*, lean_object*); lean_object* l_Lean_Parser_Tactic_withAlts_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*); @@ -909,7 +909,7 @@ lean_inc(x_7); x_8 = l_Array_back___at_Lean_Syntax_Traverser_up___spec__2(x_7); lean_dec(x_7); x_9 = l_Lean_Parser_ParserState_popSyntax(x_6); -x_10 = l_Lean_Meta_mkAuxName___closed__1; +x_10 = l_Lean_mkThunk___closed__1; x_11 = l_Lean_mkIdentFrom(x_8, x_10); lean_dec(x_8); x_12 = l_Lean_Parser_ParserState_pushSyntax(x_9, x_11); diff --git a/stage0/stdlib/Lean/Parser/Term.c b/stage0/stdlib/Lean/Parser/Term.c index d953502474..7be1430927 100644 --- a/stage0/stdlib/Lean/Parser/Term.c +++ b/stage0/stdlib/Lean/Parser/Term.c @@ -425,7 +425,6 @@ lean_object* l_Lean_Parser_Term_doPat___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_anonymousCtor___closed__8; lean_object* l_Lean_Parser_Term_dollarProj___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doPat; -lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_sort___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_PrettyPrinter_Parenthesizer_tacticParser_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_heq___elambda__1___closed__5; @@ -506,6 +505,7 @@ lean_object* l_Lean_Parser_Term_forall_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_matchAlts___closed__6; lean_object* l_Lean_Parser_Term_liftMethod___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_fun_parenthesizer___closed__8; +extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__1; lean_object* l_Lean_Parser_Term_namedArgument___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_nativeDecide_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_namedArgument___closed__3; @@ -541,7 +541,6 @@ lean_object* l_Lean_Parser_Term_bnot___closed__3; lean_object* l_Lean_Parser_Term_arrayRef___closed__4; lean_object* l_Lean_Parser_Term_parser_x21___closed__3; lean_object* l_Lean_Parser_Term_parser_x21___elambda__1___closed__2; -extern lean_object* l_Lean_Meta_evalNat___main___closed__10; lean_object* l_Lean_Parser_Term_not___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_cdot___closed__4; lean_object* l_Lean_Parser_Term_type_parenthesizer___closed__7; @@ -563,12 +562,12 @@ lean_object* l___regBuiltin_Lean_Parser_Term_nomatch_parenthesizer(lean_object*) lean_object* l_Lean_Parser_Term_listLit___closed__2; lean_object* l_Lean_Parser_Term_andthen_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_band___elambda__1(lean_object*, lean_object*); -extern lean_object* l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; lean_object* l_Lean_Parser_ParserState_mkTrailingNode(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_seqRight___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_eq_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_structInstLVal_parenthesizer___closed__3; lean_object* l_Lean_Parser_Term_prop___elambda__1___closed__6; +extern lean_object* l_Lean_Expr_ctorName___closed__4; lean_object* l___regBuiltinParser_Lean_Parser_Term_let_x21(lean_object*); lean_object* l_Lean_Parser_Term_let___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_suffices_parenthesizer___closed__2; @@ -2237,6 +2236,7 @@ lean_object* l_Lean_Parser_Term_borrowed___closed__3; lean_object* l_Lean_Parser_Term_match___elambda__1___closed__9; lean_object* l___regBuiltin_Lean_Parser_Term_equiv_parenthesizer(lean_object*); lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__7; +extern lean_object* l_Lean_Meta_evalNat___main___closed__9; lean_object* l_Lean_Parser_Term_depArrow___closed__6; lean_object* l_Lean_Parser_Term_doPat_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_sorry_parenthesizer___closed__2; @@ -2744,6 +2744,7 @@ lean_object* l_Lean_Parser_Term_if_parenthesizer___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_hole(lean_object*); lean_object* l_Lean_Parser_Term_iff___closed__2; lean_object* l_Lean_Parser_Term_orelse___closed__4; +extern lean_object* l_Lean_Expr_ctorName___closed__11; lean_object* l_Lean_Parser_Term_parenSpecial_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_paren_parenthesizer___closed__4; lean_object* l_Lean_Parser_Term_if___elambda__1___closed__12; @@ -2761,7 +2762,6 @@ lean_object* l___regBuiltin_Lean_Parser_Term_fun_parenthesizer___closed__1; lean_object* l_Lean_Parser_Term_prop_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_map___elambda__1___closed__2; lean_object* l___private_Lean_Parser_Basic_2__sepByFnAux___main___at_Lean_Parser_Term_subst___elambda__1___spec__2___closed__2; -lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__9; lean_object* l___regBuiltinParser_Lean_Parser_Term_gt(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_append_parenthesizer(lean_object*); lean_object* l___regBuiltin_Lean_Parser_Term_bnot_parenthesizer(lean_object*); @@ -7971,43 +7971,35 @@ return x_5; lean_object* _init_l_Lean_Parser_Term_sort___elambda__1___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("sort"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__6; +x_2 = l_Lean_Expr_ctorName___closed__4; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; } } lean_object* _init_l_Lean_Parser_Term_sort___elambda__1___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Parser_Term_sort___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_sort___elambda__1___closed__3() { -_start: -{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_2 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Parser_Term_sort___elambda__1___closed__4() { +lean_object* _init_l_Lean_Parser_Term_sort___elambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__1; -x_2 = l_Lean_Parser_Term_sort___elambda__1___closed__3; +x_1 = l_Lean_Expr_ctorName___closed__4; +x_2 = l_Lean_Parser_Term_sort___elambda__1___closed__2; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); return x_4; } } -lean_object* _init_l_Lean_Parser_Term_sort___elambda__1___closed__5() { +lean_object* _init_l_Lean_Parser_Term_sort___elambda__1___closed__4() { _start: { lean_object* x_1; @@ -8015,21 +8007,31 @@ x_1 = lean_mk_string("Sort"); return x_1; } } -lean_object* _init_l_Lean_Parser_Term_sort___elambda__1___closed__6() { +lean_object* _init_l_Lean_Parser_Term_sort___elambda__1___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__5; +x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__4; x_2 = l_String_trim(x_1); return x_2; } } +lean_object* _init_l_Lean_Parser_Term_sort___elambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Term_sort___elambda__1___closed__5; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} lean_object* _init_l_Lean_Parser_Term_sort___elambda__1___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Term_sort___elambda__1___closed__6; +x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__6; +x_2 = l_Char_HasRepr___closed__1; x_3 = lean_string_append(x_1, x_2); return x_3; } @@ -8038,18 +8040,8 @@ lean_object* _init_l_Lean_Parser_Term_sort___elambda__1___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__7; -x_2 = l_Char_HasRepr___closed__1; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_sort___elambda__1___closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_sort___elambda__1___closed__8; +x_2 = l_Lean_Parser_Term_sort___elambda__1___closed__7; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -8060,7 +8052,7 @@ lean_object* l_Lean_Parser_Term_sort___elambda__1(lean_object* x_1, lean_object* _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = l_Lean_Parser_Term_sort___elambda__1___closed__4; +x_3 = l_Lean_Parser_Term_sort___elambda__1___closed__3; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_inc(x_2); @@ -8100,13 +8092,13 @@ lean_object* x_71; lean_object* x_72; uint8_t x_73; x_71 = lean_ctor_get(x_70, 1); lean_inc(x_71); lean_dec(x_70); -x_72 = l_Lean_Parser_Term_sort___elambda__1___closed__6; +x_72 = l_Lean_Parser_Term_sort___elambda__1___closed__5; x_73 = lean_string_dec_eq(x_71, x_72); lean_dec(x_71); if (x_73 == 0) { lean_object* x_74; lean_object* x_75; -x_74 = l_Lean_Parser_Term_sort___elambda__1___closed__9; +x_74 = l_Lean_Parser_Term_sort___elambda__1___closed__8; x_75 = l_Lean_Parser_ParserState_mkErrorsAt(x_67, x_74, x_66); x_11 = x_75; goto block_65; @@ -8122,7 +8114,7 @@ else { lean_object* x_76; lean_object* x_77; lean_dec(x_70); -x_76 = l_Lean_Parser_Term_sort___elambda__1___closed__9; +x_76 = l_Lean_Parser_Term_sort___elambda__1___closed__8; x_77 = l_Lean_Parser_ParserState_mkErrorsAt(x_67, x_76, x_66); x_11 = x_77; goto block_65; @@ -8132,7 +8124,7 @@ else { lean_object* x_78; lean_object* x_79; lean_dec(x_68); -x_78 = l_Lean_Parser_Term_sort___elambda__1___closed__9; +x_78 = l_Lean_Parser_Term_sort___elambda__1___closed__8; x_79 = l_Lean_Parser_ParserState_mkErrorsAt(x_67, x_78, x_66); x_11 = x_79; goto block_65; @@ -8176,7 +8168,7 @@ lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_dec(x_15); x_26 = l_Lean_nullKind; x_27 = l_Lean_Parser_ParserState_mkNode(x_24, x_26, x_14); -x_28 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_28 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_29 = l_Lean_Parser_ParserState_mkNode(x_27, x_28, x_10); return x_29; } @@ -8194,7 +8186,7 @@ lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_dec(x_15); x_32 = l_Lean_nullKind; x_33 = l_Lean_Parser_ParserState_mkNode(x_24, x_32, x_14); -x_34 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_34 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_35 = l_Lean_Parser_ParserState_mkNode(x_33, x_34, x_10); return x_35; } @@ -8204,7 +8196,7 @@ lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean x_36 = l_Lean_Parser_ParserState_restore(x_24, x_14, x_15); x_37 = l_Lean_nullKind; x_38 = l_Lean_Parser_ParserState_mkNode(x_36, x_37, x_14); -x_39 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_39 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_40 = l_Lean_Parser_ParserState_mkNode(x_38, x_39, x_10); return x_40; } @@ -8225,7 +8217,7 @@ lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_dec(x_15); x_43 = l_Lean_nullKind; x_44 = l_Lean_Parser_ParserState_mkNode(x_20, x_43, x_14); -x_45 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_45 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_46 = l_Lean_Parser_ParserState_mkNode(x_44, x_45, x_10); return x_46; } @@ -8235,7 +8227,7 @@ lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean x_47 = l_Lean_Parser_ParserState_restore(x_20, x_14, x_15); x_48 = l_Lean_nullKind; x_49 = l_Lean_Parser_ParserState_mkNode(x_47, x_48, x_14); -x_50 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_50 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_51 = l_Lean_Parser_ParserState_mkNode(x_49, x_50, x_10); return x_51; } @@ -8256,7 +8248,7 @@ lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_dec(x_15); x_54 = l_Lean_nullKind; x_55 = l_Lean_Parser_ParserState_mkNode(x_17, x_54, x_14); -x_56 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_56 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_57 = l_Lean_Parser_ParserState_mkNode(x_55, x_56, x_10); return x_57; } @@ -8266,7 +8258,7 @@ lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean x_58 = l_Lean_Parser_ParserState_restore(x_17, x_14, x_15); x_59 = l_Lean_nullKind; x_60 = l_Lean_Parser_ParserState_mkNode(x_58, x_59, x_14); -x_61 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_61 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_62 = l_Lean_Parser_ParserState_mkNode(x_60, x_61, x_10); return x_62; } @@ -8277,7 +8269,7 @@ else lean_object* x_63; lean_object* x_64; lean_dec(x_12); lean_dec(x_1); -x_63 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_63 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_64 = l_Lean_Parser_ParserState_mkNode(x_11, x_63, x_10); return x_64; } @@ -8364,13 +8356,13 @@ lean_object* x_162; lean_object* x_163; uint8_t x_164; x_162 = lean_ctor_get(x_161, 1); lean_inc(x_162); lean_dec(x_161); -x_163 = l_Lean_Parser_Term_sort___elambda__1___closed__6; +x_163 = l_Lean_Parser_Term_sort___elambda__1___closed__5; x_164 = lean_string_dec_eq(x_162, x_163); lean_dec(x_162); if (x_164 == 0) { lean_object* x_165; lean_object* x_166; -x_165 = l_Lean_Parser_Term_sort___elambda__1___closed__9; +x_165 = l_Lean_Parser_Term_sort___elambda__1___closed__8; x_166 = l_Lean_Parser_ParserState_mkErrorsAt(x_158, x_165, x_157); x_94 = x_166; goto block_156; @@ -8386,7 +8378,7 @@ else { lean_object* x_167; lean_object* x_168; lean_dec(x_161); -x_167 = l_Lean_Parser_Term_sort___elambda__1___closed__9; +x_167 = l_Lean_Parser_Term_sort___elambda__1___closed__8; x_168 = l_Lean_Parser_ParserState_mkErrorsAt(x_158, x_167, x_157); x_94 = x_168; goto block_156; @@ -8396,7 +8388,7 @@ else { lean_object* x_169; lean_object* x_170; lean_dec(x_159); -x_169 = l_Lean_Parser_Term_sort___elambda__1___closed__9; +x_169 = l_Lean_Parser_Term_sort___elambda__1___closed__8; x_170 = l_Lean_Parser_ParserState_mkErrorsAt(x_158, x_169, x_157); x_94 = x_170; goto block_156; @@ -8440,7 +8432,7 @@ lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_dec(x_98); x_109 = l_Lean_nullKind; x_110 = l_Lean_Parser_ParserState_mkNode(x_107, x_109, x_97); -x_111 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_111 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_112 = l_Lean_Parser_ParserState_mkNode(x_110, x_111, x_93); x_113 = l_Lean_Parser_mergeOrElseErrors(x_112, x_85, x_82); lean_dec(x_82); @@ -8460,7 +8452,7 @@ lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_dec(x_98); x_116 = l_Lean_nullKind; x_117 = l_Lean_Parser_ParserState_mkNode(x_107, x_116, x_97); -x_118 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_118 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_119 = l_Lean_Parser_ParserState_mkNode(x_117, x_118, x_93); x_120 = l_Lean_Parser_mergeOrElseErrors(x_119, x_85, x_82); lean_dec(x_82); @@ -8472,7 +8464,7 @@ lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; x_121 = l_Lean_Parser_ParserState_restore(x_107, x_97, x_98); x_122 = l_Lean_nullKind; x_123 = l_Lean_Parser_ParserState_mkNode(x_121, x_122, x_97); -x_124 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_124 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_125 = l_Lean_Parser_ParserState_mkNode(x_123, x_124, x_93); x_126 = l_Lean_Parser_mergeOrElseErrors(x_125, x_85, x_82); lean_dec(x_82); @@ -8495,7 +8487,7 @@ lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_dec(x_98); x_129 = l_Lean_nullKind; x_130 = l_Lean_Parser_ParserState_mkNode(x_103, x_129, x_97); -x_131 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_131 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_132 = l_Lean_Parser_ParserState_mkNode(x_130, x_131, x_93); x_133 = l_Lean_Parser_mergeOrElseErrors(x_132, x_85, x_82); lean_dec(x_82); @@ -8507,7 +8499,7 @@ lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; x_134 = l_Lean_Parser_ParserState_restore(x_103, x_97, x_98); x_135 = l_Lean_nullKind; x_136 = l_Lean_Parser_ParserState_mkNode(x_134, x_135, x_97); -x_137 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_137 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_138 = l_Lean_Parser_ParserState_mkNode(x_136, x_137, x_93); x_139 = l_Lean_Parser_mergeOrElseErrors(x_138, x_85, x_82); lean_dec(x_82); @@ -8530,7 +8522,7 @@ lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_dec(x_98); x_142 = l_Lean_nullKind; x_143 = l_Lean_Parser_ParserState_mkNode(x_100, x_142, x_97); -x_144 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_144 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_145 = l_Lean_Parser_ParserState_mkNode(x_143, x_144, x_93); x_146 = l_Lean_Parser_mergeOrElseErrors(x_145, x_85, x_82); lean_dec(x_82); @@ -8542,7 +8534,7 @@ lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; x_147 = l_Lean_Parser_ParserState_restore(x_100, x_97, x_98); x_148 = l_Lean_nullKind; x_149 = l_Lean_Parser_ParserState_mkNode(x_147, x_148, x_97); -x_150 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_150 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_151 = l_Lean_Parser_ParserState_mkNode(x_149, x_150, x_93); x_152 = l_Lean_Parser_mergeOrElseErrors(x_151, x_85, x_82); lean_dec(x_82); @@ -8555,7 +8547,7 @@ else lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_dec(x_95); lean_dec(x_1); -x_153 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_153 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_154 = l_Lean_Parser_ParserState_mkNode(x_94, x_153, x_93); x_155 = l_Lean_Parser_mergeOrElseErrors(x_154, x_85, x_82); lean_dec(x_82); @@ -8581,7 +8573,7 @@ lean_object* _init_l_Lean_Parser_Term_sort___closed__1() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__6; +x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__5; x_2 = l_Lean_Parser_symbolInfo(x_1); return x_2; } @@ -8600,7 +8592,7 @@ lean_object* _init_l_Lean_Parser_Term_sort___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_2 = l_Lean_Parser_Term_sort___closed__2; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; @@ -8620,7 +8612,7 @@ lean_object* _init_l_Lean_Parser_Term_sort___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__4; +x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__3; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Lean_Parser_Term_sort___closed__4; @@ -8661,7 +8653,7 @@ _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; x_2 = l_Lean_Parser_termParser___closed__2; -x_3 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_3 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_4 = 1; x_5 = l_Lean_Parser_Term_sort; x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); @@ -8672,7 +8664,7 @@ lean_object* _init_l_Lean_Parser_Term_sort_parenthesizer___closed__1() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__3; +x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__2; x_2 = 1; x_3 = lean_box(x_2); x_4 = lean_alloc_closure((void*)(l_Lean_Parser_mkAntiquot_parenthesizer___rarg___boxed), 6, 2); @@ -8685,7 +8677,7 @@ lean_object* _init_l_Lean_Parser_Term_sort_parenthesizer___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_1 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_2 = lean_unsigned_to_nat(1024u); x_3 = l_Lean_Parser_Term_type_parenthesizer___closed__7; x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer), 7, 3); @@ -8718,7 +8710,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_PrettyPrinter_parenthesizerAttribute; -x_3 = l_Lean_Parser_Term_sort___elambda__1___closed__2; +x_3 = l_Lean_Parser_Term_sort___elambda__1___closed__1; x_4 = l___regBuiltin_Lean_Parser_Term_sort_parenthesizer___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -38010,7 +38002,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; +x_2 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -38029,7 +38021,7 @@ lean_object* _init_l_Lean_Parser_Term_match___elambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; -x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_19__processNonVariable___closed__1; +x_1 = l___private_Lean_Meta_EqnCompiler_DepElim_18__processNonVariable___closed__1; x_2 = l_Lean_Parser_Term_match___elambda__1___closed__2; x_3 = 1; x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); @@ -54141,22 +54133,14 @@ return x_5; lean_object* _init_l_Lean_Parser_Term_proj___elambda__1___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("proj"); -return x_1; -} -} -lean_object* _init_l_Lean_Parser_Term_proj___elambda__1___closed__2() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_mkAppStx___closed__6; -x_2 = l_Lean_Parser_Term_proj___elambda__1___closed__1; +x_2 = l_Lean_Expr_ctorName___closed__11; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Parser_Term_proj___elambda__1___closed__3() { +lean_object* _init_l_Lean_Parser_Term_proj___elambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -54166,7 +54150,7 @@ x_3 = lean_string_append(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Parser_Term_proj___elambda__1___closed__4() { +lean_object* _init_l_Lean_Parser_Term_proj___elambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; @@ -54202,7 +54186,7 @@ if (x_45 == 0) { lean_object* x_46; lean_object* x_47; lean_dec(x_9); -x_46 = l_Lean_Parser_Term_proj___elambda__1___closed__3; +x_46 = l_Lean_Parser_Term_proj___elambda__1___closed__2; x_47 = l_Lean_Parser_ParserState_mkError(x_6, x_46); x_11 = x_47; goto block_43; @@ -54216,7 +54200,7 @@ x_49 = lean_ctor_get(x_48, 0); lean_inc(x_49); lean_dec(x_48); x_50 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__1; -x_51 = l_Lean_Parser_Term_proj___elambda__1___closed__3; +x_51 = l_Lean_Parser_Term_proj___elambda__1___closed__2; x_52 = lean_unsigned_to_nat(0u); x_53 = l_Lean_Parser_strAux___main(x_50, x_51, x_52, x_1, x_6); x_54 = lean_ctor_get(x_53, 3); @@ -54230,7 +54214,7 @@ x_55 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_55, 0, x_49); lean_ctor_set(x_55, 1, x_9); lean_ctor_set(x_55, 2, x_9); -x_56 = l_Lean_Parser_Term_proj___elambda__1___closed__4; +x_56 = l_Lean_Parser_Term_proj___elambda__1___closed__3; x_57 = lean_nat_add(x_9, x_56); lean_inc(x_57); x_58 = lean_alloc_ctor(0, 3, 0); @@ -54339,7 +54323,7 @@ lean_object* x_18; lean_object* x_19; lean_dec(x_15); lean_dec(x_14); lean_dec(x_1); -x_18 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_18 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_19 = l_Lean_Parser_ParserState_mkTrailingNode(x_16, x_18, x_10); lean_dec(x_10); return x_19; @@ -54361,7 +54345,7 @@ lean_dec(x_20); lean_dec(x_15); lean_dec(x_14); lean_dec(x_1); -x_23 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_23 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_24 = l_Lean_Parser_ParserState_mkTrailingNode(x_16, x_23, x_10); lean_dec(x_10); return x_24; @@ -54375,7 +54359,7 @@ lean_dec(x_14); x_26 = l_Lean_Parser_ident___elambda__1(x_1, x_25); x_27 = l_Lean_Parser_mergeOrElseErrors(x_26, x_20, x_15); lean_dec(x_15); -x_28 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_28 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_29 = l_Lean_Parser_ParserState_mkTrailingNode(x_27, x_28, x_10); lean_dec(x_10); return x_29; @@ -54389,7 +54373,7 @@ lean_object* x_41; lean_object* x_42; lean_dec(x_12); lean_dec(x_4); lean_dec(x_1); -x_41 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_41 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_42 = l_Lean_Parser_ParserState_mkTrailingNode(x_11, x_41, x_10); lean_dec(x_10); return x_42; @@ -54440,7 +54424,7 @@ lean_object* _init_l_Lean_Parser_Term_proj___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_1 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_2 = l_Lean_Parser_Term_proj___closed__3; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; @@ -54489,7 +54473,7 @@ _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; x_2 = l_Lean_Parser_termParser___closed__2; -x_3 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_3 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_4 = 0; x_5 = l_Lean_Parser_Term_proj; x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); @@ -54532,7 +54516,7 @@ lean_object* l_Lean_Parser_Term_proj_parenthesizer(lean_object* x_1, lean_object _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_5 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_5 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_6 = lean_unsigned_to_nat(1024u); x_7 = l_Lean_Parser_Term_proj_parenthesizer___closed__3; x_8 = l_Lean_PrettyPrinter_Parenthesizer_trailingNode_parenthesizer(x_5, x_6, x_7, x_1, x_2, x_3, x_4); @@ -54552,7 +54536,7 @@ _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_PrettyPrinter_parenthesizerAttribute; -x_3 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +x_3 = l_Lean_Parser_Term_proj___elambda__1___closed__1; x_4 = l___regBuiltin_Lean_Parser_Term_proj_parenthesizer___closed__1; x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; @@ -57104,7 +57088,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__10; +x_2 = l_Lean_Meta_evalNat___main___closed__9; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -66489,8 +66473,6 @@ l_Lean_Parser_Term_sort___elambda__1___closed__7 = _init_l_Lean_Parser_Term_sort lean_mark_persistent(l_Lean_Parser_Term_sort___elambda__1___closed__7); l_Lean_Parser_Term_sort___elambda__1___closed__8 = _init_l_Lean_Parser_Term_sort___elambda__1___closed__8(); lean_mark_persistent(l_Lean_Parser_Term_sort___elambda__1___closed__8); -l_Lean_Parser_Term_sort___elambda__1___closed__9 = _init_l_Lean_Parser_Term_sort___elambda__1___closed__9(); -lean_mark_persistent(l_Lean_Parser_Term_sort___elambda__1___closed__9); l_Lean_Parser_Term_sort___closed__1 = _init_l_Lean_Parser_Term_sort___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_sort___closed__1); l_Lean_Parser_Term_sort___closed__2 = _init_l_Lean_Parser_Term_sort___closed__2(); @@ -69679,8 +69661,6 @@ l_Lean_Parser_Term_proj___elambda__1___closed__2 = _init_l_Lean_Parser_Term_proj lean_mark_persistent(l_Lean_Parser_Term_proj___elambda__1___closed__2); l_Lean_Parser_Term_proj___elambda__1___closed__3 = _init_l_Lean_Parser_Term_proj___elambda__1___closed__3(); lean_mark_persistent(l_Lean_Parser_Term_proj___elambda__1___closed__3); -l_Lean_Parser_Term_proj___elambda__1___closed__4 = _init_l_Lean_Parser_Term_proj___elambda__1___closed__4(); -lean_mark_persistent(l_Lean_Parser_Term_proj___elambda__1___closed__4); l_Lean_Parser_Term_proj___closed__1 = _init_l_Lean_Parser_Term_proj___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_proj___closed__1); l_Lean_Parser_Term_proj___closed__2 = _init_l_Lean_Parser_Term_proj___closed__2(); diff --git a/stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c b/stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c index e099ea69a6..521cb727ae 100644 --- a/stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c +++ b/stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c @@ -51,6 +51,7 @@ lean_object* l_Nat_forMAux___main___at_Lean_PrettyPrinter_Parenthesizer_category lean_object* l_Lean_PrettyPrinter_parenthesizerAttribute___closed__1; lean_object* l_unreachable_x21___rarg(lean_object*); extern lean_object* l_Lean_nullKind; +extern lean_object* l_Lean_mkThunk___closed__1; lean_object* l_Array_iterateM_u2082Aux___main___at_Lean_PrettyPrinter_Parenthesizer_compileParserBody___main___spec__9(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_PrettyPrinter_Parenthesizer_compileParserBody___main___closed__9; @@ -437,7 +438,6 @@ lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute(lean_object*); lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___closed__1; lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkNoImmediateColon_parenthesizer(lean_object*); extern lean_object* l_Lean_nullKind___closed__2; -extern lean_object* l_Lean_Meta_mkAuxName___closed__1; lean_object* l_Lean_PrettyPrinter_Parenthesizer_compileParenthesizerDescr___main___closed__5; lean_object* l_Lean_PrettyPrinter_Parenthesizer_compileParenthesizerDescr___main___closed__14; lean_object* l_Lean_Syntax_Traverser_fromSyntax(lean_object*); @@ -9440,7 +9440,7 @@ 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_mkAuxName___closed__1; +x_22 = l_Lean_mkThunk___closed__1; x_23 = 0; x_24 = l_Lean_mkForall(x_22, x_23, x_20, x_7); x_5 = x_13; @@ -9944,7 +9944,7 @@ 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_mkAuxName___closed__1; +x_22 = l_Lean_mkThunk___closed__1; x_23 = 0; x_24 = l_Lean_mkForall(x_22, x_23, x_20, x_7); x_5 = x_13; @@ -10430,7 +10430,7 @@ 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_mkAuxName___closed__1; +x_22 = l_Lean_mkThunk___closed__1; x_23 = 0; x_24 = l_Lean_mkForall(x_22, x_23, x_20, x_7); x_5 = x_13; @@ -10916,7 +10916,7 @@ 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_mkAuxName___closed__1; +x_22 = l_Lean_mkThunk___closed__1; x_23 = 0; x_24 = l_Lean_mkForall(x_22, x_23, x_20, x_7); x_5 = x_13; @@ -11402,7 +11402,7 @@ 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_mkAuxName___closed__1; +x_22 = l_Lean_mkThunk___closed__1; x_23 = 0; x_24 = l_Lean_mkForall(x_22, x_23, x_20, x_7); x_5 = x_13; @@ -11888,7 +11888,7 @@ 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_mkAuxName___closed__1; +x_22 = l_Lean_mkThunk___closed__1; x_23 = 0; x_24 = l_Lean_mkForall(x_22, x_23, x_20, x_7); x_5 = x_13; @@ -12374,7 +12374,7 @@ 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_mkAuxName___closed__1; +x_22 = l_Lean_mkThunk___closed__1; x_23 = 0; x_24 = l_Lean_mkForall(x_22, x_23, x_20, x_7); x_5 = x_13; @@ -12860,7 +12860,7 @@ 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_mkAuxName___closed__1; +x_22 = l_Lean_mkThunk___closed__1; x_23 = 0; x_24 = l_Lean_mkForall(x_22, x_23, x_20, x_7); x_5 = x_13; @@ -13346,7 +13346,7 @@ 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_mkAuxName___closed__1; +x_22 = l_Lean_mkThunk___closed__1; x_23 = 0; x_24 = l_Lean_mkForall(x_22, x_23, x_20, x_7); x_5 = x_13; @@ -13832,7 +13832,7 @@ 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_mkAuxName___closed__1; +x_22 = l_Lean_mkThunk___closed__1; x_23 = 0; x_24 = l_Lean_mkForall(x_22, x_23, x_20, x_7); x_5 = x_13; @@ -14318,7 +14318,7 @@ 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_mkAuxName___closed__1; +x_22 = l_Lean_mkThunk___closed__1; x_23 = 0; x_24 = l_Lean_mkForall(x_22, x_23, x_20, x_7); x_5 = x_13; diff --git a/stage0/stdlib/Lean/ToExpr.c b/stage0/stdlib/Lean/ToExpr.c index a58b911265..3d1ce24ec4 100644 --- a/stage0/stdlib/Lean/ToExpr.c +++ b/stage0/stdlib/Lean/ToExpr.c @@ -14,11 +14,10 @@ extern "C" { #endif lean_object* l_Lean_nameToExpr___closed__3; -lean_object* l_Lean_unitToExpr___closed__3; lean_object* l_Lean_arrayToExpr___rarg(lean_object*); lean_object* l_Lean_boolToExpr; lean_object* l_Lean_unitToExpr___lambda__1___closed__2; -lean_object* l_Lean_unitToExpr___lambda__1___closed__4; +extern lean_object* l_Lean_mkThunkType___closed__2; lean_object* l_Lean_optionToExpr___rarg___lambda__1___closed__8; lean_object* l_Lean_optionToExpr___rarg___lambda__1___closed__4; lean_object* l_Lean_unitToExpr___closed__2; @@ -33,7 +32,6 @@ lean_object* l_Lean_Name_toExprAux___main___closed__1; lean_object* l_Lean_optionToExpr___rarg___lambda__1___closed__6; lean_object* l_Lean_arrayToExpr___rarg___lambda__1___closed__3; lean_object* l_Lean_charToExpr; -lean_object* l_Lean_unitToExpr___lambda__1___closed__5; lean_object* l_Lean_optionToExpr___rarg___closed__1; extern lean_object* l_Lean_Literal_type___closed__3; lean_object* l_Lean_nameToExpr___closed__2; @@ -44,9 +42,9 @@ lean_object* l_Lean_Name_toExprAux___main___closed__2; lean_object* l_Lean_optionToExpr___rarg___lambda__1___closed__1; lean_object* l_Lean_prodToExpr(lean_object*, lean_object*); extern lean_object* l_Nat_HasOfNat___closed__1; +extern lean_object* l_Lean_mkThunkType___closed__3; lean_object* l_Lean_listToExpr___rarg___closed__4; extern lean_object* l_Lean_levelZero; -lean_object* l_Lean_charToExpr___lambda__1___closed__3; lean_object* l_Lean_unitToExpr___lambda__1(lean_object*); lean_object* l_Lean_Name_toExprAux___main___closed__6; lean_object* l_Lean_nameToExpr; @@ -54,7 +52,6 @@ lean_object* l_Lean_List_toExprAux___main(lean_object*); lean_object* l_Lean_boolToExpr___lambda__1___closed__3; lean_object* l_Lean_boolToExpr___closed__3; extern lean_object* l_Lean_Literal_type___closed__6; -lean_object* l_Lean_charToExpr___lambda__1___closed__5; lean_object* l_Lean_prodToExpr___rarg(lean_object*, lean_object*); lean_object* l_Lean_List_toExprAux___main___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_listToExpr___rarg___closed__5; @@ -74,7 +71,6 @@ lean_object* l_Lean_strToExpr___closed__2; lean_object* l_Lean_charToExpr___lambda__1___closed__1; lean_object* l_Lean_charToExpr___lambda__1___boxed(lean_object*); lean_object* l_Lean_arrayToExpr(lean_object*); -lean_object* l_Lean_charToExpr___lambda__1___closed__2; lean_object* l_Lean_Name_toExprAux___main___closed__7; lean_object* l_Lean_optionToExpr___rarg___lambda__1___closed__3; lean_object* l_Lean_prodToExpr___rarg___lambda__1___closed__1; @@ -116,7 +112,6 @@ lean_object* l_Lean_optionToExpr___rarg___lambda__1___closed__2; lean_object* l_Lean_exprToExpr___closed__1; lean_object* l_Lean_arrayToExpr___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_arrayToExpr___rarg___lambda__1___closed__2; -lean_object* l_Lean_charToExpr___lambda__1___closed__4; lean_object* l_Lean_arrayToExpr___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkNatLit(lean_object*); lean_object* l_Lean_mkStrLit(lean_object*); @@ -125,8 +120,10 @@ lean_object* l_Lean_exprToExpr; lean_object* l_Lean_boolToExpr___lambda__1___closed__1; lean_object* l_Lean_arrayToExpr___rarg___closed__2; lean_object* l_Lean_optionToExpr___rarg___lambda__1___closed__7; +extern lean_object* l_Lean_Expr_isCharLit___closed__2; lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_List_toExprAux(lean_object*); +extern lean_object* l_Lean_Expr_isCharLit___closed__4; lean_object* l_Lean_strToExpr; extern lean_object* l_Lean_mkAppStx___closed__2; lean_object* l_Lean_List_toExprAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -342,45 +339,9 @@ return x_3; lean_object* _init_l_Lean_charToExpr___lambda__1___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("Char"); -return x_1; -} -} -lean_object* _init_l_Lean_charToExpr___lambda__1___closed__2() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_charToExpr___lambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_charToExpr___lambda__1___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("ofNat"); -return x_1; -} -} -lean_object* _init_l_Lean_charToExpr___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_charToExpr___lambda__1___closed__2; -x_2 = l_Lean_charToExpr___lambda__1___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_charToExpr___lambda__1___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_charToExpr___lambda__1___closed__4; +x_2 = l_Lean_Expr_isCharLit___closed__4; x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } @@ -391,7 +352,7 @@ _start: lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = lean_uint32_to_nat(x_1); x_3 = l_Lean_mkNatLit(x_2); -x_4 = l_Lean_charToExpr___lambda__1___closed__5; +x_4 = l_Lean_charToExpr___lambda__1___closed__1; x_5 = l_Lean_mkApp(x_4, x_3); return x_5; } @@ -401,7 +362,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_charToExpr___lambda__1___closed__2; +x_2 = l_Lean_Expr_isCharLit___closed__2; x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } @@ -476,7 +437,7 @@ lean_object* _init_l_Lean_unitToExpr___lambda__1___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Unit"); +x_1 = lean_mk_string("unit"); return x_1; } } @@ -484,7 +445,7 @@ lean_object* _init_l_Lean_unitToExpr___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); +x_1 = l_Lean_mkThunkType___closed__2; x_2 = l_Lean_unitToExpr___lambda__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -493,42 +454,6 @@ return x_3; lean_object* _init_l_Lean_unitToExpr___lambda__1___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("unit"); -return x_1; -} -} -lean_object* _init_l_Lean_unitToExpr___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_unitToExpr___lambda__1___closed__2; -x_2 = l_Lean_unitToExpr___lambda__1___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_unitToExpr___lambda__1___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_unitToExpr___lambda__1___closed__4; -x_3 = l_Lean_mkConst(x_2, x_1); -return x_3; -} -} -lean_object* l_Lean_unitToExpr___lambda__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_unitToExpr___lambda__1___closed__5; -return x_2; -} -} -lean_object* _init_l_Lean_unitToExpr___closed__1() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_unitToExpr___lambda__1___closed__2; @@ -536,7 +461,15 @@ x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } -lean_object* _init_l_Lean_unitToExpr___closed__2() { +lean_object* l_Lean_unitToExpr___lambda__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_unitToExpr___lambda__1___closed__3; +return x_2; +} +} +lean_object* _init_l_Lean_unitToExpr___closed__1() { _start: { lean_object* x_1; @@ -544,12 +477,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_unitToExpr___lambda__1___boxed), 1, 0); return x_1; } } -lean_object* _init_l_Lean_unitToExpr___closed__3() { +lean_object* _init_l_Lean_unitToExpr___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_unitToExpr___closed__2; -x_2 = l_Lean_unitToExpr___closed__1; +x_1 = l_Lean_unitToExpr___closed__1; +x_2 = l_Lean_mkThunkType___closed__3; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -560,7 +493,7 @@ lean_object* _init_l_Lean_unitToExpr() { _start: { lean_object* x_1; -x_1 = l_Lean_unitToExpr___closed__3; +x_1 = l_Lean_unitToExpr___closed__2; return x_1; } } @@ -1359,14 +1292,6 @@ l_Lean_boolToExpr = _init_l_Lean_boolToExpr(); lean_mark_persistent(l_Lean_boolToExpr); l_Lean_charToExpr___lambda__1___closed__1 = _init_l_Lean_charToExpr___lambda__1___closed__1(); lean_mark_persistent(l_Lean_charToExpr___lambda__1___closed__1); -l_Lean_charToExpr___lambda__1___closed__2 = _init_l_Lean_charToExpr___lambda__1___closed__2(); -lean_mark_persistent(l_Lean_charToExpr___lambda__1___closed__2); -l_Lean_charToExpr___lambda__1___closed__3 = _init_l_Lean_charToExpr___lambda__1___closed__3(); -lean_mark_persistent(l_Lean_charToExpr___lambda__1___closed__3); -l_Lean_charToExpr___lambda__1___closed__4 = _init_l_Lean_charToExpr___lambda__1___closed__4(); -lean_mark_persistent(l_Lean_charToExpr___lambda__1___closed__4); -l_Lean_charToExpr___lambda__1___closed__5 = _init_l_Lean_charToExpr___lambda__1___closed__5(); -lean_mark_persistent(l_Lean_charToExpr___lambda__1___closed__5); l_Lean_charToExpr___closed__1 = _init_l_Lean_charToExpr___closed__1(); lean_mark_persistent(l_Lean_charToExpr___closed__1); l_Lean_charToExpr___closed__2 = _init_l_Lean_charToExpr___closed__2(); @@ -1387,16 +1312,10 @@ l_Lean_unitToExpr___lambda__1___closed__2 = _init_l_Lean_unitToExpr___lambda__1_ lean_mark_persistent(l_Lean_unitToExpr___lambda__1___closed__2); l_Lean_unitToExpr___lambda__1___closed__3 = _init_l_Lean_unitToExpr___lambda__1___closed__3(); lean_mark_persistent(l_Lean_unitToExpr___lambda__1___closed__3); -l_Lean_unitToExpr___lambda__1___closed__4 = _init_l_Lean_unitToExpr___lambda__1___closed__4(); -lean_mark_persistent(l_Lean_unitToExpr___lambda__1___closed__4); -l_Lean_unitToExpr___lambda__1___closed__5 = _init_l_Lean_unitToExpr___lambda__1___closed__5(); -lean_mark_persistent(l_Lean_unitToExpr___lambda__1___closed__5); l_Lean_unitToExpr___closed__1 = _init_l_Lean_unitToExpr___closed__1(); lean_mark_persistent(l_Lean_unitToExpr___closed__1); l_Lean_unitToExpr___closed__2 = _init_l_Lean_unitToExpr___closed__2(); lean_mark_persistent(l_Lean_unitToExpr___closed__2); -l_Lean_unitToExpr___closed__3 = _init_l_Lean_unitToExpr___closed__3(); -lean_mark_persistent(l_Lean_unitToExpr___closed__3); l_Lean_unitToExpr = _init_l_Lean_unitToExpr(); lean_mark_persistent(l_Lean_unitToExpr); l_Lean_Name_toExprAux___main___closed__1 = _init_l_Lean_Name_toExprAux___main___closed__1(); diff --git a/stage0/stdlib/Lean/Util/CollectLevelParams.c b/stage0/stdlib/Lean/Util/CollectLevelParams.c index 521216199a..0d695da1ef 100644 --- a/stage0/stdlib/Lean/Util/CollectLevelParams.c +++ b/stage0/stdlib/Lean/Util/CollectLevelParams.c @@ -24,6 +24,7 @@ extern lean_object* l_Array_empty___closed__1; size_t l_Lean_Level_hash(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +lean_object* l_Lean_CollectLevelParams_State_collect(lean_object*, lean_object*); uint8_t l_Lean_Level_hasParam(lean_object*); lean_object* l_Std_mkHashSetImp___rarg(lean_object*); uint8_t l_List_elem___main___at_Lean_CollectLevelParams_visitExpr___spec__2(lean_object*, lean_object*); @@ -2542,6 +2543,14 @@ x_3 = l_Lean_CollectLevelParams_main___main(x_2, x_1); return x_3; } } +lean_object* l_Lean_CollectLevelParams_State_collect(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_CollectLevelParams_main___main(x_2, x_1); +return x_3; +} +} lean_object* initialize_Init(lean_object*); lean_object* initialize_Lean_Expr(lean_object*); static bool _G_initialized = false; diff --git a/stage0/stdlib/Lean/Util/Recognizers.c b/stage0/stdlib/Lean/Util/Recognizers.c index 6c324e3a4c..92a96794fd 100644 --- a/stage0/stdlib/Lean/Util/Recognizers.c +++ b/stage0/stdlib/Lean/Util/Recognizers.c @@ -546,12 +546,16 @@ goto _start; } else { -lean_object* x_15; lean_object* x_16; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = l_Lean_Expr_appArg_x21(x_1); lean_dec(x_1); -x_15 = l_List_reverse___rarg(x_2); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_15); -return x_16; +x_16 = l_List_reverse___rarg(x_2); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_17); +return x_18; } } } diff --git a/stage0/stdlib/Lean/Util/WHNF.c b/stage0/stdlib/Lean/Util/WHNF.c index d0595283e6..944ae9b25c 100644 --- a/stage0/stdlib/Lean/Util/WHNF.c +++ b/stage0/stdlib/Lean/Util/WHNF.c @@ -81,7 +81,6 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_List_toExprAux___main___at_Lean_WHNF_toCtorIfLit___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WHNF_reduceQuotRec___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WHNF_unfoldDefinitionAux(lean_object*); -extern lean_object* l_Lean_charToExpr___lambda__1___closed__5; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l___private_Lean_Util_WHNF_7__deltaDefinition___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_shrink___main___rarg(lean_object*, lean_object*); @@ -112,8 +111,8 @@ lean_object* l___private_Lean_Util_WHNF_3__getRecRuleFor___lambda__1___boxed(lea extern lean_object* l_Lean_Literal_type___closed__2; lean_object* l_Lean_WHNF_isRecStuck_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_WHNF_5__isIdRhsApp___closed__2; +extern lean_object* l_Lean_charToExpr___lambda__1___closed__1; lean_object* l_Lean_WHNF_toCtorIfLit___closed__9; -extern lean_object* l_Lean_charToExpr___lambda__1___closed__2; uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); lean_object* l_Lean_WHNF_unfoldDefinitionAux___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_WHNF_1__getFirstCtor___rarg___lambda__1(lean_object*, lean_object*, lean_object*); @@ -182,6 +181,7 @@ lean_object* l_Lean_WHNF_whnfCore___main___rarg___lambda__6___boxed(lean_object* lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_WHNF_7__deltaDefinition___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_WHNF_9__whnfCoreUnstuck(lean_object*); +extern lean_object* l_Lean_Expr_isCharLit___closed__2; lean_object* l_Lean_WHNF_whnfMain___main___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* l_Lean_WHNF_whnfCore___main(lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); @@ -628,7 +628,7 @@ x_6 = lean_unbox_uint32(x_4); lean_dec(x_4); x_7 = lean_uint32_to_nat(x_6); x_8 = l_Lean_mkNatLit(x_7); -x_9 = l_Lean_charToExpr___lambda__1___closed__5; +x_9 = l_Lean_charToExpr___lambda__1___closed__1; x_10 = l_Lean_mkApp(x_9, x_8); lean_inc(x_2); x_11 = l_Lean_List_toExprAux___main___at_Lean_WHNF_toCtorIfLit___spec__1(x_1, x_2, x_5); @@ -718,7 +718,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_charToExpr___lambda__1___closed__2; +x_2 = l_Lean_Expr_isCharLit___closed__2; x_3 = l_Lean_mkConst(x_2, x_1); return x_3; }