diff --git a/stage0/src/Init/Core.lean b/stage0/src/Init/Core.lean index c2d345489d..4e8ae36f98 100644 --- a/stage0/src/Init/Core.lean +++ b/stage0/src/Init/Core.lean @@ -176,6 +176,24 @@ theorem optParam_eq (α : Sort u) (default : α) : optParam α default = α := r infix:50 " != " => bne +class LawfulBEq (α : Type u) [BEq α] : Prop where + eq_of_beq : (a b : α) → (a == b) = true → a = b + +theorem eq_of_beq [BEq α] [LawfulBEq α] {a b : α} (h : (a == b) = true) : a = b := + LawfulBEq.eq_of_beq a b h + +instance : LawfulBEq Bool where + eq_of_beq a b h := by cases a <;> cases b <;> first | rfl | contradiction + +instance : LawfulBEq Nat where + eq_of_beq _ _ h := of_decide_eq_true h + +instance : LawfulBEq Char where + eq_of_beq _ _ h := of_decide_eq_true h + +instance : LawfulBEq String where + eq_of_beq _ _ h := of_decide_eq_true h + /- Logical connectives an equality -/ def implies (a b : Prop) := a → b diff --git a/stage0/src/Init/Data.lean b/stage0/src/Init/Data.lean index 082afdbc40..3e39295878 100644 --- a/stage0/src/Init/Data.lean +++ b/stage0/src/Init/Data.lean @@ -25,3 +25,4 @@ import Init.Data.Hashable import Init.Data.OfScientific import Init.Data.Format import Init.Data.Stream +import Init.Data.Prod diff --git a/stage0/src/Init/Data/List/Basic.lean b/stage0/src/Init/Data/List/Basic.lean index 5534ad57a2..a77e0b9926 100644 --- a/stage0/src/Init/Data/List/Basic.lean +++ b/stage0/src/Init/Data/List/Basic.lean @@ -472,4 +472,16 @@ def minimum? [LE α] [DecidableRel (@LE.le α _)] : List α → Option α | [] => none | a::as => some <| as.foldl min a +instance [BEq α] [LawfulBEq α] : LawfulBEq (List α) where + eq_of_beq as bs := by + induction as generalizing bs with + | nil => intro h; cases bs <;> first | rfl | contradiction + | cons a as ih => + cases bs with + | nil => intro h; contradiction + | cons b bs => + simp [BEq.beq, List.beq] + intro ⟨h₁, h₂⟩ + exact ⟨eq_of_beq h₁, ih _ h₂⟩ + end List diff --git a/stage0/src/Init/Data/Nat/Linear.lean b/stage0/src/Init/Data/Nat/Linear.lean index 0ac61fcdb4..544ac13113 100644 --- a/stage0/src/Init/Data/Nat/Linear.lean +++ b/stage0/src/Init/Data/Nat/Linear.lean @@ -9,6 +9,7 @@ import Init.Classical import Init.SimpLemmas import Init.Data.Nat.Basic import Init.Data.List.Basic +import Init.Data.Prod namespace Nat.Linear @@ -146,6 +147,17 @@ structure PolyCnstr where eq : Bool lhs : Poly rhs : Poly + deriving BEq + +-- TODO: implement LawfulBEq generator companion for BEq +instance : LawfulBEq PolyCnstr where + eq_of_beq a b h := by + cases a; rename_i eq₁ lhs₁ rhs₁ + cases b; rename_i eq₂ lhs₂ rhs₂ + have h : eq₁ == eq₂ && lhs₁ == lhs₂ && rhs₁ == rhs₂ := h + simp at h + have ⟨⟨h₁, h₂⟩, h₃⟩ := h + rw [h₁, eq_of_beq h₂, eq_of_beq h₃] def PolyCnstr.mul (k : Nat) (c : PolyCnstr) : PolyCnstr := { c with lhs := c.lhs.mul k, rhs := c.rhs.mul k } @@ -181,6 +193,10 @@ def PolyCnstr.isValid (c : PolyCnstr) : Bool := else c.lhs.isZero +/-- Return true iff `c₁` has fewer monomials than `c₂`. -/ +def PolyCnstr.hasFewerMonomials (c₁ c₂ : PolyCnstr) : Bool := + c₁.lhs.length + c₁.rhs.length < c₂.lhs.length + c₂.rhs.length + def ExprCnstr.denote (ctx : Context) (c : ExprCnstr) : Prop := if c.eq then c.lhs.denote ctx = c.rhs.denote ctx @@ -188,6 +204,9 @@ def ExprCnstr.denote (ctx : Context) (c : ExprCnstr) : Prop := c.lhs.denote ctx ≤ c.rhs.denote ctx def ExprCnstr.toPoly (c : ExprCnstr) : PolyCnstr := + { c with lhs := c.lhs.toPoly, rhs := c.rhs.toPoly } + +def ExprCnstr.toNormPoly (c : ExprCnstr) : PolyCnstr := let (lhs, rhs) := Poly.cancel c.lhs.toNormPoly c.rhs.toNormPoly { c with lhs, rhs } @@ -196,18 +215,39 @@ abbrev Certificate := List (Nat × ExprCnstr) def Certificate.combineHyps (c : PolyCnstr) (hs : Certificate) : PolyCnstr := match hs with | [] => c - | (k, c') :: hs => combineHyps (PolyCnstr.combine c (c'.toPoly.mul (k+1))) hs + | (k, c') :: hs => combineHyps (PolyCnstr.combine c (c'.toNormPoly.mul (k+1))) hs def Certificate.combine (hs : Certificate) : PolyCnstr := match hs with | [] => { eq := true, lhs := [], rhs := [] } - | (k, c) :: hs => combineHyps (c.toPoly.mul (k+1)) hs + | (k, c) :: hs => combineHyps (c.toNormPoly.mul (k+1)) hs def Certificate.denote (ctx : Context) (c : Certificate) : Prop := match c with | [] => False | (_, c)::hs => c.denote ctx → denote ctx hs +def monomialToExpr (k : Nat) (v : Var) : Expr := + if v = fixedVar then + Expr.num k + else if k = 1 then + Expr.var v + else + Expr.mulL k (Expr.var v) + +def Poly.toExpr (p : Poly) : Expr := + match p with + | [] => Expr.num 0 + | (k, v) :: p => go (monomialToExpr k v) p +where + go (e : Expr) (p : Poly) : Expr := + match p with + | [] => e + | (k, v) :: p => go (Expr.add e (monomialToExpr k v)) p + +def PolyCnstr.toExpr (c : PolyCnstr) : ExprCnstr := + { c with lhs := c.lhs.toExpr, rhs := c.rhs.toExpr } + attribute [local simp] Nat.add_comm Nat.add_assoc Nat.add_left_comm Nat.right_distrib Nat.left_distrib Nat.mul_assoc Nat.mul_comm attribute [local simp] Poly.denote Expr.denote Poly.insertSorted Poly.sort Poly.sort.go Poly.fuse Poly.cancelAux attribute [local simp] Poly.mul Poly.mul.go @@ -439,7 +479,7 @@ theorem Poly.denote_le_cancel_eq (ctx : Context) (m₁ m₂ : Poly) : denote_le attribute [local simp] Poly.denote_le_cancel_eq -@[simp] theorem Expr.denote_toPoly (ctx : Context) (e : Expr) : e.toPoly.denote ctx = e.denote ctx := by +theorem Expr.denote_toPoly (ctx : Context) (e : Expr) : e.toPoly.denote ctx = e.denote ctx := by induction e with | num k => by_cases h : k = 0 <;> simp [toPoly, h, Var.denote] | var i => simp [toPoly] @@ -447,6 +487,8 @@ attribute [local simp] Poly.denote_le_cancel_eq | mulL k a ih => simp [toPoly, ih, -Poly.mul] | mulR k a ih => simp [toPoly, ih, -Poly.mul] +attribute [local simp] Expr.denote_toPoly + theorem Expr.eq_of_toNormPoly (ctx : Context) (a b : Expr) (h : a.toNormPoly = b.toNormPoly) : a.denote ctx = b.denote ctx := by simp [toNormPoly] at h have h := congrArg (Poly.denote ctx) h @@ -468,14 +510,26 @@ theorem Expr.of_cancel_le (ctx : Context) (a b c d : Expr) (h : Poly.cancel a.to theorem Expr.of_cancel_lt (ctx : Context) (a b c d : Expr) (h : Poly.cancel a.inc.toNormPoly b.toNormPoly = (c.inc.toPoly, d.toPoly)) : (a.denote ctx < b.denote ctx) = (c.denote ctx < d.denote ctx) := of_cancel_le ctx a.inc b c.inc d h +theorem ExprCnstr.toPoly_norm_eq (c : ExprCnstr) : c.toPoly.norm = c.toNormPoly := + rfl + theorem ExprCnstr.denote_toPoly (ctx : Context) (c : ExprCnstr) : c.toPoly.denote ctx = c.denote ctx := by cases c; rename_i eq lhs rhs - simp [ExprCnstr.denote, PolyCnstr.denote, ExprCnstr.toPoly] + simp [ExprCnstr.denote, PolyCnstr.denote, ExprCnstr.toPoly]; + by_cases h : eq = true <;> simp [h] + . simp [Poly.denote_eq, Expr.toPoly] + . simp [Poly.denote_le, Expr.toPoly] + +attribute [local simp] ExprCnstr.denote_toPoly + +theorem ExprCnstr.denote_toNormPoly (ctx : Context) (c : ExprCnstr) : c.toNormPoly.denote ctx = c.denote ctx := by + cases c; rename_i eq lhs rhs + simp [ExprCnstr.denote, PolyCnstr.denote, ExprCnstr.toNormPoly] by_cases h : eq = true <;> simp [h] . rw [Poly.denote_eq_cancel_eq]; simp [Poly.denote_eq, Expr.toNormPoly] . rw [Poly.denote_le_cancel_eq]; simp [Poly.denote_le, Expr.toNormPoly] -attribute [local simp] ExprCnstr.denote_toPoly +attribute [local simp] ExprCnstr.denote_toNormPoly theorem Poly.mul.go_denote (ctx : Context) (k : Nat) (p : Poly) : (Poly.mul.go k p).denote ctx = k * p.denote ctx := by match p with @@ -558,12 +612,12 @@ def PolyCnstr.eq_true_of_isValid (ctx : Context) {c : PolyCnstr} : c.isValid → have := Nat.zero_le (Poly.denote ctx rhs) simp [this] -def ExprCnstr.eq_false_of_isUnsat (ctx : Context) (c : ExprCnstr) (h : c.toPoly.isUnsat) : c.denote ctx = False := by +def ExprCnstr.eq_false_of_isUnsat (ctx : Context) (c : ExprCnstr) (h : c.toNormPoly.isUnsat) : c.denote ctx = False := by have := PolyCnstr.eq_false_of_isUnsat ctx h simp at this assumption -def ExprCnstr.eq_true_of_isValid (ctx : Context) (c : ExprCnstr) (h : c.toPoly.isValid) : c.denote ctx = True := by +def ExprCnstr.eq_true_of_isValid (ctx : Context) (c : ExprCnstr) (h : c.toNormPoly.isValid) : c.denote ctx = True := by have := PolyCnstr.eq_true_of_isValid ctx h simp at this assumption @@ -573,10 +627,10 @@ theorem Certificate.of_combineHyps (ctx : Context) (c : PolyCnstr) (cs : Certifi | [] => simp [combineHyps, denote] at *; exact h | (k, c')::cs => intro h₁ h₂ - have := PolyCnstr.denote_combine (ctx := ctx) (c₂ := PolyCnstr.mul (k + 1) (ExprCnstr.toPoly c')) h₁ + have := PolyCnstr.denote_combine (ctx := ctx) (c₂ := PolyCnstr.mul (k + 1) (ExprCnstr.toNormPoly c')) h₁ simp at this have := this h₂ - have ih := of_combineHyps ctx (PolyCnstr.combine c (PolyCnstr.mul (k + 1) (ExprCnstr.toPoly c'))) cs + have ih := of_combineHyps ctx (PolyCnstr.combine c (PolyCnstr.mul (k + 1) (ExprCnstr.toNormPoly c'))) cs exact ih h this theorem Certificate.of_combine (ctx : Context) (cs : Certificate) (h : cs.combine.denote ctx → False) : cs.denote ctx := by @@ -592,4 +646,29 @@ theorem Certificate.of_combine_isUnsat (ctx : Context) (cs : Certificate) (h : c have h := PolyCnstr.eq_false_of_isUnsat ctx h of_combine ctx cs (fun h' => Eq.mp h h') +theorem denote_monomialToExpr (ctx : Context) (k : Nat) (v : Var) : (monomialToExpr k v).denote ctx = k * v.denote ctx := by + simp [monomialToExpr] + by_cases h : v = fixedVar <;> simp [h, Expr.denote] + . simp [Var.denote] + . by_cases h : k = 1 <;> simp [h, Expr.denote] + +attribute [local simp] denote_monomialToExpr + +theorem Poly.denote_toExpr_go (ctx : Context) (e : Expr) (p : Poly) : (toExpr.go e p).denote ctx = e.denote ctx + p.denote ctx := by + induction p generalizing e with + | nil => simp [toExpr.go, Poly.denote] + | cons kv p ih => cases kv; simp [toExpr.go, ih, Expr.denote, Poly.denote] + +attribute [local simp] Poly.denote_toExpr_go + +theorem Poly.denote_toExpr (ctx : Context) (p : Poly) : p.toExpr.denote ctx = p.denote ctx := by + match p with + | [] => simp [toExpr, Expr.denote, Poly.denote] + | (k, v) :: p => simp [toExpr, Expr.denote, Poly.denote] + +theorem ExprCnstr.eq_of_toNormPoly_eq (ctx : Context) (c d : ExprCnstr) (h : c.toNormPoly == d.toPoly) : c.denote ctx = d.denote ctx := by + have h := congrArg (PolyCnstr.denote ctx) (eq_of_beq h) + simp at h + assumption + end Nat.Linear diff --git a/stage0/src/Init/Data/Prod.lean b/stage0/src/Init/Data/Prod.lean new file mode 100644 index 0000000000..6b192a4e3d --- /dev/null +++ b/stage0/src/Init/Data/Prod.lean @@ -0,0 +1,10 @@ +/- +Copyright (c) 2022 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Author: Leonardo de Moura +-/ +prelude +import Init.SimpLemmas + +instance [BEq α] [BEq β] [LawfulBEq α] [LawfulBEq β] : LawfulBEq (α × β) where + eq_of_beq a b h := by cases a; cases b; simp [BEq.beq] at h; have ⟨h₁, h₂⟩ := h; rw [eq_of_beq h₁, eq_of_beq h₂] diff --git a/stage0/src/Init/Meta.lean b/stage0/src/Init/Meta.lean index 84382169d8..222139c82a 100644 --- a/stage0/src/Init/Meta.lean +++ b/stage0/src/Init/Meta.lean @@ -1008,6 +1008,7 @@ structure Config where iota : Bool := true proj : Bool := true decide : Bool := true + arith : Bool := true deriving Inhabited, BEq, Repr -- Configuration object for `simp_all` @@ -1020,7 +1021,8 @@ def neutralConfig : Simp.Config := eta := false iota := false proj := false - decide := false } + decide := false + arith := false } end Simp diff --git a/stage0/src/Lean/Meta/Tactic/LinearArith.lean b/stage0/src/Lean/Meta/Tactic/LinearArith.lean index ed683ee4aa..139a7e7637 100644 --- a/stage0/src/Lean/Meta/Tactic/LinearArith.lean +++ b/stage0/src/Lean/Meta/Tactic/LinearArith.lean @@ -4,3 +4,4 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ import Lean.Meta.Tactic.LinearArith.Basic +import Lean.Meta.Tactic.LinearArith.Nat diff --git a/stage0/src/Lean/Meta/Tactic/LinearArith/Nat.lean b/stage0/src/Lean/Meta/Tactic/LinearArith/Nat.lean index b1fa3d76ec..13f44e098b 100644 --- a/stage0/src/Lean/Meta/Tactic/LinearArith/Nat.lean +++ b/stage0/src/Lean/Meta/Tactic/LinearArith/Nat.lean @@ -12,25 +12,48 @@ deriving instance Repr for Nat.Linear.Expr abbrev LinearExpr := Nat.Linear.Expr abbrev LinearCnstr := Nat.Linear.ExprCnstr +abbrev PolyExpr := Nat.Linear.Poly -def LinearExpr.toExpr (ctx : Array Expr) (e : LinearExpr) : Expr := +def LinearExpr.toExpr (e : LinearExpr) : Expr := open Nat.Linear.Expr in match e with | num v => mkApp (mkConst ``num) (mkNatLit v) - | var i => if h : i < ctx.size then ctx.get ⟨i, h⟩ else mkApp (mkConst ``var) (mkNatLit i) - | add a b => mkApp2 (mkConst ``add) (toExpr ctx a) (toExpr ctx b) - | mulL k a => mkApp2 (mkConst ``mulL) (mkNatLit k) (toExpr ctx a) - | mulR a k => mkApp2 (mkConst ``mulL) (toExpr ctx a) (mkNatLit k) + | var i => mkApp (mkConst ``var) (mkNatLit i) + | add a b => mkApp2 (mkConst ``add) (toExpr a) (toExpr b) + | mulL k a => mkApp2 (mkConst ``mulL) (mkNatLit k) (toExpr a) + | mulR a k => mkApp2 (mkConst ``mulL) (toExpr a) (mkNatLit k) instance : ToExpr LinearExpr where - toExpr a := a.toExpr #[] + toExpr a := a.toExpr toTypeExpr := mkConst ``Nat.Linear.Expr +protected def LinearCnstr.toExpr (c : LinearCnstr) : Expr := + mkApp3 (mkConst ``Nat.Linear.ExprCnstr.mk) (toExpr c.eq) (LinearExpr.toExpr c.lhs) (LinearExpr.toExpr c.rhs) + +instance : ToExpr LinearCnstr where + toExpr a := a.toExpr + toTypeExpr := mkConst ``Nat.Linear.ExprCnstr + +open Nat.Linear.Expr in +def LinearExpr.toArith (ctx : Array Expr) (e : LinearExpr) : MetaM Expr := do + match e with + | num v => return mkNatLit v + | var i => return ctx[i] + | add a b => mkAdd (← toArith ctx a) (← toArith ctx b) + | mulL k a => mkMul (mkNatLit k) (← toArith ctx a) + | mulR a k => mkMul (← toArith ctx a) (mkNatLit k) + +def LinearCnstr.toArith (ctx : Array Expr) (c : LinearCnstr) : MetaM Expr := do + if c.eq then + mkEq (← LinearExpr.toArith ctx c.lhs) (← LinearExpr.toArith ctx c.rhs) + else + return mkApp4 (mkConst ``LE.le [levelZero]) (mkConst ``Nat) (mkConst ``instLENat) (← LinearExpr.toArith ctx c.lhs) (← LinearExpr.toArith ctx c.rhs) + namespace ToLinear structure State where - varMap : ExprMap Nat - vars : Array Expr + varMap : ExprMap Nat := {} + vars : Array Expr := #[] abbrev M := StateRefT State MetaM @@ -101,14 +124,47 @@ partial def toLinearCnstr? (e : Expr) : M (Option LinearCnstr) := do else if declName == ``Nat.lt && numArgs == 2 then return some { eq := false, lhs := (← toLinearExpr (e.getArg! 0)).inc, rhs := (← toLinearExpr (e.getArg! 1)) } else if numArgs == 4 && (declName == ``LE.le || declName == ``GE.ge || declName == ``LT.lt || declName == ``GT.gt) then - if let some e ← unfoldProjInst? e then - toLinearCnstr? e + if (← isDefEq (e.getArg! 0) (mkConst ``Nat)) then + if let some e ← unfoldProjInst? e then + toLinearCnstr? e + else + return none else return none else return none | _ => return none +def run (x : M α) : MetaM (α × Array Expr) := do + let (a, s) ← x.run {} + return (a, s.vars) + end ToLinear +open ToLinear (toLinearCnstr? toLinearExpr) + +def toContextExpr (ctx : Array Expr) : MetaM Expr := do + mkListLit (mkConst ``Nat) ctx.toList + +def reflTrue : Expr := + mkApp2 (mkConst ``Eq.refl [levelOne]) (mkConst ``Bool) (mkConst ``Bool.true) + +def simpCnstr? (e : Expr) : MetaM (Option (Expr × Expr)) := do + let (some c, ctx) ← ToLinear.run (ToLinear.toLinearCnstr? e) | return none + let c₁ := c.toPoly + let c₂ := c₁.norm + if c₂.isUnsat then + let p := mkApp3 (mkConst ``Nat.Linear.ExprCnstr.eq_false_of_isUnsat) (← toContextExpr ctx) (toExpr c) reflTrue + return some (mkConst ``False, p) + else if c₂.isValid then + let p := mkApp3 (mkConst ``Nat.Linear.ExprCnstr.eq_true_of_isValid) (← toContextExpr ctx) (toExpr c) reflTrue + return some (mkConst ``True, p) + else if c₂.hasFewerMonomials c₁ then + let c₂ : LinearCnstr := c₂.toExpr + let p := mkApp4 (mkConst ``Nat.Linear.ExprCnstr.eq_of_toNormPoly_eq) (← toContextExpr ctx) (toExpr c) (toExpr c₂) reflTrue + let r ← c₂.toArith ctx + return some (r, p) + else + return none + end Lean.Meta.Linear.Nat diff --git a/stage0/stdlib/Init/Data.c b/stage0/stdlib/Init/Data.c index 6dc1d3a09f..3d95f716ad 100644 --- a/stage0/stdlib/Init/Data.c +++ b/stage0/stdlib/Init/Data.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Data -// Imports: Init.Data.Basic Init.Data.Nat Init.Data.Char Init.Data.String Init.Data.List Init.Data.Int Init.Data.Array Init.Data.ByteArray Init.Data.FloatArray Init.Data.Fin Init.Data.UInt Init.Data.Float Init.Data.Option Init.Data.Ord Init.Data.Random Init.Data.ToString Init.Data.Range Init.Data.Hashable Init.Data.OfScientific Init.Data.Format Init.Data.Stream +// Imports: Init.Data.Basic Init.Data.Nat Init.Data.Char Init.Data.String Init.Data.List Init.Data.Int Init.Data.Array Init.Data.ByteArray Init.Data.FloatArray Init.Data.Fin Init.Data.UInt Init.Data.Float Init.Data.Option Init.Data.Ord Init.Data.Random Init.Data.ToString Init.Data.Range Init.Data.Hashable Init.Data.OfScientific Init.Data.Format Init.Data.Stream Init.Data.Prod #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -34,6 +34,7 @@ lean_object* initialize_Init_Data_Hashable(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_OfScientific(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Format(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Stream(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Data_Prod(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Data(uint8_t builtin, lean_object* w) { lean_object * res; @@ -102,6 +103,9 @@ lean_dec_ref(res); res = initialize_Init_Data_Stream(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_Data_Prod(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Data/Nat/Linear.c b/stage0/stdlib/Init/Data/Nat/Linear.c index 220e34219c..43768c8a43 100644 --- a/stage0/stdlib/Init/Data/Nat/Linear.c +++ b/stage0/stdlib/Init/Data/Nat/Linear.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Data.Nat.Linear -// Imports: Init.Coe Init.Classical Init.SimpLemmas Init.Data.Nat.Basic Init.Data.List.Basic +// Imports: Init.Coe Init.Classical Init.SimpLemmas Init.Data.Nat.Basic Init.Data.List.Basic Init.Data.Prod #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -15,10 +15,12 @@ extern "C" { #endif lean_object* l_List_reverse___rarg(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_ExprCnstr_toPoly(lean_object*); +LEAN_EXPORT uint8_t l_List_beq___at___private_Init_Data_Nat_Linear_0__Nat_Linear_beqPolyCnstr____x40_Init_Data_Nat_Linear___hyg_1258____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Poly_mul_go(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_PolyCnstr_norm(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Poly_cancelAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Certificate_combine___boxed(lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Linear_0__Nat_Linear_beqPolyCnstr____x40_Init_Data_Nat_Linear___hyg_1258____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_fixedVar; LEAN_EXPORT lean_object* l_Nat_Linear_Poly_cancel(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Poly_sort_go(lean_object*, lean_object*); @@ -28,10 +30,12 @@ LEAN_EXPORT lean_object* l_Nat_Linear_Poly_denote___boxed(lean_object*, lean_obj LEAN_EXPORT lean_object* l_Nat_Linear_Expr_toPoly(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Certificate_combineHyps___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Expr_toNormPoly___boxed(lean_object*); +LEAN_EXPORT uint8_t l_Nat_Linear_PolyCnstr_hasFewerMonomials(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Expr_denote___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_PolyCnstr_mul___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Var_denote_go___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Poly_mul___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Nat_Linear_monomialToExpr(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Nat_Linear_Poly_isZero(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Certificate_combine(lean_object*); @@ -40,18 +44,26 @@ LEAN_EXPORT lean_object* l_Nat_Linear_Poly_sort(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Expr_denote(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Nat_Linear_Poly_toExpr_go(lean_object*, lean_object*); static lean_object* l_Nat_Linear_instInhabitedExpr___closed__1; +LEAN_EXPORT lean_object* l_Nat_Linear_PolyCnstr_toExpr(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Poly_isZero___boxed(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Expr_inc(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Poly_mul(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Var_denote_go(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Poly_denote(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Nat_Linear_instBEqPolyCnstr; LEAN_EXPORT uint8_t l_Nat_Linear_PolyCnstr_isValid(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_PolyCnstr_isUnsat___boxed(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_PolyCnstr_mul(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_beq___at___private_Init_Data_Nat_Linear_0__Nat_Linear_beqPolyCnstr____x40_Init_Data_Nat_Linear___hyg_1258____spec__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Nat_Linear_ExprCnstr_toNormPoly(lean_object*); +LEAN_EXPORT uint8_t l___private_Init_Data_Nat_Linear_0__Nat_Linear_beqPolyCnstr____x40_Init_Data_Nat_Linear___hyg_1258_(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Nat_Linear_Poly_toExpr(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Expr_toNormPoly(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Expr_toPoly___boxed(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_instInhabitedExpr; +LEAN_EXPORT lean_object* l_Nat_Linear_ExprCnstr_toNormPoly___boxed(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Poly_isNum_x3f___boxed(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Certificate_combineHyps(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Nat_Linear_Poly_isNonZero(lean_object*); @@ -67,6 +79,8 @@ static lean_object* l_Nat_Linear_Expr_inc___closed__1; LEAN_EXPORT lean_object* l_Nat_Linear_PolyCnstr_combine(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Nat_Linear_PolyCnstr_isUnsat(lean_object*); lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); +static lean_object* l_Nat_Linear_instBEqPolyCnstr___closed__1; +LEAN_EXPORT lean_object* l_Nat_Linear_PolyCnstr_hasFewerMonomials___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_PolyCnstr_isValid___boxed(lean_object*); LEAN_EXPORT lean_object* l_Nat_Linear_Poly_fuse(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -2171,6 +2185,181 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } +LEAN_EXPORT uint8_t l_List_beq___at___private_Init_Data_Nat_Linear_0__Nat_Linear_beqPolyCnstr____x40_Init_Data_Nat_Linear___hyg_1258____spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(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 +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_5; +x_5 = 0; +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; uint8_t x_14; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_2, 0); +x_8 = lean_ctor_get(x_1, 1); +x_9 = lean_ctor_get(x_2, 1); +x_10 = lean_ctor_get(x_6, 0); +x_11 = lean_ctor_get(x_6, 1); +x_12 = lean_ctor_get(x_7, 0); +x_13 = lean_ctor_get(x_7, 1); +x_14 = lean_nat_dec_eq(x_10, x_12); +if (x_14 == 0) +{ +uint8_t x_15; +x_15 = 0; +return x_15; +} +else +{ +uint8_t x_16; +x_16 = lean_nat_dec_eq(x_11, x_13); +if (x_16 == 0) +{ +uint8_t x_17; +x_17 = 0; +return x_17; +} +else +{ +x_1 = x_8; +x_2 = x_9; +goto _start; +} +} +} +} +} +} +LEAN_EXPORT uint8_t l___private_Init_Data_Nat_Linear_0__Nat_Linear_beqPolyCnstr____x40_Init_Data_Nat_Linear___hyg_1258_(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); +x_7 = lean_ctor_get(x_2, 0); +x_8 = lean_ctor_get(x_2, 1); +if (x_3 == 0) +{ +if (x_6 == 0) +{ +uint8_t x_15; +x_15 = 1; +x_9 = x_15; +goto block_14; +} +else +{ +uint8_t x_16; +x_16 = 0; +x_9 = x_16; +goto block_14; +} +} +else +{ +if (x_6 == 0) +{ +uint8_t x_17; +x_17 = 0; +x_9 = x_17; +goto block_14; +} +else +{ +uint8_t x_18; +x_18 = 1; +x_9 = x_18; +goto block_14; +} +} +block_14: +{ +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 0; +return x_10; +} +else +{ +uint8_t x_11; +x_11 = l_List_beq___at___private_Init_Data_Nat_Linear_0__Nat_Linear_beqPolyCnstr____x40_Init_Data_Nat_Linear___hyg_1258____spec__1(x_4, x_7); +if (x_11 == 0) +{ +uint8_t x_12; +x_12 = 0; +return x_12; +} +else +{ +uint8_t x_13; +x_13 = l_List_beq___at___private_Init_Data_Nat_Linear_0__Nat_Linear_beqPolyCnstr____x40_Init_Data_Nat_Linear___hyg_1258____spec__1(x_5, x_8); +return x_13; +} +} +} +} +} +LEAN_EXPORT lean_object* l_List_beq___at___private_Init_Data_Nat_Linear_0__Nat_Linear_beqPolyCnstr____x40_Init_Data_Nat_Linear___hyg_1258____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_List_beq___at___private_Init_Data_Nat_Linear_0__Nat_Linear_beqPolyCnstr____x40_Init_Data_Nat_Linear___hyg_1258____spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Linear_0__Nat_Linear_beqPolyCnstr____x40_Init_Data_Nat_Linear___hyg_1258____boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l___private_Init_Data_Nat_Linear_0__Nat_Linear_beqPolyCnstr____x40_Init_Data_Nat_Linear___hyg_1258_(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +static lean_object* _init_l_Nat_Linear_instBEqPolyCnstr___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Init_Data_Nat_Linear_0__Nat_Linear_beqPolyCnstr____x40_Init_Data_Nat_Linear___hyg_1258____boxed), 2, 0); +return x_1; +} +} +static lean_object* _init_l_Nat_Linear_instBEqPolyCnstr() { +_start: +{ +lean_object* x_1; +x_1 = l_Nat_Linear_instBEqPolyCnstr___closed__1; +return x_1; +} +} LEAN_EXPORT lean_object* l_Nat_Linear_PolyCnstr_mul(lean_object* x_1, lean_object* x_2) { _start: { @@ -2500,9 +2689,70 @@ x_3 = lean_box(x_2); return x_3; } } +LEAN_EXPORT uint8_t l_Nat_Linear_PolyCnstr_hasFewerMonomials(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; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_unsigned_to_nat(0u); +x_5 = l_List_lengthTRAux___rarg(x_3, x_4); +x_6 = lean_ctor_get(x_1, 1); +x_7 = l_List_lengthTRAux___rarg(x_6, x_4); +x_8 = lean_nat_add(x_5, x_7); +lean_dec(x_7); +lean_dec(x_5); +x_9 = lean_ctor_get(x_2, 0); +x_10 = l_List_lengthTRAux___rarg(x_9, x_4); +x_11 = lean_ctor_get(x_2, 1); +x_12 = l_List_lengthTRAux___rarg(x_11, x_4); +x_13 = lean_nat_add(x_10, x_12); +lean_dec(x_12); +lean_dec(x_10); +x_14 = lean_nat_dec_lt(x_8, x_13); +lean_dec(x_13); +lean_dec(x_8); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Nat_Linear_PolyCnstr_hasFewerMonomials___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Nat_Linear_PolyCnstr_hasFewerMonomials(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} LEAN_EXPORT lean_object* l_Nat_Linear_ExprCnstr_toPoly(lean_object* x_1) { _start: { +uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); +x_3 = lean_ctor_get(x_1, 0); +x_4 = lean_ctor_get(x_1, 1); +x_5 = l_Nat_Linear_Expr_toPoly(x_3); +x_6 = l_Nat_Linear_Expr_toPoly(x_4); +x_7 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_7, 1, x_6); +lean_ctor_set_uint8(x_7, sizeof(void*)*2, x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Nat_Linear_ExprCnstr_toPoly___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Nat_Linear_ExprCnstr_toPoly(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Nat_Linear_ExprCnstr_toNormPoly(lean_object* x_1) { +_start: +{ uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); x_3 = lean_ctor_get(x_1, 0); @@ -2522,11 +2772,11 @@ lean_ctor_set_uint8(x_10, sizeof(void*)*2, x_2); return x_10; } } -LEAN_EXPORT lean_object* l_Nat_Linear_ExprCnstr_toPoly___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Nat_Linear_ExprCnstr_toNormPoly___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Nat_Linear_ExprCnstr_toPoly(x_1); +x_2 = l_Nat_Linear_ExprCnstr_toNormPoly(x_1); lean_dec(x_1); return x_2; } @@ -2547,7 +2797,7 @@ x_5 = lean_ctor_get(x_3, 0); x_6 = lean_ctor_get(x_3, 1); x_7 = lean_unsigned_to_nat(1u); x_8 = lean_nat_add(x_5, x_7); -x_9 = l_Nat_Linear_ExprCnstr_toPoly(x_6); +x_9 = l_Nat_Linear_ExprCnstr_toNormPoly(x_6); x_10 = l_Nat_Linear_PolyCnstr_mul(x_8, x_9); lean_dec(x_8); x_11 = l_Nat_Linear_PolyCnstr_combine(x_1, x_10); @@ -2597,7 +2847,7 @@ x_5 = lean_ctor_get(x_3, 0); x_6 = lean_ctor_get(x_3, 1); x_7 = lean_unsigned_to_nat(1u); x_8 = lean_nat_add(x_5, x_7); -x_9 = l_Nat_Linear_ExprCnstr_toPoly(x_6); +x_9 = l_Nat_Linear_ExprCnstr_toNormPoly(x_6); x_10 = l_Nat_Linear_PolyCnstr_mul(x_8, x_9); lean_dec(x_8); x_11 = l_Nat_Linear_Certificate_combineHyps(x_10, x_4); @@ -2614,11 +2864,129 @@ lean_dec(x_1); return x_2; } } +LEAN_EXPORT lean_object* l_Nat_Linear_monomialToExpr(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = l_Nat_Linear_fixedVar; +x_4 = lean_nat_dec_eq(x_2, x_3); +if (x_4 == 0) +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_unsigned_to_nat(1u); +x_6 = lean_nat_dec_eq(x_1, x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_7, 0, x_2); +x_8 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_8, 0, x_1); +lean_ctor_set(x_8, 1, x_7); +return x_8; +} +else +{ +lean_object* x_9; +lean_dec(x_1); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_2); +return x_9; +} +} +else +{ +lean_object* x_10; +lean_dec(x_2); +x_10 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_10, 0, x_1); +return x_10; +} +} +} +LEAN_EXPORT lean_object* l_Nat_Linear_Poly_toExpr_go(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +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, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +lean_dec(x_2); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = l_Nat_Linear_monomialToExpr(x_5, x_6); +x_8 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_8, 0, x_1); +lean_ctor_set(x_8, 1, x_7); +x_1 = x_8; +x_2 = x_4; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l_Nat_Linear_Poly_toExpr(lean_object* x_1) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_2; +x_2 = l_Nat_Linear_instInhabitedExpr___closed__1; +return x_2; +} +else +{ +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_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_ctor_get(x_3, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_3, 1); +lean_inc(x_6); +lean_dec(x_3); +x_7 = l_Nat_Linear_monomialToExpr(x_5, x_6); +x_8 = l_Nat_Linear_Poly_toExpr_go(x_7, x_4); +return x_8; +} +} +} +LEAN_EXPORT lean_object* l_Nat_Linear_PolyCnstr_toExpr(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = l_Nat_Linear_Poly_toExpr(x_3); +x_6 = l_Nat_Linear_Poly_toExpr(x_4); +x_7 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_7, 0, x_5); +lean_ctor_set(x_7, 1, x_6); +lean_ctor_set_uint8(x_7, sizeof(void*)*2, x_2); +return x_7; +} +} lean_object* initialize_Init_Coe(uint8_t builtin, lean_object*); lean_object* initialize_Init_Classical(uint8_t builtin, lean_object*); lean_object* initialize_Init_SimpLemmas(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Nat_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_List_Basic(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Data_Prod(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init_Data_Nat_Linear(uint8_t builtin, lean_object* w) { lean_object * res; @@ -2639,6 +3007,9 @@ lean_dec_ref(res); res = initialize_Init_Data_List_Basic(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_Data_Prod(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Nat_Linear_fixedVar = _init_l_Nat_Linear_fixedVar(); lean_mark_persistent(l_Nat_Linear_fixedVar); l_Nat_Linear_instInhabitedExpr___closed__1 = _init_l_Nat_Linear_instInhabitedExpr___closed__1(); @@ -2649,6 +3020,10 @@ l_Nat_Linear_Poly_isNum_x3f___closed__1 = _init_l_Nat_Linear_Poly_isNum_x3f___cl lean_mark_persistent(l_Nat_Linear_Poly_isNum_x3f___closed__1); l_Nat_Linear_Expr_inc___closed__1 = _init_l_Nat_Linear_Expr_inc___closed__1(); lean_mark_persistent(l_Nat_Linear_Expr_inc___closed__1); +l_Nat_Linear_instBEqPolyCnstr___closed__1 = _init_l_Nat_Linear_instBEqPolyCnstr___closed__1(); +lean_mark_persistent(l_Nat_Linear_instBEqPolyCnstr___closed__1); +l_Nat_Linear_instBEqPolyCnstr = _init_l_Nat_Linear_instBEqPolyCnstr(); +lean_mark_persistent(l_Nat_Linear_instBEqPolyCnstr); l_Nat_Linear_Certificate_combine___closed__1 = _init_l_Nat_Linear_Certificate_combine___closed__1(); lean_mark_persistent(l_Nat_Linear_Certificate_combine___closed__1); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Init/Data/Prod.c b/stage0/stdlib/Init/Data/Prod.c new file mode 100644 index 0000000000..817f1991d1 --- /dev/null +++ b/stage0/stdlib/Init/Data/Prod.c @@ -0,0 +1,29 @@ +// Lean compiler output +// Module: Init.Data.Prod +// Imports: Init.SimpLemmas +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* initialize_Init_SimpLemmas(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Init_Data_Prod(uint8_t builtin, lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init_SimpLemmas(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Init/Meta.c b/stage0/stdlib/Init/Meta.c index 10961e242b..92b89c519a 100644 --- a/stage0/stdlib/Init/Meta.c +++ b/stage0/stdlib/Init/Meta.c @@ -39,6 +39,7 @@ LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeDecimalLitAu LEAN_EXPORT lean_object* l_Lean_instQuoteBool(uint8_t); LEAN_EXPORT lean_object* l_Lean_Syntax_decodeScientificLitVal_x3f_decodeAfterExp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_mkSepArray___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t lean_is_inaccessible_user_name(lean_object*); static lean_object* l_Lean_versionString___closed__1; lean_object* lean_mk_empty_array_with_capacity(lean_object*); @@ -49,15 +50,14 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_getTrailingSize(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_expandInterpolatedStr___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____spec__2(lean_object*, lean_object*); static lean_object* l_Lean_Name_reprPrec___closed__7; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__2; static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x40_Init_Meta___hyg_8435____closed__11; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_updateFirst___at_Lean_Syntax_setHeadInfoAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__21; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__25; extern lean_object* l_Lean_nullKind; LEAN_EXPORT lean_object* l_Lean_Syntax_getSepArgs___boxed(lean_object*); static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__38; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Array_filterSepElemsMAux___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__6; static lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__7; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeHexDigit(lean_object*, lean_object*); static lean_object* l_Lean_Name_escapePart___closed__1; @@ -81,7 +81,6 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_decodeQuotedChar(lean_object*, lean_objec static lean_object* l_repr___at___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____spec__3___closed__17; static lean_object* l_Lean_mkSepArray___closed__2; static lean_object* l_Lean_versionString___closed__4; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__29; LEAN_EXPORT lean_object* l_Lean_Syntax_mkSep(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__34; static lean_object* l_Lean_mkHole___closed__7; @@ -98,32 +97,35 @@ static lean_object* l_Lean_termEval__prec_____closed__6; static lean_object* l_Lean_version_specialDesc___closed__1; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_updateFirst(lean_object*); LEAN_EXPORT lean_object* l_Lean_monadNameGeneratorLift(lean_object*, lean_object*); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__34; LEAN_EXPORT lean_object* l_Array_mapSepElemsM___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_toolchain___closed__9; static lean_object* l_repr___at___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____spec__3___closed__8; extern lean_object* l_Lean_maxRecDepthErrorMessage; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__2; static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x40_Init_Meta___hyg_8435____closed__19; static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__13; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__23; LEAN_EXPORT lean_object* l_Lean_Syntax_decodeScientificLitVal_x3f_decodeAfterDot(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_toNat___boxed(lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_memoize___default; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__13; static lean_object* l_Lean_toolchain___closed__4; LEAN_EXPORT lean_object* l_Lean_Syntax_getHead_x3f(lean_object*); static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__25; LEAN_EXPORT uint8_t l_Lean_Syntax_structEq(lean_object*, lean_object*); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__21; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeInterpStrQuotedChar(lean_object*, lean_object*); static lean_object* l_Lean_githash___closed__1; LEAN_EXPORT lean_object* l_Lean_termEval__prec__; LEAN_EXPORT lean_object* l_Lean___aux__Init__Meta______macroRules__Lean__termEval__prio____1(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_expandInterpolatedStrChunks___spec__1___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_expandInterpolatedStrChunks___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__22; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__4; static lean_object* l___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____closed__13; lean_object* lean_string_utf8_prev(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_isNatLitAux(lean_object*, lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__5; LEAN_EXPORT lean_object* l_Lean_Syntax_SepArray_ofElemsUsingRef___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__40; static lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__5; @@ -134,20 +136,20 @@ static lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__3 LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_findAux___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____closed__21; static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__8; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__9; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_getHead_x3f___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); uint8_t l_Char_isDigit(uint32_t); LEAN_EXPORT lean_object* l_Lean_Name_reprPrec(lean_object*, lean_object*); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__17; static lean_object* l_Lean_instQuoteBool___closed__7; LEAN_EXPORT lean_object* l_Lean_Name_escapePart(lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__14; LEAN_EXPORT lean_object* l_Lean_withHeadRefOnly___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_decodeScientificLitVal_x3f_decodeExp(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__28; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__33; LEAN_EXPORT lean_object* l_Lean_isGreek___boxed(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_expandInterpolatedStrChunks___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeBinLitAux(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__27; static lean_object* l___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____closed__6; LEAN_EXPORT uint32_t l_Lean_idEndEscape; LEAN_EXPORT lean_object* l_repr___at___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____spec__1(lean_object*); @@ -159,10 +161,10 @@ LEAN_EXPORT lean_object* l___private_Init_Data_String_Basic_0__Substring_takeWhi LEAN_EXPORT lean_object* l_Lean_isIdRest___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_instQuoteProd(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__36; static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__1; LEAN_EXPORT uint8_t l_Lean_isIdBeginEscape(uint32_t); static lean_object* l_List_foldr___at_Lean_Syntax_decodeNameLit___spec__1___closed__3; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__30; LEAN_EXPORT uint8_t l_Lean_Name_escapePart___lambda__1(uint32_t); static lean_object* l_Lean_instQuoteProd___rarg___closed__3; LEAN_EXPORT lean_object* l_Lean_Syntax_mkScientificLit(lean_object*, lean_object*); @@ -173,7 +175,6 @@ static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean LEAN_EXPORT lean_object* l___private_Init_Data_String_Basic_0__Substring_takeWhileAux___at___private_Init_Meta_0__Lean_Syntax_splitNameLitAux___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isIdFirst___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Meta_0__Array_filterSepElemsMAux___at_Array_filterSepElems___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__18; lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Name_toString___boxed(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); @@ -182,7 +183,6 @@ lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_expandInterpolatedStrChunks___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_version_getSpecialDesc___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeHexDigit___boxed(lean_object*, lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__3; lean_object* lean_get_githash(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_setTailInfo(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instQuoteArray(lean_object*); @@ -194,7 +194,7 @@ static lean_object* l___private_Init_Meta_0__Lean_quoteList___rarg___closed__3; lean_object* l_Std_Format_joinSep___at_instReprProd___spec__1(lean_object*, lean_object*); lean_object* l___private_Init_Data_Repr_0__reprSourceInfo____x40_Init_Data_Repr___hyg_1750_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_filterSepElemsM___at_Array_filterSepElems___spec__1(lean_object*, lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__15; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__1; LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_contextual___default; LEAN_EXPORT lean_object* l_Lean_Meta_TransparencyMode_toCtorIdx(uint8_t); static lean_object* l___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____closed__23; @@ -221,6 +221,7 @@ LEAN_EXPORT lean_object* l_List_foldr___at_Lean_Syntax_decodeNameLit___spec__1(l LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_isNatLitAux___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withHeadRefOnly___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instQuoteBool___boxed(lean_object*); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__8; LEAN_EXPORT lean_object* l_Lean_version_specialDesc; lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_mkSep___boxed(lean_object*, lean_object*); @@ -230,20 +231,18 @@ LEAN_EXPORT lean_object* l_Array_mapSepElems(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_repr___at___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____spec__3(lean_object*); static lean_object* l_Lean_Parser_Tactic_tacticErw_______closed__5; static lean_object* l_Lean_versionStringCore___closed__2; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__9; static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x40_Init_Meta___hyg_8435____closed__9; LEAN_EXPORT lean_object* l_Lean_Name_instReprName; -LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_8711____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Name_toStringWithSep(lean_object*, uint8_t, lean_object*); static lean_object* l_Lean_Parser_Tactic_tacticErw_______closed__7; LEAN_EXPORT lean_object* l_Lean_Syntax_SepArray_ofElems(lean_object*, lean_object*); static lean_object* l_Lean_Name_escapePart___closed__4; static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__19; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__36; static lean_object* l_Lean_termEval__prio_____closed__4; static lean_object* l___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____closed__11; static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x40_Init_Meta___hyg_8435____closed__4; static lean_object* l_Lean_version_major___closed__1; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__30; static lean_object* l_Lean_instQuoteSubstring___closed__1; static lean_object* l_repr___at___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____spec__3___closed__15; LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_etaStruct___default; @@ -251,15 +250,16 @@ lean_object* lean_string_utf8_next(lean_object*, lean_object*); static lean_object* l_Lean_Name_isInaccessibleUserName___closed__1; static lean_object* l_Lean_versionStringCore___closed__1; static lean_object* l_Lean_termEval__prio_____closed__2; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__17; static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x40_Init_Meta___hyg_8435____closed__2; LEAN_EXPORT lean_object* l_Lean_Name_toStringWithSep_maybeEscape(uint8_t, lean_object*); static lean_object* l_Lean_instQuoteSubstring___closed__2; LEAN_EXPORT lean_object* l_Lean_Syntax_isLit_x3f___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_tacticErw_______closed__3; LEAN_EXPORT lean_object* l_Lean___aux__Init__Meta______macroRules__Lean__Parser__Syntax__addPrio__1(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__28; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__14; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__5; LEAN_EXPORT lean_object* l_Lean_Syntax_hasArgs___boxed(lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__27; static lean_object* l_Lean_Name_reprPrec___closed__6; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeInterpStrLit_loop___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__11; @@ -290,10 +290,10 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_isScientificLit_x3f___boxed(lean_object*) LEAN_EXPORT lean_object* l_Lean_Syntax_isCharLit_x3f(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_getTrailingSize___boxed(lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__8; LEAN_EXPORT lean_object* l_Lean_Syntax_isNatLit_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_version_major; static lean_object* l_Lean_instQuoteProd___rarg___closed__4; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37; LEAN_EXPORT lean_object* l_Lean_Syntax_instBEqSyntax; LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_zeta___default; static lean_object* l_Lean_versionStringCore___closed__3; @@ -306,13 +306,14 @@ uint8_t l_instDecidableNot___rarg(uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_neutralConfig; uint8_t l_String_contains(lean_object*, uint32_t); static lean_object* l_Lean_Parser_Tactic_tacticErw_______closed__1; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__4; static lean_object* l_repr___at___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____spec__3___closed__7; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_mkStrLit___boxed(lean_object*, lean_object*); static lean_object* l_Lean___aux__Init__Meta______macroRules__Lean__Parser__Syntax__subPrec__1___closed__1; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__15; static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__4; LEAN_EXPORT lean_object* l_Lean_Syntax_expandInterpolatedStr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__18; static lean_object* l_Lean_termEval__prec_____closed__7; static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x40_Init_Meta___hyg_8435____closed__13; extern lean_object* l_Lean_numLitKind; @@ -321,10 +322,10 @@ LEAN_EXPORT lean_object* l_Lean_instQuoteString(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeDecimalLitAux(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____spec__6(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapSepElemsM(lean_object*); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__3; LEAN_EXPORT lean_object* l_Lean_mkGroupNode(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l_Lean_termEval__prio_____closed__1; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__1; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x40_Init_Meta___hyg_8435____boxed(lean_object*, lean_object*); static lean_object* l_Lean_instQuoteProd___rarg___closed__2; static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__35; @@ -346,10 +347,13 @@ static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x LEAN_EXPORT lean_object* l_Lean_monadNameGeneratorLift___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_SepArray_getElems(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_structEq___boxed(lean_object*, lean_object*); -LEAN_EXPORT uint8_t l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_8711_(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_8721_(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Simp_ConfigCtx_contextual___default; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__6; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_quoteList___rarg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_8721____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_isFieldIdx_x3f(lean_object*); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__25; static lean_object* l_Lean_instQuoteProd___rarg___closed__1; static lean_object* l___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____closed__19; lean_object* l_Lean_Syntax_getHeadInfo(lean_object*); @@ -360,7 +364,6 @@ LEAN_EXPORT uint8_t l_Lean_isNumericSubscript(uint32_t); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_mkSepArray___spec__1___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_isScientificLit_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_Name_toString(lean_object*, uint8_t); -LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____boxed(lean_object*, lean_object*); static lean_object* l_Lean_toolchain___closed__8; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg(lean_object*, lean_object*); lean_object* l_Lean_replaceRef(lean_object*, lean_object*); @@ -386,7 +389,6 @@ LEAN_EXPORT lean_object* lean_name_append_index_after(lean_object*, lean_object* static lean_object* l_Lean_Meta_Simp_instReprConfig___closed__1; LEAN_EXPORT lean_object* l_Array_getSepElems___rarg(lean_object*); extern lean_object* l_Lean_reservedMacroScope; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__21; static lean_object* l_Lean_Syntax_unsetTrailing___closed__2; static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x40_Init_Meta___hyg_8435____closed__21; static lean_object* l_Lean_NameGenerator_namePrefix___default___closed__1; @@ -398,12 +400,11 @@ LEAN_EXPORT lean_object* l_Lean_Name_toStringWithSep_maybeEscape___boxed(lean_ob LEAN_EXPORT lean_object* l_Lean_Name_modifyBase(lean_object*, lean_object*); static lean_object* l_List_foldr___at_Lean_Syntax_decodeNameLit___spec__1___closed__2; static lean_object* l_Lean_instQuoteBool___closed__3; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__23; LEAN_EXPORT uint8_t l_Lean_Meta_Rewrite_Config_transparency___default; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__29; lean_object* l_Nat_repr(lean_object*); LEAN_EXPORT lean_object* l_Array_mapSepElemsM___at_Array_mapSepElems___spec__1___boxed(lean_object*, lean_object*); static lean_object* l___private_Init_Meta_0__Lean_Syntax_splitNameLitAux___closed__1; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__13; LEAN_EXPORT lean_object* l_Lean_instQuoteSubstring___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean___aux__Init__Meta______macroRules__Lean__termEval__prec____1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_versionStringCore___closed__8; @@ -414,7 +415,6 @@ lean_object* l_Lean_Syntax_getId(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_quoteNameMk(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_splitNameLitAux(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_mkSepArray___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__34; static lean_object* l_Lean_versionStringCore___closed__4; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeInterpStrQuotedChar___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Tactic_rwRuleSeq; @@ -476,7 +476,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_Config_maxDischargeDepth___default; LEAN_EXPORT lean_object* l_Lean_isNumericSubscript___boxed(lean_object*); lean_object* l_Substring_nextn(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_evalOptPrio(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__12; static lean_object* l___private_Init_Meta_0__Lean_quoteNameMk___closed__2; static lean_object* l_Lean_Syntax_mkApp___closed__2; static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x40_Init_Meta___hyg_8435____closed__14; @@ -488,7 +487,6 @@ lean_object* l_String_dropRight(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_isCharLit_x3f___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_splitNameLit(lean_object*); static lean_object* l___private_Init_Meta_0__Lean_quoteList___rarg___closed__6; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__26; static lean_object* l_Lean_Syntax_expandInterpolatedStr___lambda__2___closed__1; static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x40_Init_Meta___hyg_8435____closed__3; static lean_object* l___private_Init_Meta_0__Lean_quoteNameMk___closed__7; @@ -509,6 +507,7 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_decodeNatLitVal_x3f___boxed(lean_object*) LEAN_EXPORT lean_object* l_Lean_Syntax_decodeCharLit(lean_object*); LEAN_EXPORT uint8_t l_Lean_version_isRelease; static lean_object* l_Lean_Syntax_decodeNatLitVal_x3f___closed__1; +LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_arith___default; LEAN_EXPORT lean_object* l_Lean_Meta_TransparencyMode_noConfusion___rarg(uint8_t, uint8_t, lean_object*); static lean_object* l___private_Init_Meta_0__Lean_quoteOption___rarg___closed__1; static lean_object* l_Lean___aux__Init__Meta______macroRules__Lean__Parser__Syntax__addPrio__1___closed__1; @@ -516,7 +515,6 @@ uint8_t l_Char_isAlpha(uint32_t); LEAN_EXPORT lean_object* l_Lean_Option_hasQuote(lean_object*); LEAN_EXPORT uint8_t l_Lean_Syntax_isAtom(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_getSepElems___spec__1(lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__20; LEAN_EXPORT uint8_t l_Lean_isLetterLike(uint32_t); static lean_object* l_Lean_instQuoteName___closed__2; LEAN_EXPORT lean_object* l_Lean_evalPrec(lean_object*, lean_object*, lean_object*); @@ -537,14 +535,12 @@ static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean LEAN_EXPORT lean_object* l_Lean_Syntax_decodeScientificLitVal_x3f___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_isIdOrAtom_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__10; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__32; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Array_mapSepElemsMAux___at_Array_mapSepElems___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_decodeQuotedChar___boxed__const__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_expandMacros___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__7; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__31; static lean_object* l_Lean_Parser_Tactic_tacticErw_______closed__4; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__16; static lean_object* l_Lean_Syntax_mkApp___closed__1; uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); static lean_object* l_repr___at___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____spec__3___closed__12; @@ -561,21 +557,21 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_getSepArgs(lean_object*); static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x40_Init_Meta___hyg_8435____closed__15; LEAN_EXPORT lean_object* l_Lean_Meta_TransparencyMode_noConfusion(lean_object*); static lean_object* l___private_Init_Meta_0__Lean_quoteNameMk___closed__4; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__11; static lean_object* l_Lean_Parser_Tactic_tacticErw_______closed__9; LEAN_EXPORT lean_object* l_Lean_mkHole(lean_object*); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__7; extern lean_object* l_Lean_scientificLitKind; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Array_getSepElems___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_isEqvAux___at_Lean_Syntax_structEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__20; LEAN_EXPORT lean_object* l_Lean_instQuoteString___boxed(lean_object*); static lean_object* l_Lean_Syntax_expandInterpolatedStrChunks___closed__1; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__19; static lean_object* l_Lean_instQuoteBool___closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Syntax_getHead_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_eta___default; static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x40_Init_Meta___hyg_8435____closed__18; static lean_object* l_Lean_Syntax_expandInterpolatedStr___lambda__2___closed__2; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__24; LEAN_EXPORT lean_object* l_Lean_Syntax_expandInterpolatedStrChunks___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_tacticErw_______closed__8; LEAN_EXPORT uint8_t l_Lean_Syntax_hasArgs(lean_object*); @@ -596,6 +592,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_instReprConfig; LEAN_EXPORT lean_object* l_Lean_instInhabitedNameGenerator; static lean_object* l_Lean_mkHole___closed__4; static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__10; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__33; static lean_object* l_Lean_evalPrec___closed__2; lean_object* l_Lean_Syntax_getArgs(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -603,8 +600,8 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_decodeScientificLitVal_x3f(lean_object*); LEAN_EXPORT uint8_t l_Lean_isGreek(uint32_t); LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticErw____; LEAN_EXPORT lean_object* l_Lean___aux__Init__Meta______macroRules__Lean__Parser__Syntax__subPrec__1(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__22; lean_object* l_Lean_MacroScopesView_review(lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__35; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeInterpStrQuotedChar___boxed__const__1; static lean_object* l___private_Init_Meta_0__Lean_quoteNameMk___closed__8; static lean_object* l_Lean_toolchain___closed__2; @@ -612,7 +609,7 @@ static lean_object* l___private_Init_Meta_0__Lean_quoteNameMk___closed__1; LEAN_EXPORT lean_object* l_Array_filterSepElems(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapSepElemsM___at_Array_mapSepElems___spec__1(lean_object*, lean_object*); static lean_object* l_repr___at___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____spec__3___closed__11; -LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940_(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966_(lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Init_Meta_0__Lean_Name_hasNum(lean_object*); static lean_object* l_Lean_instQuoteSubstring___closed__4; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1(lean_object*, lean_object*, lean_object*); @@ -658,6 +655,7 @@ static lean_object* l_Lean_termEval__prec_____closed__2; LEAN_EXPORT uint8_t l_Lean_Meta_Simp_Config_iota___default; static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__16; LEAN_EXPORT lean_object* l_Lean_Syntax_setInfo(lean_object*, lean_object*); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__19; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_quoteOption(lean_object*); LEAN_EXPORT lean_object* l_Lean___aux__Init__Meta______macroRules__Lean__Parser__Syntax__addPrec__1(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____closed__14; @@ -670,7 +668,6 @@ static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x40_Init_Meta___hyg_8435____closed__10; LEAN_EXPORT lean_object* l_List_beq___at_Lean_Syntax_structEq___spec__3___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_decodeScientificLitVal_x3f_decodeAfterDot___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__24; LEAN_EXPORT lean_object* l_Lean_Name_toString_maybePseudoSyntax___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_expandMacros(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_updateLast(lean_object*); @@ -679,9 +676,11 @@ static lean_object* l_Lean_instQuoteArray___rarg___closed__1; static lean_object* l_Lean_Name_toString_maybePseudoSyntax___closed__1; static lean_object* l___private_Init_Meta_0__Lean_Meta_reprTransparencyMode____x40_Init_Meta___hyg_8435____closed__20; static lean_object* l_Lean_mkOptionalNode___closed__1; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__11; LEAN_EXPORT lean_object* l_Lean_Syntax_isNameLit_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_isInterpolatedStrLit_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_getHead_x3f___lambda__1___boxed(lean_object*, lean_object*); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__31; lean_object* l_String_trim(lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_decodeQuotedChar___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isIdEndEscape___boxed(lean_object*); @@ -697,9 +696,7 @@ LEAN_EXPORT lean_object* l_List_foldr___at_Lean_Syntax_decodeNameLit___spec__1__ static lean_object* l_Lean_termEval__prec_____closed__5; static lean_object* l_Lean_instQuoteBool___closed__4; static lean_object* l___private_Init_Meta_0__Lean_quoteList___rarg___closed__7; -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__16; LEAN_EXPORT lean_object* l_Lean_mkCIdentFromRef(lean_object*); -static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__7; LEAN_EXPORT lean_object* l_Lean_Syntax_decodeStrLit(lean_object*); LEAN_EXPORT uint8_t l_Lean_isIdFirst(uint32_t); LEAN_EXPORT lean_object* l_Lean_instQuoteName(lean_object*); @@ -747,6 +744,7 @@ LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_version_getPatch(lean_obj LEAN_EXPORT lean_object* l_Lean_toolchain; static lean_object* l_Lean_mkOptionalNode___closed__2; static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__42; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__35; LEAN_EXPORT lean_object* l_Lean_Syntax_getOptional_x3f___boxed(lean_object*); static lean_object* l_Lean_mkCIdentFrom___closed__2; static lean_object* l_Lean_origin___closed__1; @@ -778,6 +776,7 @@ LEAN_EXPORT lean_object* l_Lean_monadNameGeneratorLift___rarg___lambda__1(lean_o lean_object* l_Nat_min(lean_object*, lean_object*); static lean_object* l___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____closed__7; static lean_object* l_Lean_Syntax_expandInterpolatedStr___closed__1; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__12; static lean_object* l___private_Init_Meta_0__Lean_quoteList___rarg___closed__4; LEAN_EXPORT lean_object* l_Lean_Syntax_expandInterpolatedStr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__33; @@ -808,6 +807,7 @@ LEAN_EXPORT lean_object* l_Lean_instQuoteSyntax; LEAN_EXPORT lean_object* l_Lean_mkNode(lean_object*, lean_object*); static lean_object* l___private_Init_Meta_0__Lean_quoteList___rarg___closed__1; lean_object* lean_uint32_to_nat(uint32_t); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__32; static lean_object* l_Array_forInUnsafe_loop___at_Lean_mkSepArray___spec__1___closed__1; static lean_object* l_repr___at___private_Init_Meta_0__Lean_Name_reprSyntax____x40_Init_Meta___hyg_1043____spec__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Name_replacePrefix(lean_object*, lean_object*, lean_object*); @@ -815,7 +815,9 @@ static lean_object* l_Lean_termEval__prio_____closed__5; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeInterpStrLit_loop(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean___aux__Init__Meta______macroRules__Lean__Parser__Syntax__subPrec__1___closed__2; static lean_object* l_List_foldr___at_Lean_Syntax_decodeNameLit___spec__1___closed__4; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__10; lean_object* lean_nat_to_int(lean_object*); +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__20; LEAN_EXPORT uint8_t l_Lean_Syntax_isToken(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Syntax_isFieldIdx_x3f___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_decodeInterpStrLit___boxed(lean_object*); @@ -834,6 +836,7 @@ static lean_object* l_Lean_Meta_Simp_instInhabitedConfig___closed__1; static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__3; static lean_object* l_Lean___aux__Init__Meta______macroRules__Lean__Parser__Syntax__addPrec__1___closed__1; static lean_object* l_Lean_Parser_Tactic___aux__Init__Meta______macroRules__Lean__Parser__Tactic__tacticErw______1___closed__29; +static lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__26; LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Syntax_updateLast___at_Lean_Syntax_setTailInfoAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_isIdRest(uint32_t); uint8_t lean_string_dec_eq(lean_object*, lean_object*); @@ -16667,13 +16670,21 @@ x_1 = 1; return x_1; } } +static uint8_t _init_l_Lean_Meta_Simp_Config_arith___default() { +_start: +{ +uint8_t x_1; +x_1 = 1; +return x_1; +} +} static lean_object* _init_l_Lean_Meta_Simp_instInhabitedConfig___closed__1() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(0u); x_2 = 0; -x_3 = lean_alloc_ctor(0, 2, 10); +x_3 = lean_alloc_ctor(0, 2, 11); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); lean_ctor_set_uint8(x_3, sizeof(void*)*2, x_2); @@ -16686,6 +16697,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*2 + 6, x_2); lean_ctor_set_uint8(x_3, sizeof(void*)*2 + 7, x_2); lean_ctor_set_uint8(x_3, sizeof(void*)*2 + 8, x_2); lean_ctor_set_uint8(x_3, sizeof(void*)*2 + 9, x_2); +lean_ctor_set_uint8(x_3, sizeof(void*)*2 + 10, x_2); return x_3; } } @@ -16697,10 +16709,10 @@ x_1 = l_Lean_Meta_Simp_instInhabitedConfig___closed__1; return x_1; } } -LEAN_EXPORT uint8_t l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_8711_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_8721_(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_3; lean_object* x_4; uint8_t x_5; uint8_t x_6; uint8_t x_7; uint8_t x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; uint8_t x_12; uint8_t x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; uint8_t x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; lean_object* x_31; lean_object* x_37; lean_object* x_43; lean_object* x_49; lean_object* x_55; lean_object* x_61; lean_object* x_67; lean_object* x_73; uint8_t x_79; +lean_object* x_3; lean_object* x_4; uint8_t x_5; uint8_t x_6; uint8_t x_7; uint8_t x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; uint8_t x_12; uint8_t x_13; uint8_t x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; lean_object* x_33; lean_object* x_39; lean_object* x_45; lean_object* x_51; lean_object* x_57; lean_object* x_63; lean_object* x_69; lean_object* x_75; lean_object* x_81; uint8_t x_87; x_3 = lean_ctor_get(x_1, 0); x_4 = lean_ctor_get(x_1, 1); x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); @@ -16713,389 +16725,427 @@ x_11 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 6); x_12 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 7); x_13 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 8); x_14 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 9); -x_15 = lean_ctor_get(x_2, 0); -x_16 = lean_ctor_get(x_2, 1); -x_17 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); -x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 1); -x_19 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 2); -x_20 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 3); -x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 4); -x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 5); -x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 6); -x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 7); -x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 8); -x_26 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 9); -x_79 = lean_nat_dec_eq(x_3, x_15); -if (x_79 == 0) +x_15 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 10); +x_16 = lean_ctor_get(x_2, 0); +x_17 = lean_ctor_get(x_2, 1); +x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); +x_19 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 1); +x_20 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 2); +x_21 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 3); +x_22 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 4); +x_23 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 5); +x_24 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 6); +x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 7); +x_26 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 8); +x_27 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 9); +x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 10); +x_87 = lean_nat_dec_eq(x_3, x_16); +if (x_87 == 0) { -uint8_t x_80; -x_80 = 0; -return x_80; +uint8_t x_88; +x_88 = 0; +return x_88; } else { -uint8_t x_81; -x_81 = lean_nat_dec_eq(x_4, x_16); -if (x_81 == 0) +uint8_t x_89; +x_89 = lean_nat_dec_eq(x_4, x_17); +if (x_89 == 0) { -uint8_t x_82; -x_82 = 0; -return x_82; +uint8_t x_90; +x_90 = 0; +return x_90; } else { if (x_5 == 0) { -if (x_17 == 0) +if (x_18 == 0) { -lean_object* x_83; -x_83 = lean_box(0); -x_73 = x_83; -goto block_78; +lean_object* x_91; +x_91 = lean_box(0); +x_81 = x_91; +goto block_86; } else { +uint8_t x_92; +x_92 = 0; +return x_92; +} +} +else +{ +if (x_18 == 0) +{ +uint8_t x_93; +x_93 = 0; +return x_93; +} +else +{ +lean_object* x_94; +x_94 = lean_box(0); +x_81 = x_94; +goto block_86; +} +} +} +} +block_32: +{ +lean_dec(x_29); +if (x_15 == 0) +{ +if (x_28 == 0) +{ +uint8_t x_30; +x_30 = 1; +return x_30; +} +else +{ +uint8_t x_31; +x_31 = 0; +return x_31; +} +} +else +{ +return x_28; +} +} +block_38: +{ +lean_dec(x_33); +if (x_14 == 0) +{ +if (x_27 == 0) +{ +lean_object* x_34; +x_34 = lean_box(0); +x_29 = x_34; +goto block_32; +} +else +{ +uint8_t x_35; +x_35 = 0; +return x_35; +} +} +else +{ +if (x_27 == 0) +{ +uint8_t x_36; +x_36 = 0; +return x_36; +} +else +{ +lean_object* x_37; +x_37 = lean_box(0); +x_29 = x_37; +goto block_32; +} +} +} +block_44: +{ +lean_dec(x_39); +if (x_13 == 0) +{ +if (x_26 == 0) +{ +lean_object* x_40; +x_40 = lean_box(0); +x_33 = x_40; +goto block_38; +} +else +{ +uint8_t x_41; +x_41 = 0; +return x_41; +} +} +else +{ +if (x_26 == 0) +{ +uint8_t x_42; +x_42 = 0; +return x_42; +} +else +{ +lean_object* x_43; +x_43 = lean_box(0); +x_33 = x_43; +goto block_38; +} +} +} +block_50: +{ +lean_dec(x_45); +if (x_12 == 0) +{ +if (x_25 == 0) +{ +lean_object* x_46; +x_46 = lean_box(0); +x_39 = x_46; +goto block_44; +} +else +{ +uint8_t x_47; +x_47 = 0; +return x_47; +} +} +else +{ +if (x_25 == 0) +{ +uint8_t x_48; +x_48 = 0; +return x_48; +} +else +{ +lean_object* x_49; +x_49 = lean_box(0); +x_39 = x_49; +goto block_44; +} +} +} +block_56: +{ +lean_dec(x_51); +if (x_11 == 0) +{ +if (x_24 == 0) +{ +lean_object* x_52; +x_52 = lean_box(0); +x_45 = x_52; +goto block_50; +} +else +{ +uint8_t x_53; +x_53 = 0; +return x_53; +} +} +else +{ +if (x_24 == 0) +{ +uint8_t x_54; +x_54 = 0; +return x_54; +} +else +{ +lean_object* x_55; +x_55 = lean_box(0); +x_45 = x_55; +goto block_50; +} +} +} +block_62: +{ +lean_dec(x_57); +if (x_10 == 0) +{ +if (x_23 == 0) +{ +lean_object* x_58; +x_58 = lean_box(0); +x_51 = x_58; +goto block_56; +} +else +{ +uint8_t x_59; +x_59 = 0; +return x_59; +} +} +else +{ +if (x_23 == 0) +{ +uint8_t x_60; +x_60 = 0; +return x_60; +} +else +{ +lean_object* x_61; +x_61 = lean_box(0); +x_51 = x_61; +goto block_56; +} +} +} +block_68: +{ +lean_dec(x_63); +if (x_9 == 0) +{ +if (x_22 == 0) +{ +lean_object* x_64; +x_64 = lean_box(0); +x_57 = x_64; +goto block_62; +} +else +{ +uint8_t x_65; +x_65 = 0; +return x_65; +} +} +else +{ +if (x_22 == 0) +{ +uint8_t x_66; +x_66 = 0; +return x_66; +} +else +{ +lean_object* x_67; +x_67 = lean_box(0); +x_57 = x_67; +goto block_62; +} +} +} +block_74: +{ +lean_dec(x_69); +if (x_8 == 0) +{ +if (x_21 == 0) +{ +lean_object* x_70; +x_70 = lean_box(0); +x_63 = x_70; +goto block_68; +} +else +{ +uint8_t x_71; +x_71 = 0; +return x_71; +} +} +else +{ +if (x_21 == 0) +{ +uint8_t x_72; +x_72 = 0; +return x_72; +} +else +{ +lean_object* x_73; +x_73 = lean_box(0); +x_63 = x_73; +goto block_68; +} +} +} +block_80: +{ +lean_dec(x_75); +if (x_7 == 0) +{ +if (x_20 == 0) +{ +lean_object* x_76; +x_76 = lean_box(0); +x_69 = x_76; +goto block_74; +} +else +{ +uint8_t x_77; +x_77 = 0; +return x_77; +} +} +else +{ +if (x_20 == 0) +{ +uint8_t x_78; +x_78 = 0; +return x_78; +} +else +{ +lean_object* x_79; +x_79 = lean_box(0); +x_69 = x_79; +goto block_74; +} +} +} +block_86: +{ +lean_dec(x_81); +if (x_6 == 0) +{ +if (x_19 == 0) +{ +lean_object* x_82; +x_82 = lean_box(0); +x_75 = x_82; +goto block_80; +} +else +{ +uint8_t x_83; +x_83 = 0; +return x_83; +} +} +else +{ +if (x_19 == 0) +{ uint8_t x_84; x_84 = 0; return x_84; } -} else { -if (x_17 == 0) -{ -uint8_t x_85; -x_85 = 0; -return x_85; +lean_object* x_85; +x_85 = lean_box(0); +x_75 = x_85; +goto block_80; } -else -{ -lean_object* x_86; -x_86 = lean_box(0); -x_73 = x_86; -goto block_78; } } } } -block_30: -{ -lean_dec(x_27); -if (x_14 == 0) -{ -if (x_26 == 0) -{ -uint8_t x_28; -x_28 = 1; -return x_28; -} -else -{ -uint8_t x_29; -x_29 = 0; -return x_29; -} -} -else -{ -return x_26; -} -} -block_36: -{ -lean_dec(x_31); -if (x_13 == 0) -{ -if (x_25 == 0) -{ -lean_object* x_32; -x_32 = lean_box(0); -x_27 = x_32; -goto block_30; -} -else -{ -uint8_t x_33; -x_33 = 0; -return x_33; -} -} -else -{ -if (x_25 == 0) -{ -uint8_t x_34; -x_34 = 0; -return x_34; -} -else -{ -lean_object* x_35; -x_35 = lean_box(0); -x_27 = x_35; -goto block_30; -} -} -} -block_42: -{ -lean_dec(x_37); -if (x_12 == 0) -{ -if (x_24 == 0) -{ -lean_object* x_38; -x_38 = lean_box(0); -x_31 = x_38; -goto block_36; -} -else -{ -uint8_t x_39; -x_39 = 0; -return x_39; -} -} -else -{ -if (x_24 == 0) -{ -uint8_t x_40; -x_40 = 0; -return x_40; -} -else -{ -lean_object* x_41; -x_41 = lean_box(0); -x_31 = x_41; -goto block_36; -} -} -} -block_48: -{ -lean_dec(x_43); -if (x_11 == 0) -{ -if (x_23 == 0) -{ -lean_object* x_44; -x_44 = lean_box(0); -x_37 = x_44; -goto block_42; -} -else -{ -uint8_t x_45; -x_45 = 0; -return x_45; -} -} -else -{ -if (x_23 == 0) -{ -uint8_t x_46; -x_46 = 0; -return x_46; -} -else -{ -lean_object* x_47; -x_47 = lean_box(0); -x_37 = x_47; -goto block_42; -} -} -} -block_54: -{ -lean_dec(x_49); -if (x_10 == 0) -{ -if (x_22 == 0) -{ -lean_object* x_50; -x_50 = lean_box(0); -x_43 = x_50; -goto block_48; -} -else -{ -uint8_t x_51; -x_51 = 0; -return x_51; -} -} -else -{ -if (x_22 == 0) -{ -uint8_t x_52; -x_52 = 0; -return x_52; -} -else -{ -lean_object* x_53; -x_53 = lean_box(0); -x_43 = x_53; -goto block_48; -} -} -} -block_60: -{ -lean_dec(x_55); -if (x_9 == 0) -{ -if (x_21 == 0) -{ -lean_object* x_56; -x_56 = lean_box(0); -x_49 = x_56; -goto block_54; -} -else -{ -uint8_t x_57; -x_57 = 0; -return x_57; -} -} -else -{ -if (x_21 == 0) -{ -uint8_t x_58; -x_58 = 0; -return x_58; -} -else -{ -lean_object* x_59; -x_59 = lean_box(0); -x_49 = x_59; -goto block_54; -} -} -} -block_66: -{ -lean_dec(x_61); -if (x_8 == 0) -{ -if (x_20 == 0) -{ -lean_object* x_62; -x_62 = lean_box(0); -x_55 = x_62; -goto block_60; -} -else -{ -uint8_t x_63; -x_63 = 0; -return x_63; -} -} -else -{ -if (x_20 == 0) -{ -uint8_t x_64; -x_64 = 0; -return x_64; -} -else -{ -lean_object* x_65; -x_65 = lean_box(0); -x_55 = x_65; -goto block_60; -} -} -} -block_72: -{ -lean_dec(x_67); -if (x_7 == 0) -{ -if (x_19 == 0) -{ -lean_object* x_68; -x_68 = lean_box(0); -x_61 = x_68; -goto block_66; -} -else -{ -uint8_t x_69; -x_69 = 0; -return x_69; -} -} -else -{ -if (x_19 == 0) -{ -uint8_t x_70; -x_70 = 0; -return x_70; -} -else -{ -lean_object* x_71; -x_71 = lean_box(0); -x_61 = x_71; -goto block_66; -} -} -} -block_78: -{ -lean_dec(x_73); -if (x_6 == 0) -{ -if (x_18 == 0) -{ -lean_object* x_74; -x_74 = lean_box(0); -x_67 = x_74; -goto block_72; -} -else -{ -uint8_t x_75; -x_75 = 0; -return x_75; -} -} -else -{ -if (x_18 == 0) -{ -uint8_t x_76; -x_76 = 0; -return x_76; -} -else -{ -lean_object* x_77; -x_77 = lean_box(0); -x_67 = x_77; -goto block_72; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_8711____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_8721____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_8711_(x_1, x_2); +x_3 = l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_8721_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -17106,7 +17156,7 @@ static lean_object* _init_l_Lean_Meta_Simp_instBEqConfig___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_8711____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_Meta_0__Lean_Meta_Simp_beqConfig____x40_Init_Meta___hyg_8721____boxed), 2, 0); return x_1; } } @@ -17118,7 +17168,7 @@ x_1 = l_Lean_Meta_Simp_instBEqConfig___closed__1; return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__1() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__1() { _start: { lean_object* x_1; @@ -17126,29 +17176,29 @@ x_1 = lean_mk_string("maxSteps"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__2() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__1; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__3() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__2; +x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__2; x_3 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__4() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__4() { _start: { lean_object* x_1; @@ -17156,29 +17206,29 @@ x_1 = lean_mk_string(" := "); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__5() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__4; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__6() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__3; -x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__5; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__3; +x_2 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__5; x_3 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__7() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__7() { _start: { lean_object* x_1; @@ -17186,17 +17236,17 @@ x_1 = lean_mk_string("maxDischargeDepth"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__8() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__7; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__7; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__9() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__9() { _start: { lean_object* x_1; @@ -17204,17 +17254,17 @@ x_1 = lean_mk_string("contextual"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__10() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__10() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__9; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__9; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__11() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__11() { _start: { lean_object* x_1; @@ -17222,17 +17272,17 @@ x_1 = lean_mk_string("memoize"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__12() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__12() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__11; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__11; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__13() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__13() { _start: { lean_object* x_1; @@ -17240,17 +17290,17 @@ x_1 = lean_mk_string("singlePass"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__14() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__14() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__13; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__13; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__15() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__15() { _start: { lean_object* x_1; @@ -17258,17 +17308,17 @@ x_1 = lean_mk_string("zeta"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__16() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__16() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__15; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__15; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__17() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__17() { _start: { lean_object* x_1; @@ -17276,17 +17326,17 @@ x_1 = lean_mk_string("beta"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__18() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__18() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__17; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__17; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__19() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__19() { _start: { lean_object* x_1; @@ -17294,17 +17344,17 @@ x_1 = lean_mk_string("eta"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__20() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__20() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__19; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__19; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__21() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__21() { _start: { lean_object* x_1; @@ -17312,17 +17362,17 @@ x_1 = lean_mk_string("etaStruct"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__22() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__22() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__21; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__21; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__23() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__23() { _start: { lean_object* x_1; @@ -17330,17 +17380,17 @@ x_1 = lean_mk_string("iota"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__24() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__24() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__23; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__23; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__25() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__25() { _start: { lean_object* x_1; @@ -17348,17 +17398,17 @@ x_1 = lean_mk_string("proj"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__26() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__26() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__25; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__25; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__27() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__27() { _start: { lean_object* x_1; @@ -17366,17 +17416,35 @@ x_1 = lean_mk_string("decide"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__28() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__28() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__27; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__27; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__29() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__29() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("arith"); +return x_1; +} +} +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__30() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__29; +x_2 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__31() { _start: { lean_object* x_1; @@ -17384,35 +17452,35 @@ x_1 = lean_mk_string("{ "); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__30() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__32() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__29; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__31; x_2 = lean_string_length(x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__31() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__33() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__30; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__32; x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__32() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__34() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__29; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__31; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__33() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__35() { _start: { lean_object* x_1; @@ -17420,17 +17488,17 @@ x_1 = lean_mk_string(" }"); return x_1; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__34() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__36() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__33; +x_1 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__35; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__35() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37() { _start: { lean_object* x_1; lean_object* x_2; @@ -17440,7 +17508,7 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__36() { +static lean_object* _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38() { _start: { lean_object* x_1; lean_object* x_2; @@ -17450,16 +17518,16 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966_(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; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; uint8_t x_33; uint8_t x_34; lean_object* x_35; +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; uint8_t x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); x_4 = l_Nat_repr(x_3); x_5 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_5, 0, x_4); -x_6 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__6; +x_6 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__6; x_7 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); @@ -17471,11 +17539,11 @@ x_10 = lean_box(1); x_11 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_10); -x_12 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__8; +x_12 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__8; x_13 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_13, 0, x_11); lean_ctor_set(x_13, 1, x_12); -x_14 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__5; +x_14 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__5; x_15 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); @@ -17493,7 +17561,7 @@ lean_ctor_set(x_20, 1, x_8); x_21 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_21, 0, x_20); lean_ctor_set(x_21, 1, x_10); -x_22 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__10; +x_22 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__10; x_23 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_23, 0, x_21); lean_ctor_set(x_23, 1, x_22); @@ -17510,409 +17578,443 @@ x_31 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 6); x_32 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 7); x_33 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 8); x_34 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 9); +x_35 = lean_ctor_get_uint8(x_1, sizeof(void*)*2 + 10); lean_dec(x_1); if (x_25 == 0) { -lean_object* x_165; -x_165 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__35; -x_35 = x_165; -goto block_164; +lean_object* x_176; +x_176 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37; +x_36 = x_176; +goto block_175; } else { -lean_object* x_166; -x_166 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__36; -x_35 = x_166; -goto block_164; +lean_object* x_177; +x_177 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38; +x_36 = x_177; +goto block_175; } -block_164: +block_175: { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_36 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_36, 0, x_24); -lean_ctor_set(x_36, 1, x_35); +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_37 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_8); +lean_ctor_set(x_37, 0, x_24); +lean_ctor_set(x_37, 1, x_36); x_38 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_10); -x_39 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__12; -x_40 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); +lean_ctor_set(x_38, 1, x_8); +x_39 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_10); +x_40 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__12; x_41 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_14); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +x_42 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_14); if (x_26 == 0) { -lean_object* x_162; -x_162 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__35; -x_42 = x_162; -goto block_161; +lean_object* x_173; +x_173 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37; +x_43 = x_173; +goto block_172; } else { -lean_object* x_163; -x_163 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__36; -x_42 = x_163; -goto block_161; +lean_object* x_174; +x_174 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38; +x_43 = x_174; +goto block_172; } -block_161: +block_172: { -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_43 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; x_44 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_8); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); x_45 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_10); -x_46 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__14; -x_47 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); +lean_ctor_set(x_45, 1, x_8); +x_46 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_10); +x_47 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__14; x_48 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_14); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +x_49 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_14); if (x_27 == 0) { -lean_object* x_159; -x_159 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__35; -x_49 = x_159; -goto block_158; +lean_object* x_170; +x_170 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37; +x_50 = x_170; +goto block_169; } else { -lean_object* x_160; -x_160 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__36; -x_49 = x_160; -goto block_158; +lean_object* x_171; +x_171 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38; +x_50 = x_171; +goto block_169; } -block_158: +block_169: { -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_50 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; x_51 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_8); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); x_52 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_10); -x_53 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__16; -x_54 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); +lean_ctor_set(x_52, 1, x_8); +x_53 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_10); +x_54 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__16; x_55 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_14); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +x_56 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_14); if (x_28 == 0) { -lean_object* x_156; -x_156 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__35; -x_56 = x_156; -goto block_155; +lean_object* x_167; +x_167 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37; +x_57 = x_167; +goto block_166; } else { -lean_object* x_157; -x_157 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__36; -x_56 = x_157; -goto block_155; +lean_object* x_168; +x_168 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38; +x_57 = x_168; +goto block_166; } -block_155: +block_166: { -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_57 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; x_58 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_8); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); x_59 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_10); -x_60 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__18; -x_61 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); +lean_ctor_set(x_59, 1, x_8); +x_60 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_10); +x_61 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__18; x_62 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_14); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +x_63 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_14); if (x_29 == 0) { -lean_object* x_153; -x_153 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__35; -x_63 = x_153; -goto block_152; +lean_object* x_164; +x_164 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37; +x_64 = x_164; +goto block_163; } else { -lean_object* x_154; -x_154 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__36; -x_63 = x_154; -goto block_152; +lean_object* x_165; +x_165 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38; +x_64 = x_165; +goto block_163; } -block_152: +block_163: { -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_64 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; x_65 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_8); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); x_66 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_10); -x_67 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__20; -x_68 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); +lean_ctor_set(x_66, 1, x_8); +x_67 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_10); +x_68 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__20; x_69 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_14); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +x_70 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_14); if (x_30 == 0) { -lean_object* x_150; -x_150 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__35; -x_70 = x_150; -goto block_149; +lean_object* x_161; +x_161 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37; +x_71 = x_161; +goto block_160; } else { -lean_object* x_151; -x_151 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__36; -x_70 = x_151; -goto block_149; +lean_object* x_162; +x_162 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38; +x_71 = x_162; +goto block_160; } -block_149: +block_160: { -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_71 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); +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_alloc_ctor(4, 2, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_8); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); x_73 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_10); -x_74 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__22; -x_75 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); +lean_ctor_set(x_73, 1, x_8); +x_74 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_10); +x_75 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__22; x_76 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_14); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_14); if (x_31 == 0) { -lean_object* x_147; -x_147 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__35; -x_77 = x_147; -goto block_146; +lean_object* x_158; +x_158 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37; +x_78 = x_158; +goto block_157; } else { -lean_object* x_148; -x_148 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__36; -x_77 = x_148; -goto block_146; +lean_object* x_159; +x_159 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38; +x_78 = x_159; +goto block_157; } -block_146: +block_157: { -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(4, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; x_79 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_8); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); x_80 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_10); -x_81 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__24; -x_82 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); +lean_ctor_set(x_80, 1, x_8); +x_81 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_10); +x_82 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__24; x_83 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_14); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +x_84 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_14); if (x_32 == 0) { -lean_object* x_144; -x_144 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__35; -x_84 = x_144; -goto block_143; +lean_object* x_155; +x_155 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37; +x_85 = x_155; +goto block_154; } else { -lean_object* x_145; -x_145 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__36; -x_84 = x_145; -goto block_143; +lean_object* x_156; +x_156 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38; +x_85 = x_156; +goto block_154; } -block_143: +block_154: { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_85 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; x_86 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_8); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); x_87 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_10); -x_88 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__26; -x_89 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); +lean_ctor_set(x_87, 1, x_8); +x_88 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_10); +x_89 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__26; x_90 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_14); +lean_ctor_set(x_90, 0, x_88); +lean_ctor_set(x_90, 1, x_89); +x_91 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_14); if (x_33 == 0) { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_91 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__35; -x_92 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); +lean_object* x_152; +x_152 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37; +x_92 = x_152; +goto block_151; +} +else +{ +lean_object* x_153; +x_153 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38; +x_92 = x_153; +goto block_151; +} +block_151: +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; x_93 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_8); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); x_94 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_10); -x_95 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__28; -x_96 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); +lean_ctor_set(x_94, 1, x_8); +x_95 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_10); +x_96 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__28; x_97 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_14); -if (x_34 == 0) -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); x_98 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_91); -x_99 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__32; -x_100 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_98); -x_101 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__34; -x_102 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -x_103 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__31; -x_104 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_102); -x_105 = 0; -x_106 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set_uint8(x_106, sizeof(void*)*1, x_105); -return x_106; -} -else -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; -x_107 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__36; -x_108 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_108, 0, x_97); -lean_ctor_set(x_108, 1, x_107); -x_109 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__32; -x_110 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_108); -x_111 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__34; -x_112 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_111); -x_113 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__31; -x_114 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_112); -x_115 = 0; -x_116 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set_uint8(x_116, sizeof(void*)*1, x_115); -return x_116; -} -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_117 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__36; -x_118 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_118, 0, x_90); -lean_ctor_set(x_118, 1, x_117); -x_119 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_8); -x_120 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_120, 0, x_119); -lean_ctor_set(x_120, 1, x_10); -x_121 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__28; -x_122 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set(x_122, 1, x_121); -x_123 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_14); +lean_ctor_set(x_98, 1, x_14); if (x_34 == 0) { -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; -x_124 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__35; -x_125 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_125, 0, x_123); -lean_ctor_set(x_125, 1, x_124); -x_126 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__32; -x_127 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_125); -x_128 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__34; -x_129 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_128); -x_130 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__31; -x_131 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_129); -x_132 = 0; -x_133 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_133, 0, x_131); -lean_ctor_set_uint8(x_133, sizeof(void*)*1, x_132); -return x_133; +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_99 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37; +x_100 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +x_101 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_8); +x_102 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_10); +x_103 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__30; +x_104 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +x_105 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_14); +if (x_35 == 0) +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; +x_106 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_99); +x_107 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__34; +x_108 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_106); +x_109 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__36; +x_110 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +x_111 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__33; +x_112 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_110); +x_113 = 0; +x_114 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set_uint8(x_114, sizeof(void*)*1, x_113); +return x_114; } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; -x_134 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_134, 0, x_123); -lean_ctor_set(x_134, 1, x_117); -x_135 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__32; -x_136 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_136, 0, x_135); -lean_ctor_set(x_136, 1, x_134); -x_137 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__34; -x_138 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_138, 0, x_136); -lean_ctor_set(x_138, 1, x_137); -x_139 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__31; -x_140 = lean_alloc_ctor(3, 2, 0); -lean_ctor_set(x_140, 0, x_139); -lean_ctor_set(x_140, 1, x_138); -x_141 = 0; -x_142 = lean_alloc_ctor(5, 1, 1); -lean_ctor_set(x_142, 0, x_140); -lean_ctor_set_uint8(x_142, sizeof(void*)*1, x_141); -return x_142; +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; uint8_t x_123; lean_object* x_124; +x_115 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38; +x_116 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_116, 0, x_105); +lean_ctor_set(x_116, 1, x_115); +x_117 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__34; +x_118 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_116); +x_119 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__36; +x_120 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +x_121 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__33; +x_122 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_120); +x_123 = 0; +x_124 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set_uint8(x_124, sizeof(void*)*1, x_123); +return x_124; +} +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_125 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38; +x_126 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_126, 0, x_98); +lean_ctor_set(x_126, 1, x_125); +x_127 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_8); +x_128 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_10); +x_129 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__30; +x_130 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_130, 0, x_128); +lean_ctor_set(x_130, 1, x_129); +x_131 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_131, 0, x_130); +lean_ctor_set(x_131, 1, x_14); +if (x_35 == 0) +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; lean_object* x_141; +x_132 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37; +x_133 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_133, 0, x_131); +lean_ctor_set(x_133, 1, x_132); +x_134 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__34; +x_135 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_135, 0, x_134); +lean_ctor_set(x_135, 1, x_133); +x_136 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__36; +x_137 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_136); +x_138 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__33; +x_139 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_137); +x_140 = 0; +x_141 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set_uint8(x_141, sizeof(void*)*1, x_140); +return x_141; +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; lean_object* x_150; +x_142 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_142, 0, x_131); +lean_ctor_set(x_142, 1, x_125); +x_143 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__34; +x_144 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_142); +x_145 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__36; +x_146 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_146, 0, x_144); +lean_ctor_set(x_146, 1, x_145); +x_147 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__33; +x_148 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_146); +x_149 = 0; +x_150 = lean_alloc_ctor(5, 1, 1); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set_uint8(x_150, sizeof(void*)*1, x_149); +return x_150; } } } @@ -17925,11 +18027,12 @@ return x_142; } } } -LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____boxed(lean_object* x_1, lean_object* x_2) { +} +LEAN_EXPORT lean_object* l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940_(x_1, x_2); +x_3 = l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966_(x_1, x_2); lean_dec(x_2); return x_3; } @@ -17938,7 +18041,7 @@ static lean_object* _init_l_Lean_Meta_Simp_instReprConfig___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____boxed), 2, 0); return x_1; } } @@ -17966,7 +18069,7 @@ x_1 = l_Lean_Meta_Simp_defaultMaxSteps; x_2 = lean_unsigned_to_nat(2u); x_3 = 0; x_4 = 1; -x_5 = lean_alloc_ctor(0, 2, 10); +x_5 = lean_alloc_ctor(0, 2, 11); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); lean_ctor_set_uint8(x_5, sizeof(void*)*2, x_3); @@ -17979,6 +18082,7 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 6, x_4); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 7, x_3); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 8, x_3); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 9, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 10, x_3); return x_5; } } @@ -19548,6 +19652,7 @@ l_Lean_Meta_Simp_Config_etaStruct___default = _init_l_Lean_Meta_Simp_Config_etaS l_Lean_Meta_Simp_Config_iota___default = _init_l_Lean_Meta_Simp_Config_iota___default(); l_Lean_Meta_Simp_Config_proj___default = _init_l_Lean_Meta_Simp_Config_proj___default(); l_Lean_Meta_Simp_Config_decide___default = _init_l_Lean_Meta_Simp_Config_decide___default(); +l_Lean_Meta_Simp_Config_arith___default = _init_l_Lean_Meta_Simp_Config_arith___default(); l_Lean_Meta_Simp_instInhabitedConfig___closed__1 = _init_l_Lean_Meta_Simp_instInhabitedConfig___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_instInhabitedConfig___closed__1); l_Lean_Meta_Simp_instInhabitedConfig = _init_l_Lean_Meta_Simp_instInhabitedConfig(); @@ -19556,78 +19661,82 @@ l_Lean_Meta_Simp_instBEqConfig___closed__1 = _init_l_Lean_Meta_Simp_instBEqConfi lean_mark_persistent(l_Lean_Meta_Simp_instBEqConfig___closed__1); l_Lean_Meta_Simp_instBEqConfig = _init_l_Lean_Meta_Simp_instBEqConfig(); lean_mark_persistent(l_Lean_Meta_Simp_instBEqConfig); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__1 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__1(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__1); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__2 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__2(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__2); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__3 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__3(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__3); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__4 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__4(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__4); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__5 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__5(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__5); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__6 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__6(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__6); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__7 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__7(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__7); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__8 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__8(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__8); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__9 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__9(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__9); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__10 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__10(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__10); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__11 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__11(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__11); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__12 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__12(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__12); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__13 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__13(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__13); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__14 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__14(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__14); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__15 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__15(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__15); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__16 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__16(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__16); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__17 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__17(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__17); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__18 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__18(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__18); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__19 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__19(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__19); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__20 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__20(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__20); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__21 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__21(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__21); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__22 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__22(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__22); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__23 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__23(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__23); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__24 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__24(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__24); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__25 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__25(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__25); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__26 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__26(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__26); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__27 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__27(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__27); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__28 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__28(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__28); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__29 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__29(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__29); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__30 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__30(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__30); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__31 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__31(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__31); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__32 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__32(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__32); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__33 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__33(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__33); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__34 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__34(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__34); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__35 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__35(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__35); -l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__36 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__36(); -lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8940____closed__36); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__1 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__1(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__1); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__2 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__2(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__2); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__3 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__3(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__3); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__4 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__4(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__4); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__5 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__5(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__5); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__6 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__6(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__6); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__7 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__7(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__7); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__8 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__8(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__8); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__9 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__9(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__9); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__10 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__10(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__10); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__11 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__11(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__11); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__12 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__12(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__12); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__13 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__13(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__13); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__14 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__14(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__14); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__15 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__15(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__15); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__16 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__16(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__16); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__17 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__17(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__17); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__18 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__18(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__18); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__19 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__19(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__19); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__20 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__20(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__20); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__21 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__21(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__21); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__22 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__22(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__22); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__23 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__23(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__23); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__24 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__24(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__24); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__25 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__25(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__25); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__26 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__26(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__26); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__27 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__27(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__27); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__28 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__28(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__28); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__29 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__29(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__29); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__30 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__30(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__30); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__31 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__31(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__31); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__32 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__32(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__32); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__33 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__33(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__33); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__34 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__34(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__34); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__35 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__35(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__35); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__36 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__36(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__36); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__37); +l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38 = _init_l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38(); +lean_mark_persistent(l___private_Init_Meta_0__Lean_Meta_Simp_reprConfig____x40_Init_Meta___hyg_8966____closed__38); l_Lean_Meta_Simp_instReprConfig___closed__1 = _init_l_Lean_Meta_Simp_instReprConfig___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_instReprConfig___closed__1); l_Lean_Meta_Simp_instReprConfig = _init_l_Lean_Meta_Simp_instReprConfig(); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c index 4360699e20..5720b69df4 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/Structural/Eqns.c @@ -361,7 +361,7 @@ x_1 = l_Lean_Meta_Simp_defaultMaxSteps; x_2 = lean_unsigned_to_nat(2u); x_3 = 0; x_4 = 1; -x_5 = lean_alloc_ctor(0, 2, 10); +x_5 = lean_alloc_ctor(0, 2, 11); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); lean_ctor_set_uint8(x_5, sizeof(void*)*2, x_3); @@ -374,6 +374,7 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 6, x_4); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 7, x_4); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 8, x_4); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 9, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 10, x_4); return x_5; } } diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c index 1a0447509f..fa8c4e7837 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c @@ -2002,7 +2002,7 @@ x_1 = l_Lean_Meta_Simp_defaultMaxSteps; x_2 = lean_unsigned_to_nat(2u); x_3 = 0; x_4 = 1; -x_5 = lean_alloc_ctor(0, 2, 10); +x_5 = lean_alloc_ctor(0, 2, 11); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); lean_ctor_set_uint8(x_5, sizeof(void*)*2, x_3); @@ -2015,6 +2015,7 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 6, x_4); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 7, x_4); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 8, x_4); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 9, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 10, x_4); return x_5; } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/Simp.c b/stage0/stdlib/Lean/Elab/Tactic/Simp.c index 4877a88e18..1f13437521 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/Simp.c +++ b/stage0/stdlib/Lean/Elab/Tactic/Simp.c @@ -803,7 +803,7 @@ x_1 = l_Lean_Meta_Simp_defaultMaxSteps; x_2 = lean_unsigned_to_nat(2u); x_3 = 0; x_4 = 1; -x_5 = lean_alloc_ctor(0, 2, 10); +x_5 = lean_alloc_ctor(0, 2, 11); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); lean_ctor_set_uint8(x_5, sizeof(void*)*2, x_3); @@ -816,6 +816,7 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 6, x_4); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 7, x_4); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 8, x_4); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 9, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 10, x_4); return x_5; } } @@ -1171,7 +1172,7 @@ x_1 = l_Lean_Meta_Simp_defaultMaxSteps; x_2 = lean_unsigned_to_nat(2u); x_3 = 1; x_4 = 0; -x_5 = lean_alloc_ctor(0, 2, 10); +x_5 = lean_alloc_ctor(0, 2, 11); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); lean_ctor_set_uint8(x_5, sizeof(void*)*2, x_3); @@ -1184,6 +1185,7 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 6, x_3); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 7, x_3); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 8, x_3); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 9, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 10, x_3); return x_5; } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/LinearArith.c b/stage0/stdlib/Lean/Meta/Tactic/LinearArith.c index 28dd49b5cf..4334023737 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/LinearArith.c +++ b/stage0/stdlib/Lean/Meta/Tactic/LinearArith.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.LinearArith -// Imports: Init Lean.Meta.Tactic.LinearArith.Basic +// Imports: Init Lean.Meta.Tactic.LinearArith.Basic Lean.Meta.Tactic.LinearArith.Nat #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -15,6 +15,7 @@ extern "C" { #endif lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_LinearArith_Basic(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Tactic_LinearArith_Nat(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_LinearArith(uint8_t builtin, lean_object* w) { lean_object * res; @@ -26,6 +27,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_LinearArith_Basic(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_Tactic_LinearArith_Nat(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/LinearArith/Nat.c b/stage0/stdlib/Lean/Meta/Tactic/LinearArith/Nat.c index 3186253e05..75158648c1 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/LinearArith/Nat.c +++ b/stage0/stdlib/Lean/Meta/Tactic/LinearArith/Nat.c @@ -13,93 +13,147 @@ #ifdef __cplusplus extern "C" { #endif +static lean_object* l_Lean_Meta_Linear_Nat_reflTrue___closed__2; +lean_object* l_Nat_Linear_ExprCnstr_toPoly(lean_object*); static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__13; +lean_object* l_Nat_Linear_PolyCnstr_norm(lean_object*); static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__11; +static lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__13; lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l___private_Std_Data_HashMap_0__Std_numBucketsForCapacity(lean_object*); LEAN_EXPORT lean_object* l_Std_HashMapImp_find_x3f___at_Lean_Meta_Linear_Nat_ToLinear_addAsVar___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_run___rarg___closed__1; lean_object* lean_name_mk_string(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__12; +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_ToLinear_run(lean_object*); lean_object* lean_array_uget(lean_object*, size_t); -static lean_object* l_Lean_Meta_Linear_Nat_instToExprLinearExpr___lambda__1___closed__1; +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__13; static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__14; -LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_instToExprLinearExpr___lambda__1(lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__12; static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__2; static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr___closed__1; +static lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__1; static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr_visit___closed__5; static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__8; LEAN_EXPORT lean_object* l_Std_HashMapImp_expand___at_Lean_Meta_Linear_Nat_ToLinear_addAsVar___spec__5(lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); +uint8_t l_Nat_Linear_PolyCnstr_hasFewerMonomials(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__11; +static lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_instReprExpr; -LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__4; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__17; +static lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__9; +lean_object* l_Lean_Meta_mkMul(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_run___rarg___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_reflTrue; +static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_State_vars___default___closed__1; static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__6; -static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__19; +static lean_object* l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__2; +static lean_object* l_Lean_Meta_Linear_Nat_reflTrue___closed__4; lean_object* l_Lean_Expr_appArg_x21(lean_object*); lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__1; lean_object* l_Lean_Meta_evalNat(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_ToLinear_addAsVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr___closed__2; +static lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__6; +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__12; static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__4; +static lean_object* l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__1; +extern lean_object* l_Lean_levelZero; lean_object* lean_nat_add(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_reflTrue___closed__5; +static lean_object* l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__3; static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__2; +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_toContextExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toArith(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__3; size_t lean_uint64_to_usize(uint64_t); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__8; LEAN_EXPORT lean_object* l_Std_AssocList_contains___at_Lean_Meta_Linear_Nat_ToLinear_addAsVar___spec__4___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__1; +static lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__15; +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_ToLinear_State_varMap___default; +static lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__3; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__17; +static lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__5; +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__11; lean_object* lean_array_fget(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__4; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__9; +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__7; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__14; static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__17; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__9; +LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_Linear_Nat_ToLinear_State_varMap___default___spec__1___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__1; static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__4; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__2; +static lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__2; static lean_object* l_Lean_Meta_Linear_Nat_instToExprLinearExpr___closed__3; LEAN_EXPORT lean_object* l_Std_AssocList_foldlM___at_Lean_Meta_Linear_Nat_ToLinear_addAsVar___spec__7(lean_object*, lean_object*); +lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +lean_object* l_Std_mkHashMapImp___rarg(lean_object*); static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__6; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__13; +static lean_object* l_Lean_Meta_Linear_Nat_reflTrue___closed__6; lean_object* l_Nat_repr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr_visit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_AssocList_contains___at_Lean_Meta_Linear_Nat_ToLinear_addAsVar___spec__4(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__10; +lean_object* l_Nat_Linear_PolyCnstr_toExpr(lean_object*); +lean_object* lean_st_mk_ref(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__7; static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__13; LEAN_EXPORT lean_object* l_Std_HashMap_insert___at_Lean_Meta_Linear_Nat_ToLinear_addAsVar___spec__3(lean_object*, lean_object*, lean_object*); uint64_t l_Lean_Expr_hash(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(lean_object*); static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__9; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__6; lean_object* l_Nat_Linear_Expr_inc(lean_object*); +lean_object* lean_array_to_list(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__7; static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__15; +uint8_t l_Nat_Linear_PolyCnstr_isValid(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4_(lean_object*, lean_object*); +extern lean_object* l_Lean_instInhabitedExpr; size_t lean_usize_modn(size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(lean_object*); static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__14; LEAN_EXPORT lean_object* l_Std_HashMapImp_moveEntries___at_Lean_Meta_Linear_Nat_ToLinear_addAsVar___spec__6(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__5; +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toArith(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_isNatProjInst(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_ToLinear_State_vars___default; static lean_object* l_Lean_Meta_Linear_Nat_instToExprLinearExpr___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_instToExprLinearExpr; static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__11; +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__10; lean_object* l_Lean_Meta_unfoldProjInst_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__3; static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__7; lean_object* l_Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_reflTrue___closed__3; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__14; uint8_t lean_expr_eqv(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__5; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__3; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_mkApp(lean_object*, lean_object*); @@ -109,42 +163,67 @@ static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Li static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__8; LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Linear_Nat_ToLinear_addAsVar___spec__2(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__5; -static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__18; static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__12; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__7; static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__5; static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__3; LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Linear_Nat_ToLinear_addAsVar___spec__2___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__16; +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__6; +lean_object* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__20; +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__2; +lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__9; +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__8; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__16; +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__1; static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr_visit___closed__3; static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__10; lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_ToLinear_addAsVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__11; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__10; +static lean_object* l_Lean_Meta_Linear_Nat_reflTrue___closed__1; static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__15; +static lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__10; static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__18; static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__16; lean_object* l_Lean_mkNatLit(lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__9; static lean_object* l_Lean_Meta_Linear_Nat_instToExprLinearExpr___closed__1; static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr_visit___closed__2; +LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_Linear_Nat_ToLinear_State_varMap___default___spec__1(lean_object*); static lean_object* l_Lean_Meta_Linear_Nat_instReprExpr___closed__1; static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__5; +extern lean_object* l_Lean_levelOne; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr_visit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_instToExprLinearCnstr; +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__4; +lean_object* l_Lean_Meta_mkListLit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__12; +uint8_t l_Nat_Linear_PolyCnstr_isUnsat(lean_object*); lean_object* lean_nat_to_int(lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_ToLinear_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__7; +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__4; static lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr_visit___closed__1; +lean_object* l_Lean_Meta_mkAdd(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_AssocList_replace___at_Lean_Meta_Linear_Nat_ToLinear_addAsVar___spec__8(lean_object*, lean_object*, lean_object*); uint8_t lean_string_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__8; +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toArith___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Repr_addAppParen(lean_object*, lean_object*); static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Nat_0__Lean_Meta_Linear_Nat_reprExpr____x40_Lean_Meta_Tactic_LinearArith_Nat___hyg_4____closed__1() { _start: @@ -760,116 +839,75 @@ x_3 = l_Lean_mkConst(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(lean_object* x_1) { _start: { -switch (lean_obj_tag(x_2)) { +switch (lean_obj_tag(x_1)) { case 0: { -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -lean_dec(x_2); -x_4 = l_Lean_mkNatLit(x_3); -x_5 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__9; -x_6 = l_Lean_mkApp(x_5, x_4); -return x_6; +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +lean_dec(x_1); +x_3 = l_Lean_mkNatLit(x_2); +x_4 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__9; +x_5 = l_Lean_mkApp(x_4, x_3); +return x_5; } case 1: { -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_ctor_get(x_2, 0); -lean_inc(x_7); -lean_dec(x_2); -x_8 = lean_array_get_size(x_1); -x_9 = lean_nat_dec_lt(x_7, x_8); -lean_dec(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = l_Lean_mkNatLit(x_7); -x_11 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__12; -x_12 = l_Lean_mkApp(x_11, x_10); -return x_12; -} -else -{ -lean_object* x_13; -x_13 = lean_array_fget(x_1, x_7); -lean_dec(x_7); -return x_13; -} +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = l_Lean_mkNatLit(x_6); +x_8 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__12; +x_9 = l_Lean_mkApp(x_8, x_7); +return x_9; } case 2: { -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_2, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_2, 1); -lean_inc(x_15); -lean_dec(x_2); -x_16 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(x_1, x_14); -x_17 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(x_1, x_15); -x_18 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__15; -x_19 = l_Lean_mkAppB(x_18, x_16, x_17); -return x_19; +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_1, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); +lean_dec(x_1); +x_12 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(x_10); +x_13 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(x_11); +x_14 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__15; +x_15 = l_Lean_mkAppB(x_14, x_12, x_13); +return x_15; } case 3: { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_20 = lean_ctor_get(x_2, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_2, 1); -lean_inc(x_21); -lean_dec(x_2); -x_22 = l_Lean_mkNatLit(x_20); -x_23 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(x_1, x_21); -x_24 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__18; -x_25 = l_Lean_mkAppB(x_24, x_22, x_23); -return x_25; +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_1, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_1, 1); +lean_inc(x_17); +lean_dec(x_1); +x_18 = l_Lean_mkNatLit(x_16); +x_19 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(x_17); +x_20 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__18; +x_21 = l_Lean_mkAppB(x_20, x_18, x_19); +return x_21; } default: { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_26 = lean_ctor_get(x_2, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_2, 1); -lean_inc(x_27); -lean_dec(x_2); -x_28 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(x_1, x_26); -x_29 = l_Lean_mkNatLit(x_27); -x_30 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__18; -x_31 = l_Lean_mkAppB(x_30, x_28, x_29); -return x_31; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(x_1, x_2); +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_22 = lean_ctor_get(x_1, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_1, 1); +lean_inc(x_23); lean_dec(x_1); -return x_3; +x_24 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(x_22); +x_25 = l_Lean_mkNatLit(x_23); +x_26 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__18; +x_27 = l_Lean_mkAppB(x_26, x_24, x_25); +return x_27; } } -static lean_object* _init_l_Lean_Meta_Linear_Nat_instToExprLinearExpr___lambda__1___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(0u); -x_2 = lean_mk_empty_array_with_capacity(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_instToExprLinearExpr___lambda__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_Meta_Linear_Nat_instToExprLinearExpr___lambda__1___closed__1; -x_3 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(x_2, x_1); -return x_3; } } static lean_object* _init_l_Lean_Meta_Linear_Nat_instToExprLinearExpr___closed__1() { @@ -886,7 +924,7 @@ static lean_object* _init_l_Lean_Meta_Linear_Nat_instToExprLinearExpr___closed__ _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Linear_Nat_instToExprLinearExpr___lambda__1), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Linear_Nat_LinearExpr_toExpr), 1, 0); return x_1; } } @@ -910,6 +948,798 @@ x_1 = l_Lean_Meta_Linear_Nat_instToExprLinearExpr___closed__3; return x_1; } } +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ExprCnstr"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__4; +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("mk"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__2; +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__4; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Bool"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__6; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("false"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__7; +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__8; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__9; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("true"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__7; +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__11; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__12; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(x_3); +x_5 = lean_ctor_get(x_1, 1); +lean_inc(x_5); +lean_dec(x_1); +x_6 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr(x_5); +if (x_2 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__5; +x_8 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__10; +x_9 = l_Lean_mkApp3(x_7, x_8, x_4, x_6); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__5; +x_11 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__13; +x_12 = l_Lean_mkApp3(x_10, x_11, x_4, x_6); +return x_12; +} +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__2; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr), 1, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__2; +x_2 = l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__1; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_instToExprLinearCnstr() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__3; +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toArith(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +switch (lean_obj_tag(x_2)) { +case 0: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_8 = lean_ctor_get(x_2, 0); +lean_inc(x_8); +lean_dec(x_2); +x_9 = l_Lean_mkNatLit(x_8); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_7); +return x_10; +} +case 1: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_11 = lean_ctor_get(x_2, 0); +lean_inc(x_11); +lean_dec(x_2); +x_12 = l_Lean_instInhabitedExpr; +x_13 = lean_array_get(x_12, x_1, x_11); +lean_dec(x_11); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_7); +return x_14; +} +case 2: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_2, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_2, 1); +lean_inc(x_16); +lean_dec(x_2); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_17 = l_Lean_Meta_Linear_Nat_LinearExpr_toArith(x_1, x_15, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_20 = l_Lean_Meta_Linear_Nat_LinearExpr_toArith(x_1, x_16, x_3, x_4, x_5, x_6, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +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_Meta_mkAdd(x_18, x_21, x_3, x_4, x_5, x_6, x_22); +return x_23; +} +else +{ +uint8_t x_24; +lean_dec(x_18); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_24 = !lean_is_exclusive(x_20); +if (x_24 == 0) +{ +return x_20; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_20, 0); +x_26 = lean_ctor_get(x_20, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_20); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +else +{ +uint8_t x_28; +lean_dec(x_16); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_28 = !lean_is_exclusive(x_17); +if (x_28 == 0) +{ +return x_17; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_17, 0); +x_30 = lean_ctor_get(x_17, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_17); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +case 3: +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_2, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_2, 1); +lean_inc(x_33); +lean_dec(x_2); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_34 = l_Lean_Meta_Linear_Nat_LinearExpr_toArith(x_1, x_33, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = l_Lean_mkNatLit(x_32); +x_38 = l_Lean_Meta_mkMul(x_37, x_35, x_3, x_4, x_5, x_6, x_36); +return x_38; +} +else +{ +uint8_t x_39; +lean_dec(x_32); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_39 = !lean_is_exclusive(x_34); +if (x_39 == 0) +{ +return x_34; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_34, 0); +x_41 = lean_ctor_get(x_34, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_34); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +default: +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_2, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_2, 1); +lean_inc(x_44); +lean_dec(x_2); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_45 = l_Lean_Meta_Linear_Nat_LinearExpr_toArith(x_1, x_43, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +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_Lean_mkNatLit(x_44); +x_49 = l_Lean_Meta_mkMul(x_46, x_48, x_3, x_4, x_5, x_6, x_47); +return x_49; +} +else +{ +uint8_t x_50; +lean_dec(x_44); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_50 = !lean_is_exclusive(x_45); +if (x_50 == 0) +{ +return x_45; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_45, 0); +x_52 = lean_ctor_get(x_45, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_45); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearExpr_toArith___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_Linear_Nat_LinearExpr_toArith(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_1); +return x_8; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("LE"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("le"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__2; +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_levelZero; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__4; +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__5; +x_3 = l_Lean_mkConst(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__2; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__8() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("instLENat"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__8; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__9; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toArith(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; +x_8 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_2, 0); +lean_inc(x_9); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_10 = l_Lean_Meta_Linear_Nat_LinearExpr_toArith(x_1, x_9, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_ctor_get(x_2, 1); +lean_inc(x_13); +lean_dec(x_2); +x_14 = l_Lean_Meta_Linear_Nat_LinearExpr_toArith(x_1, x_13, x_3, x_4, x_5, x_6, x_12); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_16 = lean_ctor_get(x_14, 0); +x_17 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__6; +x_18 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__7; +x_19 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__10; +x_20 = l_Lean_mkApp4(x_17, x_18, x_19, x_11, x_16); +lean_ctor_set(x_14, 0, x_20); +return x_14; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_21 = lean_ctor_get(x_14, 0); +x_22 = lean_ctor_get(x_14, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_14); +x_23 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__6; +x_24 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__7; +x_25 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__10; +x_26 = l_Lean_mkApp4(x_23, x_24, x_25, x_11, x_21); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_22); +return x_27; +} +} +else +{ +uint8_t x_28; +lean_dec(x_11); +x_28 = !lean_is_exclusive(x_14); +if (x_28 == 0) +{ +return x_14; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_14, 0); +x_30 = lean_ctor_get(x_14, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_14); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +else +{ +uint8_t x_32; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_32 = !lean_is_exclusive(x_10); +if (x_32 == 0) +{ +return x_10; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_10, 0); +x_34 = lean_ctor_get(x_10, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_10); +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; +x_36 = lean_ctor_get(x_2, 0); +lean_inc(x_36); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_37 = l_Lean_Meta_Linear_Nat_LinearExpr_toArith(x_1, x_36, x_3, x_4, x_5, x_6, x_7); +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, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_ctor_get(x_2, 1); +lean_inc(x_40); +lean_dec(x_2); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_41 = l_Lean_Meta_Linear_Nat_LinearExpr_toArith(x_1, x_40, x_3, x_4, x_5, x_6, x_39); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_41, 1); +lean_inc(x_43); +lean_dec(x_41); +x_44 = l_Lean_Meta_mkEq(x_38, x_42, x_3, x_4, x_5, x_6, x_43); +return x_44; +} +else +{ +uint8_t x_45; +lean_dec(x_38); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_45 = !lean_is_exclusive(x_41); +if (x_45 == 0) +{ +return x_41; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_41, 0); +x_47 = lean_ctor_get(x_41, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_41); +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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_49 = !lean_is_exclusive(x_37); +if (x_49 == 0) +{ +return x_37; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_37, 0); +x_51 = lean_ctor_get(x_37, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_37); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_Linear_Nat_ToLinear_State_varMap___default___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_State_varMap___default() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Std_mkHashMap___at_Lean_Meta_Linear_Nat_ToLinear_State_varMap___default___spec__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Std_mkHashMap___at_Lean_Meta_Linear_Nat_ToLinear_State_varMap___default___spec__1(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_State_vars___default___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_State_vars___default() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Linear_Nat_ToLinear_State_vars___default___closed__1; +return x_1; +} +} LEAN_EXPORT lean_object* l_Std_AssocList_find_x3f___at_Lean_Meta_Linear_Nat_ToLinear_addAsVar___spec__2(lean_object* x_1, lean_object* x_2) { _start: { @@ -2496,58 +3326,32 @@ return x_8; static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("LE"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__2; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; } } static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("le"); -return x_1; -} -} -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__2; -x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__5() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("GE"); return x_1; } } -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__6() { +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___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_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__5; +x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__7() { +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__4() { _start: { lean_object* x_1; @@ -2555,17 +3359,17 @@ x_1 = lean_mk_string("ge"); return x_1; } } -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__8() { +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__6; -x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__7; +x_1 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__3; +x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__4; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__9() { +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__6() { _start: { lean_object* x_1; @@ -2573,17 +3377,17 @@ x_1 = lean_mk_string("LT"); return x_1; } } -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__10() { +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__9; +x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__6; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__11() { +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__8() { _start: { lean_object* x_1; @@ -2591,17 +3395,17 @@ x_1 = lean_mk_string("lt"); return x_1; } } -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__12() { +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__10; -x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__11; +x_1 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__7; +x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__8; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__13() { +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__10() { _start: { lean_object* x_1; @@ -2609,17 +3413,17 @@ x_1 = lean_mk_string("GT"); return x_1; } } -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__14() { +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__13; +x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__10; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__15() { +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__12() { _start: { lean_object* x_1; @@ -2627,50 +3431,50 @@ x_1 = lean_mk_string("gt"); return x_1; } } +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__11; +x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__12; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__2; +x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__8; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__2; +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__16() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__14; -x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__15; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__17() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__2; -x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__11; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__18() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__2; -x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__19() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string("Eq"); return x_1; } } -static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__20() { +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__19; +x_2 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__16; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -2678,613 +3482,785 @@ return x_3; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_8; lean_object* x_25; -x_25 = l_Lean_Expr_getAppFn(x_1); -switch (lean_obj_tag(x_25)) { +lean_object* x_8; +x_8 = l_Lean_Expr_getAppFn(x_1); +switch (lean_obj_tag(x_8)) { case 2: { -lean_object* x_26; uint8_t x_27; -lean_dec(x_25); +lean_object* x_9; uint8_t x_10; +lean_dec(x_8); lean_inc(x_4); lean_inc(x_1); -x_26 = l_Lean_Meta_instantiateMVars(x_1, x_3, x_4, x_5, x_6, x_7); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) +x_9 = l_Lean_Meta_instantiateMVars(x_1, x_3, x_4, x_5, x_6, x_7); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) { -lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_28 = lean_ctor_get(x_26, 0); -x_29 = lean_ctor_get(x_26, 1); -x_30 = lean_expr_eqv(x_28, x_1); +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +x_13 = lean_expr_eqv(x_11, x_1); lean_dec(x_1); -if (x_30 == 0) +if (x_13 == 0) { -lean_free_object(x_26); -x_1 = x_28; -x_7 = x_29; +lean_free_object(x_9); +x_1 = x_11; +x_7 = x_12; goto _start; } else { -lean_object* x_32; -lean_dec(x_28); +lean_object* x_15; +lean_dec(x_11); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_32 = lean_box(0); -lean_ctor_set(x_26, 0, x_32); -return x_26; +x_15 = lean_box(0); +lean_ctor_set(x_9, 0, x_15); +return x_9; } } else { -lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_33 = lean_ctor_get(x_26, 0); -x_34 = lean_ctor_get(x_26, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_26); -x_35 = lean_expr_eqv(x_33, x_1); +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_9, 0); +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_9); +x_18 = lean_expr_eqv(x_16, x_1); lean_dec(x_1); -if (x_35 == 0) +if (x_18 == 0) { -x_1 = x_33; -x_7 = x_34; +x_1 = x_16; +x_7 = x_17; goto _start; } else { -lean_object* x_37; lean_object* x_38; -lean_dec(x_33); +lean_object* x_20; lean_object* x_21; +lean_dec(x_16); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_37 = lean_box(0); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_34); -return x_38; +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_17); +return x_21; } } } case 4: { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_62; lean_object* x_140; uint8_t x_141; -x_39 = lean_ctor_get(x_25, 0); -lean_inc(x_39); -lean_dec(x_25); -x_40 = lean_unsigned_to_nat(0u); -x_41 = l_Lean_Expr_getAppNumArgsAux(x_1, x_40); -x_140 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__20; -x_141 = lean_name_eq(x_39, x_140); -if (x_141 == 0) +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_159; uint8_t x_160; +x_22 = lean_ctor_get(x_8, 0); +lean_inc(x_22); +lean_dec(x_8); +x_23 = lean_unsigned_to_nat(0u); +x_24 = l_Lean_Expr_getAppNumArgsAux(x_1, x_23); +x_159 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__17; +x_160 = lean_name_eq(x_22, x_159); +if (x_160 == 0) { -lean_object* x_142; -x_142 = lean_box(0); -x_62 = x_142; -goto block_139; +lean_object* x_161; +x_161 = lean_box(0); +x_25 = x_161; +goto block_158; } else { -lean_object* x_143; uint8_t x_144; -x_143 = lean_unsigned_to_nat(3u); -x_144 = lean_nat_dec_eq(x_41, x_143); -if (x_144 == 0) +lean_object* x_162; uint8_t x_163; +x_162 = lean_unsigned_to_nat(3u); +x_163 = lean_nat_dec_eq(x_24, x_162); +if (x_163 == 0) { -lean_object* x_145; -x_145 = lean_box(0); -x_62 = x_145; -goto block_139; +lean_object* x_164; +x_164 = lean_box(0); +x_25 = x_164; +goto block_158; } else { -lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; -lean_dec(x_39); -x_146 = lean_unsigned_to_nat(1u); -x_147 = lean_nat_sub(x_41, x_146); -x_148 = lean_nat_sub(x_147, x_146); -lean_dec(x_147); +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_22); +x_165 = lean_unsigned_to_nat(1u); +x_166 = lean_nat_sub(x_24, x_165); +x_167 = lean_nat_sub(x_166, x_165); +lean_dec(x_166); lean_inc(x_1); -x_149 = l_Lean_Expr_getRevArg_x21(x_1, x_148); +x_168 = l_Lean_Expr_getRevArg_x21(x_1, x_167); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_150 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_149, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_150) == 0) +x_169 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_168, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_169) == 0) { -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_150, 1); -lean_inc(x_152); -lean_dec(x_150); -x_153 = lean_unsigned_to_nat(2u); -x_154 = lean_nat_sub(x_41, x_153); -lean_dec(x_41); -x_155 = lean_nat_sub(x_154, x_146); -lean_dec(x_154); -x_156 = l_Lean_Expr_getRevArg_x21(x_1, x_155); -x_157 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_156, x_2, x_3, x_4, x_5, x_6, x_152); -if (lean_obj_tag(x_157) == 0) -{ -uint8_t x_158; -x_158 = !lean_is_exclusive(x_157); -if (x_158 == 0) -{ -lean_object* x_159; uint8_t x_160; lean_object* x_161; lean_object* x_162; -x_159 = lean_ctor_get(x_157, 0); -x_160 = 1; -x_161 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_161, 0, x_151); -lean_ctor_set(x_161, 1, x_159); -lean_ctor_set_uint8(x_161, sizeof(void*)*2, x_160); -x_162 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_162, 0, x_161); -lean_ctor_set(x_157, 0, x_162); -return x_157; -} -else -{ -lean_object* x_163; lean_object* x_164; uint8_t x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; -x_163 = lean_ctor_get(x_157, 0); -x_164 = lean_ctor_get(x_157, 1); -lean_inc(x_164); -lean_inc(x_163); -lean_dec(x_157); -x_165 = 1; -x_166 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_166, 0, x_151); -lean_ctor_set(x_166, 1, x_163); -lean_ctor_set_uint8(x_166, sizeof(void*)*2, x_165); -x_167 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_167, 0, x_166); -x_168 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_168, 0, x_167); -lean_ctor_set(x_168, 1, x_164); -return x_168; -} -} -else -{ -uint8_t x_169; -lean_dec(x_151); -x_169 = !lean_is_exclusive(x_157); -if (x_169 == 0) -{ -return x_157; -} -else -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_170 = lean_ctor_get(x_157, 0); -x_171 = lean_ctor_get(x_157, 1); -lean_inc(x_171); +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_170 = lean_ctor_get(x_169, 0); lean_inc(x_170); -lean_dec(x_157); -x_172 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_172, 0, x_170); -lean_ctor_set(x_172, 1, x_171); -return x_172; +x_171 = lean_ctor_get(x_169, 1); +lean_inc(x_171); +lean_dec(x_169); +x_172 = lean_unsigned_to_nat(2u); +x_173 = lean_nat_sub(x_24, x_172); +lean_dec(x_24); +x_174 = lean_nat_sub(x_173, x_165); +lean_dec(x_173); +x_175 = l_Lean_Expr_getRevArg_x21(x_1, x_174); +x_176 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_175, x_2, x_3, x_4, x_5, x_6, x_171); +if (lean_obj_tag(x_176) == 0) +{ +uint8_t x_177; +x_177 = !lean_is_exclusive(x_176); +if (x_177 == 0) +{ +lean_object* x_178; uint8_t x_179; lean_object* x_180; lean_object* x_181; +x_178 = lean_ctor_get(x_176, 0); +x_179 = 1; +x_180 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_180, 0, x_170); +lean_ctor_set(x_180, 1, x_178); +lean_ctor_set_uint8(x_180, sizeof(void*)*2, x_179); +x_181 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_181, 0, x_180); +lean_ctor_set(x_176, 0, x_181); +return x_176; +} +else +{ +lean_object* x_182; lean_object* x_183; uint8_t x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_182 = lean_ctor_get(x_176, 0); +x_183 = lean_ctor_get(x_176, 1); +lean_inc(x_183); +lean_inc(x_182); +lean_dec(x_176); +x_184 = 1; +x_185 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_185, 0, x_170); +lean_ctor_set(x_185, 1, x_182); +lean_ctor_set_uint8(x_185, sizeof(void*)*2, x_184); +x_186 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_186, 0, x_185); +x_187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_183); +return x_187; +} +} +else +{ +uint8_t x_188; +lean_dec(x_170); +x_188 = !lean_is_exclusive(x_176); +if (x_188 == 0) +{ +return x_176; +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_189 = lean_ctor_get(x_176, 0); +x_190 = lean_ctor_get(x_176, 1); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_176); +x_191 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_191, 0, x_189); +lean_ctor_set(x_191, 1, x_190); +return x_191; } } } else { -uint8_t x_173; -lean_dec(x_41); +uint8_t x_192; +lean_dec(x_24); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_173 = !lean_is_exclusive(x_150); -if (x_173 == 0) +x_192 = !lean_is_exclusive(x_169); +if (x_192 == 0) { -return x_150; +return x_169; } else { -lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_174 = lean_ctor_get(x_150, 0); -x_175 = lean_ctor_get(x_150, 1); -lean_inc(x_175); -lean_inc(x_174); -lean_dec(x_150); -x_176 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_176, 0, x_174); -lean_ctor_set(x_176, 1, x_175); -return x_176; +lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_193 = lean_ctor_get(x_169, 0); +x_194 = lean_ctor_get(x_169, 1); +lean_inc(x_194); +lean_inc(x_193); +lean_dec(x_169); +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_158: +{ +lean_object* x_26; lean_object* x_62; lean_object* x_82; lean_object* x_122; uint8_t x_123; +lean_dec(x_25); +x_122 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__15; +x_123 = lean_name_eq(x_22, x_122); +if (x_123 == 0) +{ +lean_object* x_124; +x_124 = lean_box(0); +x_82 = x_124; +goto block_121; +} +else +{ +lean_object* x_125; uint8_t x_126; +x_125 = lean_unsigned_to_nat(2u); +x_126 = lean_nat_dec_eq(x_24, x_125); +if (x_126 == 0) +{ +lean_object* x_127; +x_127 = lean_box(0); +x_82 = x_127; +goto block_121; +} +else +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_22); +x_128 = lean_nat_sub(x_24, x_23); +x_129 = lean_unsigned_to_nat(1u); +x_130 = lean_nat_sub(x_128, x_129); +lean_dec(x_128); +lean_inc(x_1); +x_131 = l_Lean_Expr_getRevArg_x21(x_1, x_130); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_132 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_131, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_132) == 0) +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); +lean_dec(x_132); +x_135 = lean_nat_sub(x_24, x_129); +lean_dec(x_24); +x_136 = lean_nat_sub(x_135, x_129); +lean_dec(x_135); +x_137 = l_Lean_Expr_getRevArg_x21(x_1, x_136); +x_138 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_137, x_2, x_3, x_4, x_5, x_6, x_134); +if (lean_obj_tag(x_138) == 0) +{ +uint8_t x_139; +x_139 = !lean_is_exclusive(x_138); +if (x_139 == 0) +{ +lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; +x_140 = lean_ctor_get(x_138, 0); +x_141 = 0; +x_142 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_142, 0, x_133); +lean_ctor_set(x_142, 1, x_140); +lean_ctor_set_uint8(x_142, sizeof(void*)*2, x_141); +x_143 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_138, 0, x_143); +return x_138; +} +else +{ +lean_object* x_144; lean_object* x_145; uint8_t x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_144 = lean_ctor_get(x_138, 0); +x_145 = lean_ctor_get(x_138, 1); +lean_inc(x_145); +lean_inc(x_144); +lean_dec(x_138); +x_146 = 0; +x_147 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_147, 0, x_133); +lean_ctor_set(x_147, 1, x_144); +lean_ctor_set_uint8(x_147, sizeof(void*)*2, x_146); +x_148 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_148, 0, x_147); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_145); +return x_149; +} +} +else +{ +uint8_t x_150; +lean_dec(x_133); +x_150 = !lean_is_exclusive(x_138); +if (x_150 == 0) +{ +return x_138; +} +else +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_151 = lean_ctor_get(x_138, 0); +x_152 = lean_ctor_get(x_138, 1); +lean_inc(x_152); +lean_inc(x_151); +lean_dec(x_138); +x_153 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_153, 0, x_151); +lean_ctor_set(x_153, 1, x_152); +return x_153; +} +} +} +else +{ +uint8_t x_154; +lean_dec(x_24); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_154 = !lean_is_exclusive(x_132); +if (x_154 == 0) +{ +return x_132; +} +else +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_155 = lean_ctor_get(x_132, 0); +x_156 = lean_ctor_get(x_132, 1); +lean_inc(x_156); +lean_inc(x_155); +lean_dec(x_132); +x_157 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_157, 0, x_155); +lean_ctor_set(x_157, 1, x_156); +return x_157; } } } } block_61: { -lean_object* x_43; uint8_t x_44; -lean_dec(x_42); -x_43 = lean_unsigned_to_nat(4u); -x_44 = lean_nat_dec_eq(x_41, x_43); -lean_dec(x_41); -if (x_44 == 0) -{ -lean_object* x_45; lean_object* x_46; -lean_dec(x_39); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_45 = lean_box(0); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_7); -return x_46; -} -else -{ -lean_object* x_47; uint8_t x_48; -x_47 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__4; -x_48 = lean_name_eq(x_39, x_47); -if (x_48 == 0) -{ -lean_object* x_49; uint8_t x_50; -x_49 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__8; -x_50 = lean_name_eq(x_39, x_49); -if (x_50 == 0) -{ -lean_object* x_51; uint8_t x_52; -x_51 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__12; -x_52 = lean_name_eq(x_39, x_51); -if (x_52 == 0) -{ -lean_object* x_53; uint8_t x_54; -x_53 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__16; -x_54 = lean_name_eq(x_39, x_53); -lean_dec(x_39); -if (x_54 == 0) -{ -lean_object* x_55; lean_object* x_56; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_55 = lean_box(0); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_7); -return x_56; -} -else -{ -lean_object* x_57; -x_57 = lean_box(0); -x_8 = x_57; -goto block_24; -} -} -else -{ -lean_object* x_58; -lean_dec(x_39); -x_58 = lean_box(0); -x_8 = x_58; -goto block_24; -} -} -else -{ -lean_object* x_59; -lean_dec(x_39); -x_59 = lean_box(0); -x_8 = x_59; -goto block_24; -} -} -else -{ -lean_object* x_60; -lean_dec(x_39); -x_60 = lean_box(0); -x_8 = x_60; -goto block_24; -} -} -} -block_139: -{ -lean_object* x_63; lean_object* x_103; uint8_t x_104; -lean_dec(x_62); -x_103 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__18; -x_104 = lean_name_eq(x_39, x_103); -if (x_104 == 0) -{ -lean_object* x_105; -x_105 = lean_box(0); -x_63 = x_105; -goto block_102; -} -else -{ -lean_object* x_106; uint8_t x_107; -x_106 = lean_unsigned_to_nat(2u); -x_107 = lean_nat_dec_eq(x_41, x_106); -if (x_107 == 0) -{ -lean_object* x_108; -x_108 = lean_box(0); -x_63 = x_108; -goto block_102; -} -else -{ -lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -lean_dec(x_39); -x_109 = lean_nat_sub(x_41, x_40); -x_110 = lean_unsigned_to_nat(1u); -x_111 = lean_nat_sub(x_109, x_110); -lean_dec(x_109); +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_dec(x_26); +x_27 = lean_nat_sub(x_24, x_23); +lean_dec(x_24); +x_28 = lean_unsigned_to_nat(1u); +x_29 = lean_nat_sub(x_27, x_28); +lean_dec(x_27); lean_inc(x_1); -x_112 = l_Lean_Expr_getRevArg_x21(x_1, x_111); +x_30 = l_Lean_Expr_getRevArg_x21(x_1, x_29); +x_31 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__1; lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_113 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_112, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_113) == 0) +x_32 = l_Lean_Meta_isExprDefEq(x_30, x_31, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); -lean_inc(x_115); -lean_dec(x_113); -x_116 = lean_nat_sub(x_41, x_110); -lean_dec(x_41); -x_117 = lean_nat_sub(x_116, x_110); -lean_dec(x_116); -x_118 = l_Lean_Expr_getRevArg_x21(x_1, x_117); -x_119 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_118, x_2, x_3, x_4, x_5, x_6, x_115); -if (lean_obj_tag(x_119) == 0) +lean_object* x_33; uint8_t x_34; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_unbox(x_33); +lean_dec(x_33); +if (x_34 == 0) { -uint8_t x_120; -x_120 = !lean_is_exclusive(x_119); -if (x_120 == 0) -{ -lean_object* x_121; uint8_t x_122; lean_object* x_123; lean_object* x_124; -x_121 = lean_ctor_get(x_119, 0); -x_122 = 0; -x_123 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_123, 0, x_114); -lean_ctor_set(x_123, 1, x_121); -lean_ctor_set_uint8(x_123, sizeof(void*)*2, x_122); -x_124 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_119, 0, x_124); -return x_119; -} -else -{ -lean_object* x_125; lean_object* x_126; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_125 = lean_ctor_get(x_119, 0); -x_126 = lean_ctor_get(x_119, 1); -lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_119); -x_127 = 0; -x_128 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_128, 0, x_114); -lean_ctor_set(x_128, 1, x_125); -lean_ctor_set_uint8(x_128, sizeof(void*)*2, x_127); -x_129 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_129, 0, x_128); -x_130 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_130, 0, x_129); -lean_ctor_set(x_130, 1, x_126); -return x_130; -} -} -else -{ -uint8_t x_131; -lean_dec(x_114); -x_131 = !lean_is_exclusive(x_119); -if (x_131 == 0) -{ -return x_119; -} -else -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_132 = lean_ctor_get(x_119, 0); -x_133 = lean_ctor_get(x_119, 1); -lean_inc(x_133); -lean_inc(x_132); -lean_dec(x_119); -x_134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_134, 0, x_132); -lean_ctor_set(x_134, 1, x_133); -return x_134; -} -} -} -else -{ -uint8_t x_135; -lean_dec(x_41); +uint8_t x_35; lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_135 = !lean_is_exclusive(x_113); -if (x_135 == 0) +x_35 = !lean_is_exclusive(x_32); +if (x_35 == 0) { -return x_113; +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_32, 0); +lean_dec(x_36); +x_37 = lean_box(0); +lean_ctor_set(x_32, 0, x_37); +return x_32; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_136 = lean_ctor_get(x_113, 0); -x_137 = lean_ctor_get(x_113, 1); -lean_inc(x_137); -lean_inc(x_136); -lean_dec(x_113); -x_138 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_138, 0, x_136); -lean_ctor_set(x_138, 1, x_137); -return x_138; +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_32, 1); +lean_inc(x_38); +lean_dec(x_32); +x_39 = lean_box(0); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +return x_40; } } -} -} -block_102: +else { -lean_object* x_64; uint8_t x_65; -lean_dec(x_63); -x_64 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__17; -x_65 = lean_name_eq(x_39, x_64); -if (x_65 == 0) +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_32, 1); +lean_inc(x_41); +lean_dec(x_32); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_42 = l_Lean_Meta_unfoldProjInst_x3f(x_1, x_3, x_4, x_5, x_6, x_41); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_66; -x_66 = lean_box(0); -x_42 = x_66; -goto block_61; +lean_object* x_43; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_44 = !lean_is_exclusive(x_42); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_42, 0); +lean_dec(x_45); +x_46 = lean_box(0); +lean_ctor_set(x_42, 0, x_46); +return x_42; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_42, 1); +lean_inc(x_47); +lean_dec(x_42); +x_48 = lean_box(0); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +return x_49; +} +} +else +{ +lean_object* x_50; lean_object* x_51; +x_50 = lean_ctor_get(x_42, 1); +lean_inc(x_50); +lean_dec(x_42); +x_51 = lean_ctor_get(x_43, 0); +lean_inc(x_51); +lean_dec(x_43); +x_1 = x_51; +x_7 = x_50; +goto _start; +} +} +else +{ +uint8_t x_53; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_53 = !lean_is_exclusive(x_42); +if (x_53 == 0) +{ +return x_42; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_42, 0); +x_55 = lean_ctor_get(x_42, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_42); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +} +} +} +else +{ +uint8_t x_57; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_57 = !lean_is_exclusive(x_32); +if (x_57 == 0) +{ +return x_32; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_32, 0); +x_59 = lean_ctor_get(x_32, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_32); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; +} +} +} +block_81: +{ +lean_object* x_63; uint8_t x_64; +lean_dec(x_62); +x_63 = lean_unsigned_to_nat(4u); +x_64 = lean_nat_dec_eq(x_24, x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; +lean_dec(x_24); +lean_dec(x_22); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_65 = lean_box(0); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_7); +return x_66; } else { lean_object* x_67; uint8_t x_68; -x_67 = lean_unsigned_to_nat(2u); -x_68 = lean_nat_dec_eq(x_41, x_67); +x_67 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__4; +x_68 = lean_name_eq(x_22, x_67); if (x_68 == 0) { -lean_object* x_69; -x_69 = lean_box(0); -x_42 = x_69; -goto block_61; -} -else +lean_object* x_69; uint8_t x_70; +x_69 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__5; +x_70 = lean_name_eq(x_22, x_69); +if (x_70 == 0) { -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -lean_dec(x_39); -x_70 = lean_nat_sub(x_41, x_40); -x_71 = lean_unsigned_to_nat(1u); -x_72 = lean_nat_sub(x_70, x_71); -lean_dec(x_70); -lean_inc(x_1); -x_73 = l_Lean_Expr_getRevArg_x21(x_1, x_72); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_74 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_73, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_74) == 0) +lean_object* x_71; uint8_t x_72; +x_71 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__9; +x_72 = lean_name_eq(x_22, x_71); +if (x_72 == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -lean_dec(x_74); -x_77 = lean_nat_sub(x_41, x_71); -lean_dec(x_41); -x_78 = lean_nat_sub(x_77, x_71); -lean_dec(x_77); -x_79 = l_Lean_Expr_getRevArg_x21(x_1, x_78); -x_80 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_79, x_2, x_3, x_4, x_5, x_6, x_76); -if (lean_obj_tag(x_80) == 0) +lean_object* x_73; uint8_t x_74; +x_73 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__13; +x_74 = lean_name_eq(x_22, x_73); +lean_dec(x_22); +if (x_74 == 0) { -uint8_t x_81; -x_81 = !lean_is_exclusive(x_80); -if (x_81 == 0) -{ -lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; lean_object* x_86; -x_82 = lean_ctor_get(x_80, 0); -x_83 = l_Nat_Linear_Expr_inc(x_75); -x_84 = 0; -x_85 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_82); -lean_ctor_set_uint8(x_85, sizeof(void*)*2, x_84); -x_86 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_80, 0, x_86); -return x_80; -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_87 = lean_ctor_get(x_80, 0); -x_88 = lean_ctor_get(x_80, 1); -lean_inc(x_88); -lean_inc(x_87); -lean_dec(x_80); -x_89 = l_Nat_Linear_Expr_inc(x_75); -x_90 = 0; -x_91 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_87); -lean_ctor_set_uint8(x_91, sizeof(void*)*2, x_90); -x_92 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_92, 0, x_91); -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_88); -return x_93; -} -} -else -{ -uint8_t x_94; -lean_dec(x_75); -x_94 = !lean_is_exclusive(x_80); -if (x_94 == 0) -{ -return x_80; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_80, 0); -x_96 = lean_ctor_get(x_80, 1); -lean_inc(x_96); -lean_inc(x_95); -lean_dec(x_80); -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_41); +lean_object* x_75; lean_object* x_76; +lean_dec(x_24); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_98 = !lean_is_exclusive(x_74); -if (x_98 == 0) -{ -return x_74; +x_75 = lean_box(0); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_7); +return x_76; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_74, 0); -x_100 = lean_ctor_get(x_74, 1); -lean_inc(x_100); -lean_inc(x_99); -lean_dec(x_74); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -return x_101; +lean_object* x_77; +x_77 = lean_box(0); +x_26 = x_77; +goto block_61; +} +} +else +{ +lean_object* x_78; +lean_dec(x_22); +x_78 = lean_box(0); +x_26 = x_78; +goto block_61; +} +} +else +{ +lean_object* x_79; +lean_dec(x_22); +x_79 = lean_box(0); +x_26 = x_79; +goto block_61; +} +} +else +{ +lean_object* x_80; +lean_dec(x_22); +x_80 = lean_box(0); +x_26 = x_80; +goto block_61; +} +} +} +block_121: +{ +lean_object* x_83; uint8_t x_84; +lean_dec(x_82); +x_83 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__14; +x_84 = lean_name_eq(x_22, x_83); +if (x_84 == 0) +{ +lean_object* x_85; +x_85 = lean_box(0); +x_62 = x_85; +goto block_81; +} +else +{ +lean_object* x_86; uint8_t x_87; +x_86 = lean_unsigned_to_nat(2u); +x_87 = lean_nat_dec_eq(x_24, x_86); +if (x_87 == 0) +{ +lean_object* x_88; +x_88 = lean_box(0); +x_62 = x_88; +goto block_81; +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_22); +x_89 = lean_nat_sub(x_24, x_23); +x_90 = lean_unsigned_to_nat(1u); +x_91 = lean_nat_sub(x_89, x_90); +lean_dec(x_89); +lean_inc(x_1); +x_92 = l_Lean_Expr_getRevArg_x21(x_1, x_91); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_93 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_92, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_93) == 0) +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +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 = lean_nat_sub(x_24, x_90); +lean_dec(x_24); +x_97 = lean_nat_sub(x_96, x_90); +lean_dec(x_96); +x_98 = l_Lean_Expr_getRevArg_x21(x_1, x_97); +x_99 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr(x_98, x_2, x_3, x_4, x_5, x_6, x_95); +if (lean_obj_tag(x_99) == 0) +{ +uint8_t x_100; +x_100 = !lean_is_exclusive(x_99); +if (x_100 == 0) +{ +lean_object* x_101; lean_object* x_102; uint8_t x_103; lean_object* x_104; lean_object* x_105; +x_101 = lean_ctor_get(x_99, 0); +x_102 = l_Nat_Linear_Expr_inc(x_94); +x_103 = 0; +x_104 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_101); +lean_ctor_set_uint8(x_104, sizeof(void*)*2, x_103); +x_105 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_99, 0, x_105); +return x_99; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_106 = lean_ctor_get(x_99, 0); +x_107 = lean_ctor_get(x_99, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_99); +x_108 = l_Nat_Linear_Expr_inc(x_94); +x_109 = 0; +x_110 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_106); +lean_ctor_set_uint8(x_110, sizeof(void*)*2, x_109); +x_111 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_111, 0, x_110); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_107); +return x_112; +} +} +else +{ +uint8_t x_113; +lean_dec(x_94); +x_113 = !lean_is_exclusive(x_99); +if (x_113 == 0) +{ +return x_99; +} +else +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_114 = lean_ctor_get(x_99, 0); +x_115 = lean_ctor_get(x_99, 1); +lean_inc(x_115); +lean_inc(x_114); +lean_dec(x_99); +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_114); +lean_ctor_set(x_116, 1, x_115); +return x_116; +} +} +} +else +{ +uint8_t x_117; +lean_dec(x_24); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_117 = !lean_is_exclusive(x_93); +if (x_117 == 0) +{ +return x_93; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_118 = lean_ctor_get(x_93, 0); +x_119 = lean_ctor_get(x_93, 1); +lean_inc(x_119); +lean_inc(x_118); +lean_dec(x_93); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_118); +lean_ctor_set(x_120, 1, x_119); +return x_120; } } } @@ -3294,103 +4270,18 @@ return x_101; } default: { -lean_object* x_177; lean_object* x_178; -lean_dec(x_25); +lean_object* x_196; lean_object* x_197; +lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_177 = lean_box(0); -x_178 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_7); -return x_178; -} -} -block_24: -{ -lean_object* x_9; -lean_dec(x_8); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_9 = l_Lean_Meta_unfoldProjInst_x3f(x_1, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_9, 0); -lean_dec(x_12); -x_13 = lean_box(0); -lean_ctor_set(x_9, 0, x_13); -return x_9; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_dec(x_9); -x_15 = lean_box(0); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -} -else -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_9, 1); -lean_inc(x_17); -lean_dec(x_9); -x_18 = lean_ctor_get(x_10, 0); -lean_inc(x_18); -lean_dec(x_10); -x_1 = x_18; -x_7 = x_17; -goto _start; -} -} -else -{ -uint8_t x_20; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_20 = !lean_is_exclusive(x_9); -if (x_20 == 0) -{ -return x_9; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_9, 0); -x_22 = lean_ctor_get(x_9, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_9); -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; -} +x_196 = lean_box(0); +x_197 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_197, 0, x_196); +lean_ctor_set(x_197, 1, x_7); +return x_197; } } } @@ -3404,6 +4295,1678 @@ lean_dec(x_2); return x_8; } } +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_run___rarg___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Std_mkHashMapImp___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_ToLinear_run___rarg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_ToLinear_run___rarg___closed__1; +x_2 = l_Lean_Meta_Linear_Nat_ToLinear_State_vars___default___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; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_ToLinear_run___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_7 = lean_st_ref_get(x_5, x_6); +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = l_Lean_Meta_Linear_Nat_ToLinear_run___rarg___closed__2; +x_10 = lean_st_mk_ref(x_9, x_8); +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); +lean_inc(x_5); +lean_inc(x_11); +x_13 = lean_apply_6(x_1, x_11, x_2, x_3, x_4, x_5, x_12); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +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_st_ref_get(x_5, x_15); +lean_dec(x_5); +x_17 = lean_ctor_get(x_16, 1); +lean_inc(x_17); +lean_dec(x_16); +x_18 = lean_st_ref_get(x_11, x_17); +lean_dec(x_11); +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +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_20, 1); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_14); +lean_ctor_set(x_22, 1, x_21); +lean_ctor_set(x_18, 0, x_22); +return x_18; +} +else +{ +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_18, 0); +x_24 = lean_ctor_get(x_18, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_18); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_14); +lean_ctor_set(x_26, 1, x_25); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_24); +return x_27; +} +} +else +{ +uint8_t x_28; +lean_dec(x_11); +lean_dec(x_5); +x_28 = !lean_is_exclusive(x_13); +if (x_28 == 0) +{ +return x_13; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_13, 0); +x_30 = lean_ctor_get(x_13, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_13); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_ToLinear_run(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_Linear_Nat_ToLinear_run___rarg), 6, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_toContextExpr(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_array_to_list(lean_box(0), x_1); +x_8 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__1; +x_9 = l_Lean_Meta_mkListLit(x_8, x_7, x_2, x_3, x_4, x_5, x_6); +return x_9; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_reflTrue___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("refl"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_reflTrue___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__17; +x_2 = l_Lean_Meta_Linear_Nat_reflTrue___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_reflTrue___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_levelOne; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_reflTrue___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_reflTrue___closed__2; +x_2 = l_Lean_Meta_Linear_Nat_reflTrue___closed__3; +x_3 = l_Lean_mkConst(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_reflTrue___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__7; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_reflTrue___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Linear_Nat_reflTrue___closed__4; +x_2 = l_Lean_Meta_Linear_Nat_reflTrue___closed__5; +x_3 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__13; +x_4 = l_Lean_mkAppB(x_1, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_reflTrue() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Meta_Linear_Nat_reflTrue___closed__6; +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("eq_of_toNormPoly_eq"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__2; +x_2 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___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_Linear_Nat_simpCnstr_x3f___closed__2; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("eq_true_of_isValid"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__2; +x_2 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__4; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__5; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("True"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__7; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__8; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("eq_false_of_isUnsat"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__2; +x_2 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__10; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__11; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("False"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__13; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__15() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__14; +x_3 = l_Lean_mkConst(x_2, x_1); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Nat_simpCnstr_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; +x_7 = lean_alloc_closure((void*)(l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___boxed), 7, 1); +lean_closure_set(x_7, 0, x_1); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_8 = l_Lean_Meta_Linear_Nat_ToLinear_run___rarg(x_7, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_11 = !lean_is_exclusive(x_8); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_8, 0); +lean_dec(x_12); +x_13 = lean_box(0); +lean_ctor_set(x_8, 0, x_13); +return x_8; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_8, 1); +lean_inc(x_14); +lean_dec(x_8); +x_15 = lean_box(0); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_8); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = lean_ctor_get(x_8, 1); +x_19 = lean_ctor_get(x_8, 0); +lean_dec(x_19); +x_20 = !lean_is_exclusive(x_9); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_9, 1); +x_22 = lean_ctor_get(x_9, 0); +lean_dec(x_22); +x_23 = !lean_is_exclusive(x_10); +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_10, 0); +x_25 = l_Nat_Linear_ExprCnstr_toPoly(x_24); +lean_inc(x_25); +x_26 = l_Nat_Linear_PolyCnstr_norm(x_25); +x_27 = l_Nat_Linear_PolyCnstr_isUnsat(x_26); +if (x_27 == 0) +{ +uint8_t x_28; +x_28 = l_Nat_Linear_PolyCnstr_isValid(x_26); +if (x_28 == 0) +{ +uint8_t x_29; +x_29 = l_Nat_Linear_PolyCnstr_hasFewerMonomials(x_26, x_25); +lean_dec(x_25); +if (x_29 == 0) +{ +lean_object* x_30; +lean_dec(x_26); +lean_free_object(x_10); +lean_dec(x_24); +lean_free_object(x_9); +lean_dec(x_21); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_30 = lean_box(0); +lean_ctor_set(x_8, 0, x_30); +return x_8; +} +else +{ +lean_object* x_31; lean_object* x_32; +lean_free_object(x_8); +x_31 = l_Nat_Linear_PolyCnstr_toExpr(x_26); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_21); +x_32 = l_Lean_Meta_Linear_Nat_toContextExpr(x_21, x_2, x_3, x_4, x_5, x_18); +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; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_24); +lean_inc(x_31); +x_36 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_31); +x_37 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__3; +x_38 = l_Lean_Meta_Linear_Nat_reflTrue; +x_39 = l_Lean_mkApp4(x_37, x_33, x_35, x_36, x_38); +x_40 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith(x_21, x_31, x_2, x_3, x_4, x_5, x_34); +lean_dec(x_21); +if (lean_obj_tag(x_40) == 0) +{ +uint8_t x_41; +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; +x_42 = lean_ctor_get(x_40, 0); +lean_ctor_set(x_9, 1, x_39); +lean_ctor_set(x_9, 0, x_42); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_40, 0, x_10); +return x_40; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_40, 0); +x_44 = lean_ctor_get(x_40, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_40); +lean_ctor_set(x_9, 1, x_39); +lean_ctor_set(x_9, 0, x_43); +lean_ctor_set(x_10, 0, x_9); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_10); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +else +{ +uint8_t x_46; +lean_dec(x_39); +lean_free_object(x_10); +lean_free_object(x_9); +x_46 = !lean_is_exclusive(x_40); +if (x_46 == 0) +{ +return x_40; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_40, 0); +x_48 = lean_ctor_get(x_40, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_40); +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_31); +lean_free_object(x_10); +lean_dec(x_24); +lean_free_object(x_9); +lean_dec(x_21); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_50 = !lean_is_exclusive(x_32); +if (x_50 == 0) +{ +return x_32; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_32, 0); +x_52 = lean_ctor_get(x_32, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_32); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; +} +} +} +} +else +{ +lean_object* x_54; +lean_dec(x_26); +lean_dec(x_25); +lean_free_object(x_8); +x_54 = l_Lean_Meta_Linear_Nat_toContextExpr(x_21, x_2, x_3, x_4, x_5, x_18); +if (lean_obj_tag(x_54) == 0) +{ +uint8_t x_55; +x_55 = !lean_is_exclusive(x_54); +if (x_55 == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_56 = lean_ctor_get(x_54, 0); +x_57 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_24); +x_58 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__6; +x_59 = l_Lean_Meta_Linear_Nat_reflTrue; +x_60 = l_Lean_mkApp3(x_58, x_56, x_57, x_59); +x_61 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__9; +lean_ctor_set(x_9, 1, x_60); +lean_ctor_set(x_9, 0, x_61); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_54, 0, x_10); +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; lean_object* x_68; lean_object* x_69; +x_62 = lean_ctor_get(x_54, 0); +x_63 = lean_ctor_get(x_54, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_54); +x_64 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_24); +x_65 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__6; +x_66 = l_Lean_Meta_Linear_Nat_reflTrue; +x_67 = l_Lean_mkApp3(x_65, x_62, x_64, x_66); +x_68 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__9; +lean_ctor_set(x_9, 1, x_67); +lean_ctor_set(x_9, 0, x_68); +lean_ctor_set(x_10, 0, x_9); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_10); +lean_ctor_set(x_69, 1, x_63); +return x_69; +} +} +else +{ +uint8_t x_70; +lean_free_object(x_10); +lean_dec(x_24); +lean_free_object(x_9); +x_70 = !lean_is_exclusive(x_54); +if (x_70 == 0) +{ +return x_54; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_54, 0); +x_72 = lean_ctor_get(x_54, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_54); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; +} +} +} +} +else +{ +lean_object* x_74; +lean_dec(x_26); +lean_dec(x_25); +lean_free_object(x_8); +x_74 = l_Lean_Meta_Linear_Nat_toContextExpr(x_21, x_2, x_3, x_4, x_5, x_18); +if (lean_obj_tag(x_74) == 0) +{ +uint8_t x_75; +x_75 = !lean_is_exclusive(x_74); +if (x_75 == 0) +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_76 = lean_ctor_get(x_74, 0); +x_77 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_24); +x_78 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__12; +x_79 = l_Lean_Meta_Linear_Nat_reflTrue; +x_80 = l_Lean_mkApp3(x_78, x_76, x_77, x_79); +x_81 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__15; +lean_ctor_set(x_9, 1, x_80); +lean_ctor_set(x_9, 0, x_81); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_74, 0, x_10); +return x_74; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_82 = lean_ctor_get(x_74, 0); +x_83 = lean_ctor_get(x_74, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_74); +x_84 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_24); +x_85 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__12; +x_86 = l_Lean_Meta_Linear_Nat_reflTrue; +x_87 = l_Lean_mkApp3(x_85, x_82, x_84, x_86); +x_88 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__15; +lean_ctor_set(x_9, 1, x_87); +lean_ctor_set(x_9, 0, x_88); +lean_ctor_set(x_10, 0, x_9); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_10); +lean_ctor_set(x_89, 1, x_83); +return x_89; +} +} +else +{ +uint8_t x_90; +lean_free_object(x_10); +lean_dec(x_24); +lean_free_object(x_9); +x_90 = !lean_is_exclusive(x_74); +if (x_90 == 0) +{ +return x_74; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_74, 0); +x_92 = lean_ctor_get(x_74, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_74); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_94 = lean_ctor_get(x_10, 0); +lean_inc(x_94); +lean_dec(x_10); +x_95 = l_Nat_Linear_ExprCnstr_toPoly(x_94); +lean_inc(x_95); +x_96 = l_Nat_Linear_PolyCnstr_norm(x_95); +x_97 = l_Nat_Linear_PolyCnstr_isUnsat(x_96); +if (x_97 == 0) +{ +uint8_t x_98; +x_98 = l_Nat_Linear_PolyCnstr_isValid(x_96); +if (x_98 == 0) +{ +uint8_t x_99; +x_99 = l_Nat_Linear_PolyCnstr_hasFewerMonomials(x_96, x_95); +lean_dec(x_95); +if (x_99 == 0) +{ +lean_object* x_100; +lean_dec(x_96); +lean_dec(x_94); +lean_free_object(x_9); +lean_dec(x_21); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_100 = lean_box(0); +lean_ctor_set(x_8, 0, x_100); +return x_8; +} +else +{ +lean_object* x_101; lean_object* x_102; +lean_free_object(x_8); +x_101 = l_Nat_Linear_PolyCnstr_toExpr(x_96); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_21); +x_102 = l_Lean_Meta_Linear_Nat_toContextExpr(x_21, x_2, x_3, x_4, x_5, x_18); +if (lean_obj_tag(x_102) == 0) +{ +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; +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +lean_dec(x_102); +x_105 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_94); +lean_inc(x_101); +x_106 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_101); +x_107 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__3; +x_108 = l_Lean_Meta_Linear_Nat_reflTrue; +x_109 = l_Lean_mkApp4(x_107, x_103, x_105, x_106, x_108); +x_110 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith(x_21, x_101, x_2, x_3, x_4, x_5, x_104); +lean_dec(x_21); +if (lean_obj_tag(x_110) == 0) +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +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_ctor_set(x_9, 1, x_109); +lean_ctor_set(x_9, 0, x_111); +x_114 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_114, 0, x_9); +if (lean_is_scalar(x_113)) { + x_115 = lean_alloc_ctor(0, 2, 0); +} else { + x_115 = x_113; +} +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_112); +return x_115; +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_109); +lean_free_object(x_9); +x_116 = lean_ctor_get(x_110, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_110, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + x_118 = x_110; +} else { + lean_dec_ref(x_110); + x_118 = lean_box(0); +} +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(1, 2, 0); +} else { + x_119 = x_118; +} +lean_ctor_set(x_119, 0, x_116); +lean_ctor_set(x_119, 1, x_117); +return x_119; +} +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_dec(x_101); +lean_dec(x_94); +lean_free_object(x_9); +lean_dec(x_21); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_120 = lean_ctor_get(x_102, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_102, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_122 = x_102; +} else { + lean_dec_ref(x_102); + x_122 = lean_box(0); +} +if (lean_is_scalar(x_122)) { + x_123 = lean_alloc_ctor(1, 2, 0); +} else { + x_123 = x_122; +} +lean_ctor_set(x_123, 0, x_120); +lean_ctor_set(x_123, 1, x_121); +return x_123; +} +} +} +else +{ +lean_object* x_124; +lean_dec(x_96); +lean_dec(x_95); +lean_free_object(x_8); +x_124 = l_Lean_Meta_Linear_Nat_toContextExpr(x_21, x_2, x_3, x_4, x_5, x_18); +if (lean_obj_tag(x_124) == 0) +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_125 = lean_ctor_get(x_124, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_124, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_127 = x_124; +} else { + lean_dec_ref(x_124); + x_127 = lean_box(0); +} +x_128 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_94); +x_129 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__6; +x_130 = l_Lean_Meta_Linear_Nat_reflTrue; +x_131 = l_Lean_mkApp3(x_129, x_125, x_128, x_130); +x_132 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__9; +lean_ctor_set(x_9, 1, x_131); +lean_ctor_set(x_9, 0, x_132); +x_133 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_133, 0, x_9); +if (lean_is_scalar(x_127)) { + x_134 = lean_alloc_ctor(0, 2, 0); +} else { + x_134 = x_127; +} +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_126); +return x_134; +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_94); +lean_free_object(x_9); +x_135 = lean_ctor_get(x_124, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_124, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_137 = x_124; +} else { + lean_dec_ref(x_124); + x_137 = lean_box(0); +} +if (lean_is_scalar(x_137)) { + x_138 = lean_alloc_ctor(1, 2, 0); +} else { + x_138 = x_137; +} +lean_ctor_set(x_138, 0, x_135); +lean_ctor_set(x_138, 1, x_136); +return x_138; +} +} +} +else +{ +lean_object* x_139; +lean_dec(x_96); +lean_dec(x_95); +lean_free_object(x_8); +x_139 = l_Lean_Meta_Linear_Nat_toContextExpr(x_21, x_2, x_3, x_4, x_5, x_18); +if (lean_obj_tag(x_139) == 0) +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +x_140 = lean_ctor_get(x_139, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_139, 1); +lean_inc(x_141); +if (lean_is_exclusive(x_139)) { + lean_ctor_release(x_139, 0); + lean_ctor_release(x_139, 1); + x_142 = x_139; +} else { + lean_dec_ref(x_139); + x_142 = lean_box(0); +} +x_143 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_94); +x_144 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__12; +x_145 = l_Lean_Meta_Linear_Nat_reflTrue; +x_146 = l_Lean_mkApp3(x_144, x_140, x_143, x_145); +x_147 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__15; +lean_ctor_set(x_9, 1, x_146); +lean_ctor_set(x_9, 0, x_147); +x_148 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_148, 0, x_9); +if (lean_is_scalar(x_142)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_142; +} +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_141); +return x_149; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +lean_dec(x_94); +lean_free_object(x_9); +x_150 = lean_ctor_get(x_139, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_139, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_139)) { + lean_ctor_release(x_139, 0); + lean_ctor_release(x_139, 1); + x_152 = x_139; +} else { + lean_dec_ref(x_139); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(1, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; +x_154 = lean_ctor_get(x_9, 1); +lean_inc(x_154); +lean_dec(x_9); +x_155 = lean_ctor_get(x_10, 0); +lean_inc(x_155); +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + x_156 = x_10; +} else { + lean_dec_ref(x_10); + x_156 = lean_box(0); +} +x_157 = l_Nat_Linear_ExprCnstr_toPoly(x_155); +lean_inc(x_157); +x_158 = l_Nat_Linear_PolyCnstr_norm(x_157); +x_159 = l_Nat_Linear_PolyCnstr_isUnsat(x_158); +if (x_159 == 0) +{ +uint8_t x_160; +x_160 = l_Nat_Linear_PolyCnstr_isValid(x_158); +if (x_160 == 0) +{ +uint8_t x_161; +x_161 = l_Nat_Linear_PolyCnstr_hasFewerMonomials(x_158, x_157); +lean_dec(x_157); +if (x_161 == 0) +{ +lean_object* x_162; +lean_dec(x_158); +lean_dec(x_156); +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_162 = lean_box(0); +lean_ctor_set(x_8, 0, x_162); +return x_8; +} +else +{ +lean_object* x_163; lean_object* x_164; +lean_free_object(x_8); +x_163 = l_Nat_Linear_PolyCnstr_toExpr(x_158); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_154); +x_164 = l_Lean_Meta_Linear_Nat_toContextExpr(x_154, x_2, x_3, x_4, x_5, x_18); +if (lean_obj_tag(x_164) == 0) +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_165 = lean_ctor_get(x_164, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_164, 1); +lean_inc(x_166); +lean_dec(x_164); +x_167 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_155); +lean_inc(x_163); +x_168 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_163); +x_169 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__3; +x_170 = l_Lean_Meta_Linear_Nat_reflTrue; +x_171 = l_Lean_mkApp4(x_169, x_165, x_167, x_168, x_170); +x_172 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith(x_154, x_163, x_2, x_3, x_4, x_5, x_166); +lean_dec(x_154); +if (lean_obj_tag(x_172) == 0) +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_173 = lean_ctor_get(x_172, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_172, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_175 = x_172; +} else { + lean_dec_ref(x_172); + x_175 = lean_box(0); +} +x_176 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_176, 0, x_173); +lean_ctor_set(x_176, 1, x_171); +if (lean_is_scalar(x_156)) { + x_177 = lean_alloc_ctor(1, 1, 0); +} else { + x_177 = x_156; +} +lean_ctor_set(x_177, 0, x_176); +if (lean_is_scalar(x_175)) { + x_178 = lean_alloc_ctor(0, 2, 0); +} else { + x_178 = x_175; +} +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_174); +return x_178; +} +else +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +lean_dec(x_171); +lean_dec(x_156); +x_179 = lean_ctor_get(x_172, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_172, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_181 = x_172; +} else { + lean_dec_ref(x_172); + x_181 = lean_box(0); +} +if (lean_is_scalar(x_181)) { + x_182 = lean_alloc_ctor(1, 2, 0); +} else { + x_182 = x_181; +} +lean_ctor_set(x_182, 0, x_179); +lean_ctor_set(x_182, 1, x_180); +return x_182; +} +} +else +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; +lean_dec(x_163); +lean_dec(x_156); +lean_dec(x_155); +lean_dec(x_154); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_183 = lean_ctor_get(x_164, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_164, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); + x_185 = x_164; +} else { + lean_dec_ref(x_164); + 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_dec(x_158); +lean_dec(x_157); +lean_free_object(x_8); +x_187 = l_Lean_Meta_Linear_Nat_toContextExpr(x_154, x_2, x_3, x_4, x_5, x_18); +if (lean_obj_tag(x_187) == 0) +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_187, 1); +lean_inc(x_189); +if (lean_is_exclusive(x_187)) { + lean_ctor_release(x_187, 0); + lean_ctor_release(x_187, 1); + x_190 = x_187; +} else { + lean_dec_ref(x_187); + x_190 = lean_box(0); +} +x_191 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_155); +x_192 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__6; +x_193 = l_Lean_Meta_Linear_Nat_reflTrue; +x_194 = l_Lean_mkApp3(x_192, x_188, x_191, x_193); +x_195 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__9; +x_196 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_194); +if (lean_is_scalar(x_156)) { + x_197 = lean_alloc_ctor(1, 1, 0); +} else { + x_197 = x_156; +} +lean_ctor_set(x_197, 0, x_196); +if (lean_is_scalar(x_190)) { + x_198 = lean_alloc_ctor(0, 2, 0); +} else { + x_198 = x_190; +} +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_189); +return x_198; +} +else +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +lean_dec(x_156); +lean_dec(x_155); +x_199 = lean_ctor_get(x_187, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_187, 1); +lean_inc(x_200); +if (lean_is_exclusive(x_187)) { + lean_ctor_release(x_187, 0); + lean_ctor_release(x_187, 1); + x_201 = x_187; +} else { + lean_dec_ref(x_187); + x_201 = lean_box(0); +} +if (lean_is_scalar(x_201)) { + x_202 = lean_alloc_ctor(1, 2, 0); +} else { + x_202 = x_201; +} +lean_ctor_set(x_202, 0, x_199); +lean_ctor_set(x_202, 1, x_200); +return x_202; +} +} +} +else +{ +lean_object* x_203; +lean_dec(x_158); +lean_dec(x_157); +lean_free_object(x_8); +x_203 = l_Lean_Meta_Linear_Nat_toContextExpr(x_154, x_2, x_3, x_4, x_5, x_18); +if (lean_obj_tag(x_203) == 0) +{ +lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_204 = lean_ctor_get(x_203, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_203, 1); +lean_inc(x_205); +if (lean_is_exclusive(x_203)) { + lean_ctor_release(x_203, 0); + lean_ctor_release(x_203, 1); + x_206 = x_203; +} else { + lean_dec_ref(x_203); + x_206 = lean_box(0); +} +x_207 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_155); +x_208 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__12; +x_209 = l_Lean_Meta_Linear_Nat_reflTrue; +x_210 = l_Lean_mkApp3(x_208, x_204, x_207, x_209); +x_211 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__15; +x_212 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_212, 0, x_211); +lean_ctor_set(x_212, 1, x_210); +if (lean_is_scalar(x_156)) { + x_213 = lean_alloc_ctor(1, 1, 0); +} else { + x_213 = x_156; +} +lean_ctor_set(x_213, 0, x_212); +if (lean_is_scalar(x_206)) { + x_214 = lean_alloc_ctor(0, 2, 0); +} else { + x_214 = x_206; +} +lean_ctor_set(x_214, 0, x_213); +lean_ctor_set(x_214, 1, x_205); +return x_214; +} +else +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +lean_dec(x_156); +lean_dec(x_155); +x_215 = lean_ctor_get(x_203, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_203, 1); +lean_inc(x_216); +if (lean_is_exclusive(x_203)) { + lean_ctor_release(x_203, 0); + lean_ctor_release(x_203, 1); + x_217 = x_203; +} else { + lean_dec_ref(x_203); + x_217 = lean_box(0); +} +if (lean_is_scalar(x_217)) { + x_218 = lean_alloc_ctor(1, 2, 0); +} else { + x_218 = x_217; +} +lean_ctor_set(x_218, 0, x_215); +lean_ctor_set(x_218, 1, x_216); +return x_218; +} +} +} +} +else +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; uint8_t x_226; +x_219 = lean_ctor_get(x_8, 1); +lean_inc(x_219); +lean_dec(x_8); +x_220 = lean_ctor_get(x_9, 1); +lean_inc(x_220); +if (lean_is_exclusive(x_9)) { + lean_ctor_release(x_9, 0); + lean_ctor_release(x_9, 1); + x_221 = x_9; +} else { + lean_dec_ref(x_9); + x_221 = lean_box(0); +} +x_222 = lean_ctor_get(x_10, 0); +lean_inc(x_222); +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + x_223 = x_10; +} else { + lean_dec_ref(x_10); + x_223 = lean_box(0); +} +x_224 = l_Nat_Linear_ExprCnstr_toPoly(x_222); +lean_inc(x_224); +x_225 = l_Nat_Linear_PolyCnstr_norm(x_224); +x_226 = l_Nat_Linear_PolyCnstr_isUnsat(x_225); +if (x_226 == 0) +{ +uint8_t x_227; +x_227 = l_Nat_Linear_PolyCnstr_isValid(x_225); +if (x_227 == 0) +{ +uint8_t x_228; +x_228 = l_Nat_Linear_PolyCnstr_hasFewerMonomials(x_225, x_224); +lean_dec(x_224); +if (x_228 == 0) +{ +lean_object* x_229; lean_object* x_230; +lean_dec(x_225); +lean_dec(x_223); +lean_dec(x_222); +lean_dec(x_221); +lean_dec(x_220); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_229 = lean_box(0); +x_230 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_230, 0, x_229); +lean_ctor_set(x_230, 1, x_219); +return x_230; +} +else +{ +lean_object* x_231; lean_object* x_232; +x_231 = l_Nat_Linear_PolyCnstr_toExpr(x_225); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_220); +x_232 = l_Lean_Meta_Linear_Nat_toContextExpr(x_220, x_2, x_3, x_4, x_5, x_219); +if (lean_obj_tag(x_232) == 0) +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_233 = lean_ctor_get(x_232, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_232, 1); +lean_inc(x_234); +lean_dec(x_232); +x_235 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_222); +lean_inc(x_231); +x_236 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_231); +x_237 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__3; +x_238 = l_Lean_Meta_Linear_Nat_reflTrue; +x_239 = l_Lean_mkApp4(x_237, x_233, x_235, x_236, x_238); +x_240 = l_Lean_Meta_Linear_Nat_LinearCnstr_toArith(x_220, x_231, x_2, x_3, x_4, x_5, x_234); +lean_dec(x_220); +if (lean_obj_tag(x_240) == 0) +{ +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_241 = lean_ctor_get(x_240, 0); +lean_inc(x_241); +x_242 = lean_ctor_get(x_240, 1); +lean_inc(x_242); +if (lean_is_exclusive(x_240)) { + lean_ctor_release(x_240, 0); + lean_ctor_release(x_240, 1); + x_243 = x_240; +} else { + lean_dec_ref(x_240); + x_243 = lean_box(0); +} +if (lean_is_scalar(x_221)) { + x_244 = lean_alloc_ctor(0, 2, 0); +} else { + x_244 = x_221; +} +lean_ctor_set(x_244, 0, x_241); +lean_ctor_set(x_244, 1, x_239); +if (lean_is_scalar(x_223)) { + x_245 = lean_alloc_ctor(1, 1, 0); +} else { + x_245 = x_223; +} +lean_ctor_set(x_245, 0, x_244); +if (lean_is_scalar(x_243)) { + x_246 = lean_alloc_ctor(0, 2, 0); +} else { + x_246 = x_243; +} +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_242); +return x_246; +} +else +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +lean_dec(x_239); +lean_dec(x_223); +lean_dec(x_221); +x_247 = lean_ctor_get(x_240, 0); +lean_inc(x_247); +x_248 = lean_ctor_get(x_240, 1); +lean_inc(x_248); +if (lean_is_exclusive(x_240)) { + lean_ctor_release(x_240, 0); + lean_ctor_release(x_240, 1); + x_249 = x_240; +} else { + lean_dec_ref(x_240); + x_249 = lean_box(0); +} +if (lean_is_scalar(x_249)) { + x_250 = lean_alloc_ctor(1, 2, 0); +} else { + x_250 = x_249; +} +lean_ctor_set(x_250, 0, x_247); +lean_ctor_set(x_250, 1, x_248); +return x_250; +} +} +else +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; +lean_dec(x_231); +lean_dec(x_223); +lean_dec(x_222); +lean_dec(x_221); +lean_dec(x_220); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_251 = lean_ctor_get(x_232, 0); +lean_inc(x_251); +x_252 = lean_ctor_get(x_232, 1); +lean_inc(x_252); +if (lean_is_exclusive(x_232)) { + lean_ctor_release(x_232, 0); + lean_ctor_release(x_232, 1); + x_253 = x_232; +} else { + lean_dec_ref(x_232); + x_253 = lean_box(0); +} +if (lean_is_scalar(x_253)) { + x_254 = lean_alloc_ctor(1, 2, 0); +} else { + x_254 = x_253; +} +lean_ctor_set(x_254, 0, x_251); +lean_ctor_set(x_254, 1, x_252); +return x_254; +} +} +} +else +{ +lean_object* x_255; +lean_dec(x_225); +lean_dec(x_224); +x_255 = l_Lean_Meta_Linear_Nat_toContextExpr(x_220, x_2, x_3, x_4, x_5, x_219); +if (lean_obj_tag(x_255) == 0) +{ +lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; +x_256 = lean_ctor_get(x_255, 0); +lean_inc(x_256); +x_257 = lean_ctor_get(x_255, 1); +lean_inc(x_257); +if (lean_is_exclusive(x_255)) { + lean_ctor_release(x_255, 0); + lean_ctor_release(x_255, 1); + x_258 = x_255; +} else { + lean_dec_ref(x_255); + x_258 = lean_box(0); +} +x_259 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_222); +x_260 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__6; +x_261 = l_Lean_Meta_Linear_Nat_reflTrue; +x_262 = l_Lean_mkApp3(x_260, x_256, x_259, x_261); +x_263 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__9; +if (lean_is_scalar(x_221)) { + x_264 = lean_alloc_ctor(0, 2, 0); +} else { + x_264 = x_221; +} +lean_ctor_set(x_264, 0, x_263); +lean_ctor_set(x_264, 1, x_262); +if (lean_is_scalar(x_223)) { + x_265 = lean_alloc_ctor(1, 1, 0); +} else { + x_265 = x_223; +} +lean_ctor_set(x_265, 0, x_264); +if (lean_is_scalar(x_258)) { + x_266 = lean_alloc_ctor(0, 2, 0); +} else { + x_266 = x_258; +} +lean_ctor_set(x_266, 0, x_265); +lean_ctor_set(x_266, 1, x_257); +return x_266; +} +else +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; +lean_dec(x_223); +lean_dec(x_222); +lean_dec(x_221); +x_267 = lean_ctor_get(x_255, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_255, 1); +lean_inc(x_268); +if (lean_is_exclusive(x_255)) { + lean_ctor_release(x_255, 0); + lean_ctor_release(x_255, 1); + x_269 = x_255; +} else { + lean_dec_ref(x_255); + x_269 = lean_box(0); +} +if (lean_is_scalar(x_269)) { + x_270 = lean_alloc_ctor(1, 2, 0); +} else { + x_270 = x_269; +} +lean_ctor_set(x_270, 0, x_267); +lean_ctor_set(x_270, 1, x_268); +return x_270; +} +} +} +else +{ +lean_object* x_271; +lean_dec(x_225); +lean_dec(x_224); +x_271 = l_Lean_Meta_Linear_Nat_toContextExpr(x_220, x_2, x_3, x_4, x_5, x_219); +if (lean_obj_tag(x_271) == 0) +{ +lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; +x_272 = lean_ctor_get(x_271, 0); +lean_inc(x_272); +x_273 = lean_ctor_get(x_271, 1); +lean_inc(x_273); +if (lean_is_exclusive(x_271)) { + lean_ctor_release(x_271, 0); + lean_ctor_release(x_271, 1); + x_274 = x_271; +} else { + lean_dec_ref(x_271); + x_274 = lean_box(0); +} +x_275 = l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr(x_222); +x_276 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__12; +x_277 = l_Lean_Meta_Linear_Nat_reflTrue; +x_278 = l_Lean_mkApp3(x_276, x_272, x_275, x_277); +x_279 = l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__15; +if (lean_is_scalar(x_221)) { + x_280 = lean_alloc_ctor(0, 2, 0); +} else { + x_280 = x_221; +} +lean_ctor_set(x_280, 0, x_279); +lean_ctor_set(x_280, 1, x_278); +if (lean_is_scalar(x_223)) { + x_281 = lean_alloc_ctor(1, 1, 0); +} else { + x_281 = x_223; +} +lean_ctor_set(x_281, 0, x_280); +if (lean_is_scalar(x_274)) { + x_282 = lean_alloc_ctor(0, 2, 0); +} else { + x_282 = x_274; +} +lean_ctor_set(x_282, 0, x_281); +lean_ctor_set(x_282, 1, x_273); +return x_282; +} +else +{ +lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; +lean_dec(x_223); +lean_dec(x_222); +lean_dec(x_221); +x_283 = lean_ctor_get(x_271, 0); +lean_inc(x_283); +x_284 = lean_ctor_get(x_271, 1); +lean_inc(x_284); +if (lean_is_exclusive(x_271)) { + lean_ctor_release(x_271, 0); + lean_ctor_release(x_271, 1); + x_285 = x_271; +} else { + lean_dec_ref(x_271); + x_285 = lean_box(0); +} +if (lean_is_scalar(x_285)) { + x_286 = lean_alloc_ctor(1, 2, 0); +} else { + x_286 = x_285; +} +lean_ctor_set(x_286, 0, x_283); +lean_ctor_set(x_286, 1, x_284); +return x_286; +} +} +} +} +} +else +{ +uint8_t x_287; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_287 = !lean_is_exclusive(x_8); +if (x_287 == 0) +{ +return x_8; +} +else +{ +lean_object* x_288; lean_object* x_289; lean_object* x_290; +x_288 = lean_ctor_get(x_8, 0); +x_289 = lean_ctor_get(x_8, 1); +lean_inc(x_289); +lean_inc(x_288); +lean_dec(x_8); +x_290 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_290, 0, x_288); +lean_ctor_set(x_290, 1, x_289); +return x_290; +} +} +} +} lean_object* initialize_Init(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Check(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Offset(uint8_t builtin, lean_object*); @@ -3495,8 +6058,6 @@ l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__17 = _init_l_Lean_Meta_Linear lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__17); l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__18 = _init_l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__18(); lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearExpr_toExpr___closed__18); -l_Lean_Meta_Linear_Nat_instToExprLinearExpr___lambda__1___closed__1 = _init_l_Lean_Meta_Linear_Nat_instToExprLinearExpr___lambda__1___closed__1(); -lean_mark_persistent(l_Lean_Meta_Linear_Nat_instToExprLinearExpr___lambda__1___closed__1); l_Lean_Meta_Linear_Nat_instToExprLinearExpr___closed__1 = _init_l_Lean_Meta_Linear_Nat_instToExprLinearExpr___closed__1(); lean_mark_persistent(l_Lean_Meta_Linear_Nat_instToExprLinearExpr___closed__1); l_Lean_Meta_Linear_Nat_instToExprLinearExpr___closed__2 = _init_l_Lean_Meta_Linear_Nat_instToExprLinearExpr___closed__2(); @@ -3505,6 +6066,66 @@ l_Lean_Meta_Linear_Nat_instToExprLinearExpr___closed__3 = _init_l_Lean_Meta_Line lean_mark_persistent(l_Lean_Meta_Linear_Nat_instToExprLinearExpr___closed__3); l_Lean_Meta_Linear_Nat_instToExprLinearExpr = _init_l_Lean_Meta_Linear_Nat_instToExprLinearExpr(); lean_mark_persistent(l_Lean_Meta_Linear_Nat_instToExprLinearExpr); +l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__1 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__1(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__1); +l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__2 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__2(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__2); +l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__3 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__3(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__3); +l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__4 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__4(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__4); +l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__5 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__5(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__5); +l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__6 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__6(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__6); +l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__7 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__7(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__7); +l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__8 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__8(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__8); +l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__9 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__9(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__9); +l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__10 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__10(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__10); +l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__11 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__11(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__11); +l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__12 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__12(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__12); +l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__13 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__13(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toExpr___closed__13); +l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__1 = _init_l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__1(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__1); +l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__2 = _init_l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__2(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__2); +l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__3 = _init_l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__3(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_instToExprLinearCnstr___closed__3); +l_Lean_Meta_Linear_Nat_instToExprLinearCnstr = _init_l_Lean_Meta_Linear_Nat_instToExprLinearCnstr(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_instToExprLinearCnstr); +l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__1 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__1(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__1); +l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__2 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__2(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__2); +l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__3 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__3(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__3); +l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__4 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__4(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__4); +l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__5 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__5(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__5); +l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__6 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__6(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__6); +l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__7 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__7(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__7); +l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__8 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__8(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__8); +l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__9 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__9(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__9); +l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__10 = _init_l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__10(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_LinearCnstr_toArith___closed__10); +l_Lean_Meta_Linear_Nat_ToLinear_State_varMap___default = _init_l_Lean_Meta_Linear_Nat_ToLinear_State_varMap___default(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_ToLinear_State_varMap___default); +l_Lean_Meta_Linear_Nat_ToLinear_State_vars___default___closed__1 = _init_l_Lean_Meta_Linear_Nat_ToLinear_State_vars___default___closed__1(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_ToLinear_State_vars___default___closed__1); +l_Lean_Meta_Linear_Nat_ToLinear_State_vars___default = _init_l_Lean_Meta_Linear_Nat_ToLinear_State_vars___default(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_ToLinear_State_vars___default); l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr_visit___closed__1 = _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr_visit___closed__1(); lean_mark_persistent(l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr_visit___closed__1); l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr_visit___closed__2 = _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearExpr_visit___closed__2(); @@ -3553,12 +6174,54 @@ l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__16 = _init_l_Lean_Me lean_mark_persistent(l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__16); l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__17 = _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__17(); lean_mark_persistent(l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__17); -l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__18 = _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__18(); -lean_mark_persistent(l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__18); -l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__19 = _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__19(); -lean_mark_persistent(l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__19); -l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__20 = _init_l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__20(); -lean_mark_persistent(l_Lean_Meta_Linear_Nat_ToLinear_toLinearCnstr_x3f___closed__20); +l_Lean_Meta_Linear_Nat_ToLinear_run___rarg___closed__1 = _init_l_Lean_Meta_Linear_Nat_ToLinear_run___rarg___closed__1(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_ToLinear_run___rarg___closed__1); +l_Lean_Meta_Linear_Nat_ToLinear_run___rarg___closed__2 = _init_l_Lean_Meta_Linear_Nat_ToLinear_run___rarg___closed__2(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_ToLinear_run___rarg___closed__2); +l_Lean_Meta_Linear_Nat_reflTrue___closed__1 = _init_l_Lean_Meta_Linear_Nat_reflTrue___closed__1(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_reflTrue___closed__1); +l_Lean_Meta_Linear_Nat_reflTrue___closed__2 = _init_l_Lean_Meta_Linear_Nat_reflTrue___closed__2(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_reflTrue___closed__2); +l_Lean_Meta_Linear_Nat_reflTrue___closed__3 = _init_l_Lean_Meta_Linear_Nat_reflTrue___closed__3(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_reflTrue___closed__3); +l_Lean_Meta_Linear_Nat_reflTrue___closed__4 = _init_l_Lean_Meta_Linear_Nat_reflTrue___closed__4(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_reflTrue___closed__4); +l_Lean_Meta_Linear_Nat_reflTrue___closed__5 = _init_l_Lean_Meta_Linear_Nat_reflTrue___closed__5(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_reflTrue___closed__5); +l_Lean_Meta_Linear_Nat_reflTrue___closed__6 = _init_l_Lean_Meta_Linear_Nat_reflTrue___closed__6(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_reflTrue___closed__6); +l_Lean_Meta_Linear_Nat_reflTrue = _init_l_Lean_Meta_Linear_Nat_reflTrue(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_reflTrue); +l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__1 = _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__1(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__1); +l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__2 = _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__2(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__2); +l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__3 = _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__3(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__3); +l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__4 = _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__4(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__4); +l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__5 = _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__5(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__5); +l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__6 = _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__6(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__6); +l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__7 = _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__7(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__7); +l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__8 = _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__8(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__8); +l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__9 = _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__9(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__9); +l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__10 = _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__10(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__10); +l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__11 = _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__11(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__11); +l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__12 = _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__12(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__12); +l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__13 = _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__13(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__13); +l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__14 = _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__14(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__14); +l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__15 = _init_l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__15(); +lean_mark_persistent(l_Lean_Meta_Linear_Nat_simpCnstr_x3f___closed__15); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c index 0b1bf209d3..2be7af2d44 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Types.c @@ -166,7 +166,7 @@ x_1 = l_Lean_Meta_Simp_defaultMaxSteps; x_2 = lean_unsigned_to_nat(2u); x_3 = 0; x_4 = 1; -x_5 = lean_alloc_ctor(0, 2, 10); +x_5 = lean_alloc_ctor(0, 2, 11); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); lean_ctor_set_uint8(x_5, sizeof(void*)*2, x_3); @@ -179,6 +179,7 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 6, x_4); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 7, x_4); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 8, x_4); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 9, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 10, x_4); return x_5; } } @@ -306,7 +307,7 @@ _start: lean_object* x_1; uint8_t x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(0u); x_2 = 0; -x_3 = lean_alloc_ctor(0, 2, 10); +x_3 = lean_alloc_ctor(0, 2, 11); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); lean_ctor_set_uint8(x_3, sizeof(void*)*2, x_2); @@ -319,6 +320,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*2 + 6, x_2); lean_ctor_set_uint8(x_3, sizeof(void*)*2 + 7, x_2); lean_ctor_set_uint8(x_3, sizeof(void*)*2 + 8, x_2); lean_ctor_set_uint8(x_3, sizeof(void*)*2 + 9, x_2); +lean_ctor_set_uint8(x_3, sizeof(void*)*2 + 10, x_2); return x_3; } }