chore: update stage0

This commit is contained in:
Leonardo de Moura 2021-05-06 15:40:07 -07:00
parent 7fc6607611
commit 7a7ba648d5
35 changed files with 4704 additions and 2597 deletions

View file

@ -110,6 +110,9 @@ infix:50 " ≈ " => HasEquiv.Equiv
class EmptyCollection (α : Type u) where
emptyCollection : α
notation "{" "}" => EmptyCollection.emptyCollection
notation "∅" => EmptyCollection.emptyCollection
/- Remark: tasks have an efficient implementation in the runtime. -/
structure Task (α : Type u) : Type u where
pure :: (get : α)

View file

@ -607,11 +607,11 @@ def elabLetDeclCore (stx : Syntax) (expectedType? : Option Expr) (useLetExpr : B
let type := expandOptType stx optType
let val := letDecl[4]
let stxNew ← `(let x : $type := $val; match x with | $pat => $body)
let stxNew := match useLetExpr, elabBodyFirst with
let stxNew := match useLetExpr, elabBodyFirst with
| true, false => stxNew
| true, true => stxNew.setKind `Lean.Parser.Term.«let_delayed»
| false, true => stxNew.setKind `Lean.Parser.Term.«let_fun»
| false, false => unreachable!
| false, false => stxNew.setKind `Lean.Parser.Term.«let_fun»
| false, true => unreachable!
withMacroExpansion stx stxNew <| elabTerm stxNew expectedType?
else if letDecl.getKind == `Lean.Parser.Term.letEqnsDecl then
let letDeclIdNew ← liftMacroM <| expandLetEqnsDecl letDecl

View file

@ -66,9 +66,14 @@ open Meta
x?.getD <| mkIdentFrom stx `this
match stx with
| `(have $[$x :]? $type from $val $[;]? $body) => let x := mkId x; `(let_fun $x : $type := $val; $body)
| `(have $[$x :]? $type := $val $[;]? $body) => let x := mkId x; `(let_fun $x : $type := $val; $body)
| `(have $[$x :]? $type by%$b $tac:tacticSeq $[;]? $body) => `(have $[$x :]? $type from by%$b $tac:tacticSeq; $body)
| _ => Macro.throwUnsupported
| _ =>
-- TODO: fix `match` syntax, and avoid this workaround
match stx with
| `(have $x:ident : $type:term := $val $[;]? $body) => `(let_fun $x:ident : $type:term := $val; $body)
| `(have $x:ident := $val:term $[;]? $body) => `(let_fun $x:ident := $val:term ; $body)
| `(have $pattern:term := $val:term $[;]? $body) => `(let_fun $pattern:term := $val:term ; $body)
| _ => Macro.throwUnsupported
@[builtinMacro Lean.Parser.Term.suffices] def expandSuffices : Macro
| `(suffices $[$x :]? $type from $val $[;]? $body) => `(have $[$x :]? $type from $body; $val)

View file

@ -12,6 +12,7 @@ builtin_initialize postponeExceptionId : InternalExceptionId ← registerInterna
builtin_initialize unsupportedSyntaxExceptionId : InternalExceptionId ← registerInternalExceptionId `unsupportedSyntax
builtin_initialize abortCommandExceptionId : InternalExceptionId ← registerInternalExceptionId `abortCommandElab
builtin_initialize abortTermExceptionId : InternalExceptionId ← registerInternalExceptionId `abortTermElab
builtin_initialize abortTacticExceptionId : InternalExceptionId ← registerInternalExceptionId `abortTactic
builtin_initialize autoBoundImplicitExceptionId : InternalExceptionId ← registerInternalExceptionId `autoBoundImplicit
def throwPostpone [MonadExceptOf Exception m] : m α :=
@ -46,8 +47,17 @@ def throwAbortCommand {α m} [MonadExcept Exception m] : m α :=
def throwAbortTerm {α m} [MonadExcept Exception m] : m α :=
throw <| Exception.internal abortTermExceptionId
-- Throw exception to abort evaluation of the current tactic without producing any error message
def throwAbortTactic {α m} [MonadExcept Exception m] : m α :=
throw <| Exception.internal abortTacticExceptionId
def isAbortTacticException (ex : Exception) : Bool :=
match ex with
| Exception.internal id .. => id == abortTacticExceptionId
| _ => false
def isAbortExceptionId (id : InternalExceptionId) : Bool :=
id == abortCommandExceptionId || id == abortTermExceptionId
id == abortCommandExceptionId || id == abortTermExceptionId || id == abortTacticExceptionId
def mkMessageCore (fileName : String) (fileMap : FileMap) (msgData : MessageData) (severity : MessageSeverity) (pos : String.Pos) : Message :=
let pos := fileMap.toPosition pos

View file

@ -193,26 +193,14 @@ private def getSomeSynthethicMVarsRef : TermElabM Syntax := do
mutual
partial def liftTacticElabM {α} (mvarId : MVarId) (x : TacticM α) : TermElabM α :=
withMVarContext mvarId do
let savedSyntheticMVars := (← get).syntheticMVars
modify fun s => { s with syntheticMVars := [] }
try
let a ← x.run' { main := mvarId } { goals := [mvarId] }
synthesizeSyntheticMVars (mayPostpone := false)
pure a
finally
modify fun s => { s with syntheticMVars := savedSyntheticMVars }
partial def runTactic (mvarId : MVarId) (tacticCode : Syntax) : TermElabM Unit := do
/- Recall, `tacticCode` is the whole `by ...` expression. -/
let byTk := tacticCode[0]
let code := tacticCode[1]
modifyThe Meta.State fun s => { s with mctx := s.mctx.instantiateMVarDeclMVars mvarId }
let remainingGoals ← withInfoHole mvarId <|
liftTacticElabM mvarId do
withTacticInfoContext tacticCode (evalTactic code)
getUnsolvedGoals
let remainingGoals ← withInfoHole mvarId <| Tactic.run mvarId do
withTacticInfoContext tacticCode (evalTactic code)
synthesizeSyntheticMVars (mayPostpone := false)
unless remainingGoals.isEmpty do reportUnsolvedGoals remainingGoals
/-- Try to synthesize the given pending synthetic metavariable. -/

View file

@ -41,6 +41,47 @@ structure SavedState where
abbrev TacticM := ReaderT Context $ StateRefT State TermElabM
abbrev Tactic := Syntax → TacticM Unit
def getGoals : TacticM (List MVarId) :=
return (← get).goals
def setGoals (mvarIds : List MVarId) : TacticM Unit :=
modify fun s => { s with goals := mvarIds }
def pruneSolvedGoals : TacticM Unit := do
let gs ← getGoals
let gs ← gs.filterM fun g => not <$> isExprMVarAssigned g
setGoals gs
def getUnsolvedGoals : TacticM (List MVarId) := do
pruneSolvedGoals
getGoals
@[inline] private def TacticM.runCore (x : TacticM α) (ctx : Context) (s : State) : TermElabM (α × State) :=
x ctx |>.run s
@[inline] private def TacticM.runCore' (x : TacticM α) (ctx : Context) (s : State) : TermElabM α :=
Prod.fst <$> x.runCore ctx s
def run (mvarId : MVarId) (x : TacticM Unit) : TermElabM (List MVarId) :=
withMVarContext mvarId do
let savedSyntheticMVars := (← get).syntheticMVars
modify fun s => { s with syntheticMVars := [] }
let aux : TacticM (List MVarId) :=
/- Important: the following `try` does not backtrack the state.
This is intentional because we don't want to backtrack the error messages when we catch the "abort internal exception"
We must define `run` here because we define `MonadExcept` instance for `TacticM` -/
try
x; getUnsolvedGoals
catch ex =>
if isAbortTacticException ex then
getUnsolvedGoals
else
throw ex
try
aux.runCore' { main := mvarId } { goals := [mvarId] }
finally
modify fun s => { s with syntheticMVars := savedSyntheticMVars }
protected def saveState : TacticM SavedState :=
return { term := (← Term.saveState), tactic := (← get) }
@ -48,24 +89,6 @@ def SavedState.restore (b : SavedState) : TacticM Unit := do
b.term.restore
set b.tactic
instance : MonadBacktrack SavedState TacticM where
saveState := Tactic.saveState
restoreState b := b.restore
@[inline] protected def tryCatch {α} (x : TacticM α) (h : Exception → TacticM α) : TacticM α := do
let b ← saveState
try x catch ex => b.restore; h ex
instance : MonadExcept Exception TacticM where
throw := throw
tryCatch := Tactic.tryCatch
@[inline] protected def orElse {α} (x y : TacticM α) : TacticM α := do
try x catch _ => y
instance {α} : OrElse (TacticM α) where
orElse := Tactic.orElse
protected def getCurrMacroScope : TacticM MacroScope := do pure (← readThe Term.Context).currMacroScope
protected def getMainModule : TacticM Name := do pure (← getEnv).mainModule
@ -74,6 +97,13 @@ unsafe def mkTacticAttribute : IO (KeyedDeclsAttribute Tactic) :=
@[builtinInit mkTacticAttribute] constant tacticElabAttribute : KeyedDeclsAttribute Tactic
/-
Important: we must define `evalTacticUsing` and `expandTacticMacroFns` before we define
the instance `MonadExcept` for `TacticM` since it backtracks the state including error messages,
and this is bad when rethrowing the exception at the `catch` block in these methods.
We marked these places with a `(*)` in these methods.
-/
private def evalTacticUsing (s : SavedState) (stx : Syntax) (tactics : List Tactic) : TacticM Unit := do
let rec loop : List Tactic → TacticM Unit
| [] => throwErrorAt stx "unexpected syntax {indentD stx}"
@ -83,7 +113,7 @@ private def evalTacticUsing (s : SavedState) (stx : Syntax) (tactics : List Tact
catch
| ex@(Exception.error _ _) =>
match evalFns with
| [] => throw ex
| [] => throw ex -- (*)
| evalFns => s.restore; loop evalFns
| ex@(Exception.internal id _) =>
if id == unsupportedSyntaxExceptionId then
@ -92,9 +122,6 @@ private def evalTacticUsing (s : SavedState) (stx : Syntax) (tactics : List Tact
throw ex
loop tactics
def getGoals : TacticM (List MVarId) :=
return (← get).goals
def mkTacticInfo (mctxBefore : MetavarContext) (goalsBefore : List MVarId) (stx : Syntax) : TacticM Info :=
return Info.ofTacticInfo {
mctxBefore := mctxBefore
@ -120,7 +147,7 @@ mutual
let stx' ← adaptMacro m stx
evalTactic stx'
catch ex =>
if ms.isEmpty then throw ex
if ms.isEmpty then throw ex -- (*)
loop ms
loop macros
@ -138,7 +165,7 @@ mutual
stx.getArgs.forM evalTactic
else do
trace[Elab.step] "{stx}"
let s ← saveState
let s ← Tactic.saveState
let table := (tacticElabAttribute.ext.getState (← getEnv)).table
let k := stx.getKind
match table.find? k with
@ -151,6 +178,24 @@ mutual
end
instance : MonadBacktrack SavedState TacticM where
saveState := Tactic.saveState
restoreState b := b.restore
@[inline] protected def tryCatch {α} (x : TacticM α) (h : Exception → TacticM α) : TacticM α := do
let b ← saveState
try x catch ex => b.restore; h ex
instance : MonadExcept Exception TacticM where
throw := throw
tryCatch := Tactic.tryCatch
@[inline] protected def orElse {α} (x y : TacticM α) : TacticM α := do
try x catch _ => y
instance {α} : OrElse (TacticM α) where
orElse := Tactic.orElse
/-
Save the current tactic state for a token `stx`.
This method is a no-op if `stx` has no position information.
@ -171,9 +216,6 @@ def adaptExpander (exp : Syntax → TacticM Syntax) : Tactic := fun stx => do
let stx' ← exp stx
withMacroExpansion stx stx' $ evalTactic stx'
def setGoals (mvarIds : List MVarId) : TacticM Unit :=
modify fun s => { s with goals := mvarIds }
def appendGoals (mvarIds : List MVarId) : TacticM Unit :=
modify fun s => { s with goals := s.goals ++ mvarIds }
@ -184,15 +226,6 @@ def replaceMainGoal (mvarIds : List MVarId) : TacticM Unit := do
let (mvarId :: mvarIds') ← getGoals | throwNoGoalsToBeSolved
modify fun s => { s with goals := mvarIds ++ mvarIds' }
def pruneSolvedGoals : TacticM Unit := do
let gs ← getGoals
let gs ← gs.filterM fun g => not <$> isExprMVarAssigned g
setGoals gs
def getUnsolvedGoals : TacticM (List MVarId) := do
pruneSolvedGoals
getGoals
/-- Return the first goal. -/
def getMainGoal : TacticM MVarId := do
loop (← getGoals)
@ -601,10 +634,4 @@ where
builtin_initialize registerTraceClass `Elab.tactic
@[inline] def TacticM.run (x : TacticM α) (ctx : Context) (s : State) : TermElabM (α × State) :=
x ctx |>.run s
@[inline] def TacticM.run' (x : TacticM α) (ctx : Context) (s : State) : TermElabM α :=
Prod.fst <$> x.run ctx s
end Lean.Elab.Tactic

View file

@ -33,14 +33,21 @@ def elabTermEnsuringType (stx : Syntax) (expectedType? : Option Expr) (mayPostpo
return e
/- Try to close main goal using `x target`, where `target` is the type of the main goal. -/
def closeMainGoalUsing (x : Expr → TacticM Expr) : TacticM Unit :=
def closeMainGoalUsing (x : Expr → TacticM Expr) (checkUnassigned := true) : TacticM Unit :=
withMainContext do
closeMainGoal (← x (← getMainTarget))
closeMainGoal (checkUnassigned := checkUnassigned) (← x (← getMainTarget))
private def logUnassignedAndAbort (mvarIds : Array MVarId) : TacticM Unit := do
if (← Term.logUnassignedUsingErrorInfos mvarIds) then
throwAbortTactic
@[builtinTactic «exact»] def evalExact : Tactic := fun stx =>
match stx with
| `(tactic| exact $e) => closeMainGoalUsing (fun type => elabTermEnsuringType e type)
| _ => throwUnsupportedSyntax
| `(tactic| exact $e) => closeMainGoalUsing (checkUnassigned := false) fun type => do
let r ← elabTermEnsuringType e type
logUnassignedAndAbort (← getMVars r)
return r
| _ => throwUnsupportedSyntax
def elabTermWithHoles (stx : Syntax) (expectedType? : Option Expr) (tagSuffix : Name) (allowNaturalHoles := false) : TacticM (Expr × List MVarId) := do
let val ← elabTermEnsuringType stx expectedType?
@ -53,7 +60,7 @@ def elabTermWithHoles (stx : Syntax) (expectedType? : Option Expr) (tagSuffix :
else
let naturalMVarIds ← newMVarIds.filterM fun mvarId => return (← getMVarDecl mvarId).kind.isNatural
let syntheticMVarIds ← newMVarIds.filterM fun mvarId => return !(← getMVarDecl mvarId).kind.isNatural
discard <| Term.logUnassignedUsingErrorInfos naturalMVarIds
logUnassignedAndAbort naturalMVarIds
pure syntheticMVarIds.toList
tagUntaggedGoals (← getMainTag) tagSuffix newMVarIds
pure (val, newMVarIds)

File diff suppressed because it is too large Load diff

View file

@ -39,7 +39,6 @@ lean_object* l_Array_back_x3f(lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
lean_object* l_Array_forM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_div(lean_object*, lean_object*);
extern lean_object* l_addParenHeuristic___closed__2;
lean_object* l_Array_reverse_rev___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_mkArray___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Array_split___rarg___boxed(lean_object*, lean_object*);
@ -619,6 +618,7 @@ lean_object* l_Array_zipWithAux___at_Array_zip___spec__1(lean_object*, lean_obje
lean_object* l_Array_foldlMUnsafe_fold___at_Array_forM___spec__1___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
lean_object* l_Array_foldlMUnsafe_fold___at_Array_split___spec__1(lean_object*);
lean_object* l_Array_mapIdxM_map___at_Array_mapIdx___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_addParenHeuristic___closed__1;
lean_object* l_Array_findSomeM_x3f(lean_object*, lean_object*, lean_object*);
lean_object* l_Array_findIdxM_x3f___rarg___closed__1;
lean_object* l_Array_isEqvAux_match__1___rarg(uint8_t, lean_object*, lean_object*);
@ -6953,7 +6953,7 @@ static lean_object* _init_l_Array_instReprArray___rarg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_addParenHeuristic___closed__2;
x_1 = l_addParenHeuristic___closed__1;
x_2 = lean_string_length(x_1);
return x_2;
}
@ -6971,7 +6971,7 @@ static lean_object* _init_l_Array_instReprArray___rarg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_addParenHeuristic___closed__2;
x_1 = l_addParenHeuristic___closed__1;
x_2 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
@ -7699,7 +7699,7 @@ static lean_object* _init_l_term_x23_x5b___x2c_x5d___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_addParenHeuristic___closed__2;
x_1 = l_addParenHeuristic___closed__1;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;

View file

@ -24,7 +24,6 @@ lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__7;
lean_object* l_Std_Range_term_x5b_x3a___x3a___x5d___closed__4;
lean_object* l_Std_Range_term_x5b_x3a___x5d___closed__11;
lean_object* l_Std_Range_term_x5b_x3a___x5d___closed__9;
lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_911____closed__3;
lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__16;
extern lean_object* l_Array_empty___closed__1;
@ -78,6 +77,7 @@ lean_object* l_Std_Range_forIn_loop___rarg___lambda__1(lean_object*, lean_object
lean_object* l_Std_Range_instForMRangeNat___closed__1;
lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__9;
lean_object* l_Std_Range_term_x5b_x3a___x5d___closed__5;
extern lean_object* l_term_x7b_x7d___closed__3;
lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__21;
lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__8;
lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__13;
@ -89,6 +89,7 @@ extern lean_object* l_Lean_Parser_Syntax_addPrec___closed__10;
lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_911____closed__2;
extern lean_object* l_termDepIfThenElse___closed__14;
lean_object* l_Std_Range_start___default;
extern lean_object* l_term_x7b_x7d___closed__5;
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_nullKind___closed__2;
lean_object* l_Std_Range_term_x5b_x3a___x5d___closed__6;
@ -136,7 +137,6 @@ lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__7;
lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__5;
lean_object* l_Std_Range_term_x5b___x3a___x5d___closed__3;
lean_object* l_Std_Range_forIn_loop___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_addParenHeuristic___closed__1;
lean_object* l_Std_Range_term_x5b_x3a___x5d___closed__10;
lean_object* l_Std_Range_forIn_loop_match__1___rarg(lean_object*, lean_object*, lean_object*);
static lean_object* _init_l_Std_Range_start___default() {
@ -1147,14 +1147,6 @@ lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("}");
return x_1;
}
}
lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369_(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
@ -1190,7 +1182,7 @@ lean_inc(x_13);
x_14 = lean_ctor_get(x_2, 1);
lean_inc(x_14);
lean_dec(x_2);
x_15 = l_addParenHeuristic___closed__1;
x_15 = l_term_x7b_x7d___closed__3;
lean_inc(x_12);
x_16 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_16, 0, x_12);
@ -1264,7 +1256,7 @@ x_56 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_56, 0, x_42);
lean_ctor_set(x_56, 1, x_55);
x_57 = lean_array_push(x_46, x_56);
x_58 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_58 = l_term_x7b_x7d___closed__5;
x_59 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_59, 0, x_12);
lean_ctor_set(x_59, 1, x_58);
@ -1289,7 +1281,7 @@ lean_inc(x_65);
x_66 = lean_ctor_get(x_2, 1);
lean_inc(x_66);
lean_dec(x_2);
x_67 = l_addParenHeuristic___closed__1;
x_67 = l_term_x7b_x7d___closed__3;
lean_inc(x_63);
x_68 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_68, 0, x_63);
@ -1363,7 +1355,7 @@ x_108 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_108, 0, x_94);
lean_ctor_set(x_108, 1, x_107);
x_109 = lean_array_push(x_98, x_108);
x_110 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_110 = l_term_x7b_x7d___closed__5;
x_111 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_111, 0, x_63);
lean_ctor_set(x_111, 1, x_110);
@ -1516,7 +1508,7 @@ lean_inc(x_15);
x_16 = lean_ctor_get(x_2, 1);
lean_inc(x_16);
lean_dec(x_2);
x_17 = l_addParenHeuristic___closed__1;
x_17 = l_term_x7b_x7d___closed__3;
lean_inc(x_14);
x_18 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_18, 0, x_14);
@ -1629,7 +1621,7 @@ x_78 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_78, 0, x_43);
lean_ctor_set(x_78, 1, x_77);
x_79 = lean_array_push(x_68, x_78);
x_80 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_80 = l_term_x7b_x7d___closed__5;
x_81 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_81, 0, x_14);
lean_ctor_set(x_81, 1, x_80);
@ -1654,7 +1646,7 @@ lean_inc(x_87);
x_88 = lean_ctor_get(x_2, 1);
lean_inc(x_88);
lean_dec(x_2);
x_89 = l_addParenHeuristic___closed__1;
x_89 = l_term_x7b_x7d___closed__3;
lean_inc(x_85);
x_90 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_90, 0, x_85);
@ -1767,7 +1759,7 @@ x_150 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_150, 0, x_115);
lean_ctor_set(x_150, 1, x_149);
x_151 = lean_array_push(x_140, x_150);
x_152 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_152 = l_term_x7b_x7d___closed__5;
x_153 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_153, 0, x_85);
lean_ctor_set(x_153, 1, x_152);
@ -1898,7 +1890,7 @@ lean_inc(x_17);
x_18 = lean_ctor_get(x_2, 1);
lean_inc(x_18);
lean_dec(x_2);
x_19 = l_addParenHeuristic___closed__1;
x_19 = l_term_x7b_x7d___closed__3;
lean_inc(x_16);
x_20 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_20, 0, x_16);
@ -2042,7 +2034,7 @@ x_96 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_96, 0, x_45);
lean_ctor_set(x_96, 1, x_95);
x_97 = lean_array_push(x_86, x_96);
x_98 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_98 = l_term_x7b_x7d___closed__5;
x_99 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_99, 0, x_16);
lean_ctor_set(x_99, 1, x_98);
@ -2067,7 +2059,7 @@ lean_inc(x_105);
x_106 = lean_ctor_get(x_2, 1);
lean_inc(x_106);
lean_dec(x_2);
x_107 = l_addParenHeuristic___closed__1;
x_107 = l_term_x7b_x7d___closed__3;
lean_inc(x_103);
x_108 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_108, 0, x_103);
@ -2211,7 +2203,7 @@ x_184 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_184, 0, x_133);
lean_ctor_set(x_184, 1, x_183);
x_185 = lean_array_push(x_174, x_184);
x_186 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_186 = l_term_x7b_x7d___closed__5;
x_187 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_187, 0, x_103);
lean_ctor_set(x_187, 1, x_186);
@ -2265,7 +2257,7 @@ lean_inc(x_15);
x_16 = lean_ctor_get(x_2, 1);
lean_inc(x_16);
lean_dec(x_2);
x_17 = l_addParenHeuristic___closed__1;
x_17 = l_term_x7b_x7d___closed__3;
lean_inc(x_14);
x_18 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_18, 0, x_14);
@ -2378,7 +2370,7 @@ x_78 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_78, 0, x_43);
lean_ctor_set(x_78, 1, x_77);
x_79 = lean_array_push(x_68, x_78);
x_80 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_80 = l_term_x7b_x7d___closed__5;
x_81 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_81, 0, x_14);
lean_ctor_set(x_81, 1, x_80);
@ -2403,7 +2395,7 @@ lean_inc(x_87);
x_88 = lean_ctor_get(x_2, 1);
lean_inc(x_88);
lean_dec(x_2);
x_89 = l_addParenHeuristic___closed__1;
x_89 = l_term_x7b_x7d___closed__3;
lean_inc(x_85);
x_90 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_90, 0, x_85);
@ -2516,7 +2508,7 @@ x_150 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_150, 0, x_115);
lean_ctor_set(x_150, 1, x_149);
x_151 = lean_array_push(x_140, x_150);
x_152 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_152 = l_term_x7b_x7d___closed__5;
x_153 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_153, 0, x_85);
lean_ctor_set(x_153, 1, x_152);
@ -2658,8 +2650,6 @@ l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__20 = _init_l_Std
lean_mark_persistent(l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__20);
l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__21 = _init_l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__21();
lean_mark_persistent(l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__21);
l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22 = _init_l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22();
lean_mark_persistent(l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22);
l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__1 = _init_l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__1();
lean_mark_persistent(l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__1);
l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__2 = _init_l_Std_Range_myMacro____x40_Init_Data_Range___hyg_598____closed__2();

View file

@ -98,6 +98,7 @@ lean_object* l_List_toStringAux(lean_object*);
lean_object* l_instToStringUSize(size_t);
lean_object* l_instToStringIterator___boxed(lean_object*);
lean_object* l_instToStringSigma(lean_object*, lean_object*);
extern lean_object* l_term_x7b_x7d___closed__3;
lean_object* l_String_toInt_x21_match__1(lean_object*);
lean_object* l_instToStringSum___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_instToStringSum___rarg___closed__1;
@ -158,7 +159,6 @@ extern lean_object* l_prec_x28___x29___closed__3;
lean_object* l_instToStringDecidable_match__1(lean_object*, lean_object*);
lean_object* l_OptionT_instAlternativeOptionT___rarg(lean_object*);
lean_object* l_instToStringULift___rarg(lean_object*, lean_object*);
lean_object* l_addParenHeuristic___closed__3;
lean_object* l_instToStringProd(lean_object*, lean_object*);
lean_object* l_String_toNat_x3f(lean_object*);
lean_object* l_OptionT_instMonadOptionT___rarg(lean_object*);
@ -927,19 +927,11 @@ static lean_object* _init_l_addParenHeuristic___closed__1() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("{");
return x_1;
}
}
static lean_object* _init_l_addParenHeuristic___closed__2() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("#[");
return x_1;
}
}
static lean_object* _init_l_addParenHeuristic___closed__3() {
static lean_object* _init_l_addParenHeuristic___closed__2() {
_start:
{
lean_object* x_1;
@ -961,18 +953,18 @@ x_5 = l_String_isPrefixOf(x_4, x_1);
if (x_5 == 0)
{
lean_object* x_6; uint8_t x_7;
x_6 = l_addParenHeuristic___closed__1;
x_6 = l_term_x7b_x7d___closed__3;
x_7 = l_String_isPrefixOf(x_6, x_1);
if (x_7 == 0)
{
lean_object* x_8; uint8_t x_9;
x_8 = l_addParenHeuristic___closed__2;
x_8 = l_addParenHeuristic___closed__1;
x_9 = l_String_isPrefixOf(x_8, x_1);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
x_10 = lean_string_utf8_byte_size(x_1);
x_11 = l_addParenHeuristic___closed__3;
x_11 = l_addParenHeuristic___closed__2;
x_12 = lean_unsigned_to_nat(0u);
x_13 = l_String_anyAux_loop(x_1, x_10, x_11, x_12);
lean_dec(x_10);
@ -1783,8 +1775,6 @@ l_addParenHeuristic___closed__1 = _init_l_addParenHeuristic___closed__1();
lean_mark_persistent(l_addParenHeuristic___closed__1);
l_addParenHeuristic___closed__2 = _init_l_addParenHeuristic___closed__2();
lean_mark_persistent(l_addParenHeuristic___closed__2);
l_addParenHeuristic___closed__3 = _init_l_addParenHeuristic___closed__3();
lean_mark_persistent(l_addParenHeuristic___closed__3);
l_instToStringOption___rarg___closed__1 = _init_l_instToStringOption___rarg___closed__1();
lean_mark_persistent(l_instToStringOption___rarg___closed__1);
l_instToStringSum___rarg___closed__1 = _init_l_instToStringSum___rarg___closed__1();

View file

@ -76,7 +76,6 @@ extern lean_object* l_Lean_Parser_Tactic_intro___closed__4;
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
lean_object* l_term_u03a3___x2c_____closed__5;
extern lean_object* l_Lean_identKind___closed__2;
lean_object* l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__3;
lean_object* l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_myMacro____x40_Init_Notation___hyg_16268____closed__8;
lean_object* l_term___xd7____1;
@ -259,6 +258,7 @@ lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__6;
lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__1;
lean_object* l_Array_forInUnsafe_loop___at___private_Init_NotationExtra_0__Lean_mkHintBody___spec__1___closed__3;
lean_object* l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__11;
extern lean_object* l_term_x7b_x7d___closed__3;
lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__22;
lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_unexpand____x40_Init_Notation___hyg_2258____spec__1(lean_object*);
lean_object* l_termExists___x2c_____closed__3;
@ -287,6 +287,7 @@ lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_36____closed__4;
lean_object* l_term_u03a3___x2c_____closed__3;
lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27;
lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__34;
extern lean_object* l_term_x7b_x7d___closed__5;
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__13;
lean_object* l_myMacro____x40_Init_NotationExtra___hyg_7451____boxed(lean_object*, lean_object*, lean_object*);
@ -488,7 +489,6 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_15342____closed__11;
lean_object* l_Lean_command__Unif__hint______Where___x7c_x2d_u22a2_____closed__4;
lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__13;
lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*);
extern lean_object* l_addParenHeuristic___closed__1;
lean_object* l_Array_foldrMUnsafe_fold___at_myMacro____x40_Init_NotationExtra___hyg_5248____spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*);
lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__8;
extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__2;
@ -7865,14 +7865,6 @@ x_1 = lean_mk_string("implicitBinder");
return x_1;
}
}
static lean_object* _init_l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__3() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("}");
return x_1;
}
}
lean_object* l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
@ -7925,7 +7917,7 @@ lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean
x_28 = lean_ctor_get(x_26, 0);
x_29 = l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__2;
x_30 = lean_name_mk_string(x_7, x_29);
x_31 = l_addParenHeuristic___closed__1;
x_31 = l_term_x7b_x7d___closed__3;
lean_inc(x_28);
x_32 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_32, 0, x_28);
@ -7943,7 +7935,7 @@ x_38 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_38, 0, x_35);
lean_ctor_set(x_38, 1, x_8);
x_39 = lean_array_push(x_37, x_38);
x_40 = l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__3;
x_40 = l_term_x7b_x7d___closed__5;
x_41 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_41, 0, x_28);
lean_ctor_set(x_41, 1, x_40);
@ -7983,7 +7975,7 @@ lean_inc(x_56);
lean_dec(x_26);
x_58 = l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__2;
x_59 = lean_name_mk_string(x_7, x_58);
x_60 = l_addParenHeuristic___closed__1;
x_60 = l_term_x7b_x7d___closed__3;
lean_inc(x_56);
x_61 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_61, 0, x_56);
@ -8001,7 +7993,7 @@ x_67 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_67, 0, x_64);
lean_ctor_set(x_67, 1, x_8);
x_68 = lean_array_push(x_66, x_67);
x_69 = l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__3;
x_69 = l_term_x7b_x7d___closed__5;
x_70 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_70, 0, x_56);
lean_ctor_set(x_70, 1, x_69);
@ -11775,8 +11767,6 @@ l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____sp
lean_mark_persistent(l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__1);
l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__2();
lean_mark_persistent(l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__2);
l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__3 = _init_l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__3();
lean_mark_persistent(l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___lambda__2___closed__3);
l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___closed__1 = _init_l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___closed__1();
lean_mark_persistent(l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___closed__1);
l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___closed__2 = _init_l_Array_forInUnsafe_loop___at_myMacro____x40_Init_NotationExtra___hyg_5711____spec__3___closed__2();

View file

@ -103,7 +103,6 @@ lean_object* l_Lean_IR_EmitC_emitInc___closed__5;
lean_object* l_Lean_IR_EmitC_isTailCall_match__1(lean_object*);
lean_object* l_Lean_IR_EmitC_emitSProj___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__2___closed__20;
extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
lean_object* l_Lean_IR_EmitC_emitBlock_match__1(lean_object*);
lean_object* l_Lean_IR_EmitC_isIf_match__1___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Nat_forM_loop___at_Lean_IR_EmitC_emitDeclAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -340,6 +339,7 @@ lean_object* l_Lean_IR_EmitC_emitSSet_match__1___rarg(lean_object*, lean_object*
lean_object* l_Lean_IR_emitC_match__1(lean_object*);
lean_object* l_Lean_IR_EmitC_emitInitFn___boxed(lean_object*, lean_object*);
uint32_t l_Nat_digitChar(lean_object*);
extern lean_object* l_term_x7b_x7d___closed__3;
lean_object* l_Lean_IR_EmitC_emitDeclAux_match__1___rarg(lean_object*, lean_object*);
size_t lean_usize_modn(size_t, lean_object*);
lean_object* l_Lean_IR_EmitC_throwInvalidExportName(lean_object*);
@ -383,6 +383,7 @@ lean_object* l_Lean_IR_EmitC_emitFnBody(lean_object*, lean_object*, lean_object*
lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_List_foldr___at_Lean_IR_EmitC_hasMainFn___spec__1(uint8_t, lean_object*);
lean_object* l_Lean_IR_ensureHasDefault(lean_object*);
extern lean_object* l_term_x7b_x7d___closed__5;
lean_object* l_Nat_forM_loop___at_Lean_IR_EmitC_emitArgs___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_IR_EmitC_emitUProj___closed__1;
lean_object* l_Lean_IR_EmitC_emitUnbox___closed__3;
@ -616,7 +617,6 @@ lean_object* l_Lean_IR_EmitC_emitFileHeader___closed__10;
lean_object* l_Lean_IR_EmitC_getModName(lean_object*, lean_object*);
lean_object* l_Lean_IR_EmitC_emitSSet___closed__2;
lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__2___closed__28;
extern lean_object* l_addParenHeuristic___closed__1;
lean_object* l_Lean_IR_EmitC_quoteString(lean_object*);
lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__2___closed__14;
lean_object* l_Lean_IR_EmitC_emitDeclAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -3149,7 +3149,7 @@ lean_object* l_Lean_IR_EmitC_emitMainFn___lambda__1(lean_object* x_1, lean_objec
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26;
x_5 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_5 = l_term_x7b_x7d___closed__5;
x_6 = lean_string_append(x_4, x_5);
x_7 = l___private_Init_Data_Format_Basic_0__Std_Format_pushNewline___closed__1;
x_8 = lean_string_append(x_6, x_7);
@ -3332,7 +3332,7 @@ _start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_2 = l_term_x7b_x7d___closed__5;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
@ -4492,7 +4492,7 @@ static lean_object* _init_l_Lean_IR_EmitC_emitFileFooter___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_1 = l_term_x7b_x7d___closed__5;
x_2 = l_Lean_IR_EmitC_emitFileHeader___closed__3;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
@ -6997,7 +6997,7 @@ lean_dec(x_39);
x_40 = l_Lean_IR_EmitC_emitReset___closed__4;
x_41 = lean_string_append(x_38, x_40);
x_42 = lean_string_append(x_41, x_14);
x_43 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_43 = l_term_x7b_x7d___closed__5;
x_44 = lean_string_append(x_42, x_43);
x_45 = lean_string_append(x_44, x_14);
x_46 = lean_box(0);
@ -7014,7 +7014,7 @@ lean_dec(x_36);
x_48 = l_Lean_IR_EmitC_emitReset___closed__4;
x_49 = lean_string_append(x_47, x_48);
x_50 = lean_string_append(x_49, x_14);
x_51 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_51 = l_term_x7b_x7d___closed__5;
x_52 = lean_string_append(x_50, x_51);
x_53 = lean_string_append(x_52, x_14);
x_54 = lean_box(0);
@ -7049,7 +7049,7 @@ lean_object* l_Lean_IR_EmitC_emitReuse___lambda__1(lean_object* x_1, lean_object
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
x_6 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_6 = l_term_x7b_x7d___closed__5;
x_7 = lean_string_append(x_5, x_6);
x_8 = l___private_Init_Data_Format_Basic_0__Std_Format_pushNewline___closed__1;
x_9 = lean_string_append(x_7, x_8);
@ -10624,7 +10624,7 @@ return x_12;
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26;
x_13 = l_addParenHeuristic___closed__1;
x_13 = l_term_x7b_x7d___closed__3;
x_14 = lean_string_append(x_5, x_13);
x_15 = l___private_Init_Data_Format_Basic_0__Std_Format_pushNewline___closed__1;
x_16 = lean_string_append(x_14, x_15);
@ -10640,7 +10640,7 @@ lean_dec(x_17);
x_21 = lean_ctor_get(x_20, 1);
lean_inc(x_21);
lean_dec(x_20);
x_22 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_22 = l_term_x7b_x7d___closed__5;
x_23 = lean_string_append(x_21, x_22);
x_24 = lean_string_append(x_23, x_15);
x_25 = lean_box(0);
@ -11365,7 +11365,7 @@ lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_
x_9 = lean_ctor_get(x_7, 1);
x_10 = lean_ctor_get(x_7, 0);
lean_dec(x_10);
x_11 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_11 = l_term_x7b_x7d___closed__5;
x_12 = lean_string_append(x_9, x_11);
x_13 = l___private_Init_Data_Format_Basic_0__Std_Format_pushNewline___closed__1;
x_14 = lean_string_append(x_12, x_13);
@ -11380,7 +11380,7 @@ lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean
x_16 = lean_ctor_get(x_7, 1);
lean_inc(x_16);
lean_dec(x_7);
x_17 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_17 = l_term_x7b_x7d___closed__5;
x_18 = lean_string_append(x_16, x_17);
x_19 = l___private_Init_Data_Format_Basic_0__Std_Format_pushNewline___closed__1;
x_20 = lean_string_append(x_18, x_19);
@ -11444,7 +11444,7 @@ lean_object* l_Lean_IR_EmitC_emitFnBody(lean_object* x_1, lean_object* x_2, lean
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
x_4 = l_addParenHeuristic___closed__1;
x_4 = l_term_x7b_x7d___closed__3;
x_5 = lean_string_append(x_3, x_4);
x_6 = l___private_Init_Data_Format_Basic_0__Std_Format_pushNewline___closed__1;
x_7 = lean_string_append(x_5, x_6);
@ -12208,7 +12208,7 @@ lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24;
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_4);
x_21 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_21 = l_term_x7b_x7d___closed__5;
x_22 = lean_string_append(x_16, x_21);
x_23 = lean_string_append(x_22, x_15);
x_24 = lean_box(0);
@ -12226,7 +12226,7 @@ lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29;
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_4);
x_26 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_26 = l_term_x7b_x7d___closed__5;
x_27 = lean_string_append(x_16, x_26);
x_28 = lean_string_append(x_27, x_15);
x_29 = lean_box(0);
@ -12254,7 +12254,7 @@ lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean
x_35 = lean_ctor_get(x_33, 1);
x_36 = lean_ctor_get(x_33, 0);
lean_dec(x_36);
x_37 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_37 = l_term_x7b_x7d___closed__5;
x_38 = lean_string_append(x_35, x_37);
x_39 = lean_string_append(x_38, x_15);
lean_ctor_set(x_33, 1, x_39);
@ -12267,7 +12267,7 @@ lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean
x_40 = lean_ctor_get(x_33, 1);
lean_inc(x_40);
lean_dec(x_33);
x_41 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_41 = l_term_x7b_x7d___closed__5;
x_42 = lean_string_append(x_40, x_41);
x_43 = lean_string_append(x_42, x_15);
x_44 = lean_alloc_ctor(0, 2, 0);
@ -12321,7 +12321,7 @@ lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean
lean_dec(x_55);
lean_dec(x_54);
lean_dec(x_4);
x_58 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_58 = l_term_x7b_x7d___closed__5;
x_59 = lean_string_append(x_53, x_58);
x_60 = lean_string_append(x_59, x_52);
x_61 = lean_box(0);
@ -12340,7 +12340,7 @@ lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean
lean_dec(x_55);
lean_dec(x_54);
lean_dec(x_4);
x_64 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_64 = l_term_x7b_x7d___closed__5;
x_65 = lean_string_append(x_53, x_64);
x_66 = lean_string_append(x_65, x_52);
x_67 = lean_box(0);
@ -12371,7 +12371,7 @@ if (lean_is_exclusive(x_72)) {
lean_dec_ref(x_72);
x_74 = lean_box(0);
}
x_75 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_75 = l_term_x7b_x7d___closed__5;
x_76 = lean_string_append(x_73, x_75);
x_77 = lean_string_append(x_76, x_52);
if (lean_is_scalar(x_74)) {
@ -12761,7 +12761,7 @@ lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean
x_16 = lean_ctor_get(x_14, 1);
x_17 = lean_ctor_get(x_14, 0);
lean_dec(x_17);
x_18 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_18 = l_term_x7b_x7d___closed__5;
x_19 = lean_string_append(x_16, x_18);
x_20 = lean_string_append(x_19, x_9);
x_21 = lean_box(0);
@ -12775,7 +12775,7 @@ lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean
x_22 = lean_ctor_get(x_14, 1);
lean_inc(x_22);
lean_dec(x_14);
x_23 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_23 = l_term_x7b_x7d___closed__5;
x_24 = lean_string_append(x_22, x_23);
x_25 = lean_string_append(x_24, x_9);
x_26 = lean_box(0);
@ -12838,7 +12838,7 @@ if (lean_is_exclusive(x_36)) {
lean_dec_ref(x_36);
x_38 = lean_box(0);
}
x_39 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_39 = l_term_x7b_x7d___closed__5;
x_40 = lean_string_append(x_37, x_39);
x_41 = lean_string_append(x_40, x_9);
x_42 = lean_box(0);

View file

@ -50,7 +50,6 @@ lean_object* l_Lean_IR_formatAlt___closed__1;
lean_object* l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType___closed__8;
lean_object* l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatIRType___closed__17;
lean_object* l_Lean_IR_formatFnBodyHead___closed__24;
extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
extern lean_object* l_Std_Format_join___closed__1;
lean_object* l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatExpr___closed__22;
lean_object* l_Lean_IR_instToStringIRType___closed__1;
@ -131,6 +130,7 @@ lean_object* l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatExpr___closed_
lean_object* l_Lean_IR_instToStringDecl___closed__1;
lean_object* l_Lean_IR_formatArray___at___private_Lean_Compiler_IR_Format_0__Lean_IR_formatExpr___spec__1(lean_object*);
lean_object* l_Lean_IR_formatFnBody_loop___closed__2;
extern lean_object* l_term_x7b_x7d___closed__3;
lean_object* l_Lean_IR_formatArray___at___private_Lean_Compiler_IR_Format_0__Lean_IR_formatExpr___spec__1___boxed(lean_object*);
extern lean_object* l_Std_Format_paren___closed__4;
lean_object* l_Lean_IR_instToStringIRType;
@ -143,6 +143,7 @@ size_t lean_usize_of_nat(lean_object*);
extern lean_object* l_Std_Format_sbracket___closed__3;
lean_object* l_Lean_IR_instToFormatParam___closed__1;
lean_object* l_Lean_IR_formatFnBodyHead___closed__31;
extern lean_object* l_term_x7b_x7d___closed__5;
lean_object* l_Lean_IR_formatFnBody_loop___closed__4;
lean_object* lean_ir_decl_to_string(lean_object*);
lean_object* l_Lean_IR_formatFnBodyHead___closed__27;
@ -231,7 +232,6 @@ lean_object* l_Lean_IR_formatFnBody_loop___closed__3;
lean_object* l_Lean_IR_instToFormatExpr;
lean_object* l_Lean_IR_formatFnBody(lean_object*, lean_object*);
lean_object* l_Lean_IR_formatFnBodyHead___closed__35;
extern lean_object* l_addParenHeuristic___closed__1;
lean_object* l_Lean_IR_formatFnBodyHead___closed__21;
lean_object* l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatArg_match__1(lean_object*);
lean_object* l_Lean_IR_formatArray___rarg___boxed(lean_object*, lean_object*);
@ -2232,7 +2232,7 @@ static lean_object* _init_l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatI
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_addParenHeuristic___closed__1;
x_1 = l_term_x7b_x7d___closed__3;
x_2 = lean_string_length(x_1);
return x_2;
}
@ -2250,7 +2250,7 @@ static lean_object* _init_l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatI
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_addParenHeuristic___closed__1;
x_1 = l_term_x7b_x7d___closed__3;
x_2 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
@ -2260,7 +2260,7 @@ static lean_object* _init_l___private_Lean_Compiler_IR_Format_0__Lean_IR_formatI
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_1 = l_term_x7b_x7d___closed__5;
x_2 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;

View file

@ -27,7 +27,6 @@ lean_object* l___private_Lean_Data_Json_Printer_0__Lean_Json_escapeAux___closed_
lean_object* l_Lean_Json_render___lambda__1(lean_object*, lean_object*, lean_object*);
lean_object* l_Array_mapMUnsafe_map___at_Lean_Json_compress___spec__1___boxed(lean_object*, lean_object*, lean_object*);
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
lean_object* l_Lean_JsonNumber_toString(lean_object*);
extern lean_object* l_instReprProd___rarg___closed__2;
extern lean_object* l_Lean_instInhabitedParserDescr___closed__1;
@ -57,10 +56,12 @@ lean_object* lean_array_to_list(lean_object*, lean_object*);
lean_object* l_Lean_Json_renderString___boxed(lean_object*);
lean_object* l_Array_mapMUnsafe_map___at_Lean_Json_compress___spec__1(size_t, size_t, lean_object*);
uint32_t l_Nat_digitChar(lean_object*);
extern lean_object* l_term_x7b_x7d___closed__3;
lean_object* l_Std_Format_joinSep___rarg(lean_object*, lean_object*, lean_object*);
size_t lean_usize_of_nat(lean_object*);
extern lean_object* l_Lean_nullKind___closed__1;
extern lean_object* l_Std_Format_sbracket___closed__3;
extern lean_object* l_term_x7b_x7d___closed__5;
lean_object* l_Array_mapMUnsafe_map___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
extern lean_object* l_Char_quoteCore___closed__3;
lean_object* l_Lean_Json_render___closed__5;
@ -89,7 +90,6 @@ lean_object* l_Lean_Json_render___closed__7;
lean_object* lean_nat_to_int(lean_object*);
lean_object* l_Lean_Json_render_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_mk(lean_object*);
extern lean_object* l_addParenHeuristic___closed__1;
extern lean_object* l_term_x5b___x5d___closed__3;
static lean_object* _init_l___private_Lean_Data_Json_Printer_0__Lean_Json_escapeAux___closed__1() {
_start:
@ -486,7 +486,7 @@ static lean_object* _init_l_Lean_Json_render___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_addParenHeuristic___closed__1;
x_1 = l_term_x7b_x7d___closed__3;
x_2 = lean_string_length(x_1);
return x_2;
}
@ -504,7 +504,7 @@ static lean_object* _init_l_Lean_Json_render___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_addParenHeuristic___closed__1;
x_1 = l_term_x7b_x7d___closed__3;
x_2 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
@ -514,7 +514,7 @@ static lean_object* _init_l_Lean_Json_render___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_1 = l_term_x7b_x7d___closed__5;
x_2 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
@ -808,10 +808,10 @@ x_25 = lean_box(0);
x_26 = l_Std_RBNode_fold___at_Lean_Json_compress___spec__2(x_25, x_24);
x_27 = l_myMacro____x40_Init_Notation___hyg_1346____closed__7;
x_28 = l_String_intercalate(x_27, x_26);
x_29 = l_addParenHeuristic___closed__1;
x_29 = l_term_x7b_x7d___closed__3;
x_30 = lean_string_append(x_29, x_28);
lean_dec(x_28);
x_31 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_31 = l_term_x7b_x7d___closed__5;
x_32 = lean_string_append(x_30, x_31);
return x_32;
}

View file

@ -23677,17 +23677,17 @@ lean_dec(x_3);
if (x_2 == 0)
{
lean_object* x_7; lean_object* x_8;
lean_dec(x_5);
lean_dec(x_6);
x_7 = lean_box(0);
x_8 = lean_apply_1(x_6, x_7);
x_8 = lean_apply_1(x_5, x_7);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10;
lean_dec(x_6);
lean_dec(x_5);
x_9 = lean_box(0);
x_10 = lean_apply_1(x_5, x_9);
x_10 = lean_apply_1(x_6, x_9);
return x_10;
}
}
@ -24109,25 +24109,25 @@ if (x_3 == 0)
{
if (x_4 == 0)
{
lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179;
lean_dec(x_174);
x_175 = l_Lean_instInhabitedSyntax;
x_176 = l_Lean_Elab_Term_elabLetDeclCore___closed__2;
x_177 = lean_panic_fn(x_175, x_176);
lean_inc(x_177);
lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178;
x_175 = l_Lean_Parser_Term_let__fun___elambda__1___closed__2;
x_176 = l_Lean_Syntax_setKind(x_174, x_175);
lean_inc(x_176);
lean_inc(x_1);
x_178 = lean_alloc_closure((void*)(l_Lean_Elab_Term_adaptExpander___lambda__1), 10, 3);
lean_closure_set(x_178, 0, x_1);
lean_closure_set(x_178, 1, x_177);
lean_closure_set(x_178, 2, x_2);
x_179 = l_Lean_Elab_withMacroExpansionInfo___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(x_1, x_177, x_178, x_5, x_6, x_7, x_8, x_9, x_10, x_100);
return x_179;
x_177 = lean_alloc_closure((void*)(l_Lean_Elab_Term_adaptExpander___lambda__1), 10, 3);
lean_closure_set(x_177, 0, x_1);
lean_closure_set(x_177, 1, x_176);
lean_closure_set(x_177, 2, x_2);
x_178 = l_Lean_Elab_withMacroExpansionInfo___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2(x_1, x_176, x_177, x_5, x_6, x_7, x_8, x_9, x_10, x_100);
return x_178;
}
else
{
lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183;
x_180 = l_Lean_Parser_Term_let__fun___elambda__1___closed__2;
x_181 = l_Lean_Syntax_setKind(x_174, x_180);
lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183;
lean_dec(x_174);
x_179 = l_Lean_instInhabitedSyntax;
x_180 = l_Lean_Elab_Term_elabLetDeclCore___closed__2;
x_181 = lean_panic_fn(x_179, x_180);
lean_inc(x_181);
lean_inc(x_1);
x_182 = lean_alloc_closure((void*)(l_Lean_Elab_Term_adaptExpander___lambda__1), 10, 3);

File diff suppressed because it is too large Load diff

View file

@ -37,7 +37,6 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_2278____closed__2;
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__1___closed__23;
extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
extern lean_object* l_Lean_Parser_Term_tupleTail___elambda__1___closed__1;
lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__1___closed__21;
lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -114,6 +113,7 @@ lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*, lean
extern lean_object* l_Lean_Parser_Term_doLetArrow___elambda__1___closed__1;
lean_object* l_Lean_Syntax_mkStrLit(lean_object*, lean_object*);
uint8_t l_Lean_Elab_Deriving_FromToJson_mkJsonField___lambda__1(uint32_t);
extern lean_object* l_term_x7b_x7d___closed__3;
extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__22;
extern lean_object* l_myMacro____x40_Init_Notation___hyg_12692____closed__5;
lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1___closed__14;
@ -121,6 +121,7 @@ lean_object* l_Lean_Elab_Deriving_mkHeader___rarg(lean_object*, lean_object*, le
lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___lambda__1___closed__12;
size_t lean_usize_of_nat(lean_object*);
extern lean_object* l_term_x7b_x7d___closed__5;
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_Term_doReturn___elambda__1___closed__2;
lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Deriving_FromToJson_mkToJsonInstanceHandler___spec__1___closed__4;
@ -189,7 +190,6 @@ extern lean_object* l_Lean_Parser_Term_notFollowedByRedefinedTermToken___elambda
lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__1___closed__17;
extern lean_object* l_Lean_Parser_myMacro____x40_Lean_Parser_Extra___hyg_276____closed__1;
lean_object* l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_addParenHeuristic___closed__1;
lean_object* l_String_dropRightWhile(lean_object*, lean_object*);
lean_object* l_Lean_Elab_Deriving_mkInductiveApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(lean_object*, lean_object*, lean_object*);
@ -2881,7 +2881,7 @@ x_151 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_151, 0, x_38);
lean_ctor_set(x_151, 1, x_150);
x_152 = lean_array_push(x_48, x_151);
x_153 = l_addParenHeuristic___closed__1;
x_153 = l_term_x7b_x7d___closed__3;
lean_inc(x_38);
x_154 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_154, 0, x_38);
@ -2905,7 +2905,7 @@ x_165 = lean_array_push(x_156, x_164);
x_166 = l_Lean_Elab_Deriving_FromToJson_mkFromJsonInstanceHandler___lambda__1___closed__25;
x_167 = lean_array_push(x_165, x_166);
x_168 = lean_array_push(x_167, x_57);
x_169 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_169 = l_term_x7b_x7d___closed__5;
x_170 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_170, 0, x_38);
lean_ctor_set(x_170, 1, x_169);

View file

@ -40,7 +40,6 @@ extern lean_object* l_Lean_getConstInfoInduct___rarg___lambda__1___closed__2;
lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_quoteAutoTactic___spec__1___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
lean_object* l_Lean_getConstInfoInduct___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_ForEachExpr_visit___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l___private_Lean_Elab_Binders_0__Lean_Elab_Term_expandOptIdent___closed__2;
@ -50,9 +49,9 @@ lean_object* lean_environment_find(lean_object*, lean_object*);
lean_object* lean_st_ref_get(lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f_match__2(lean_object*);
extern lean_object* l_Lean_Parser_Term_funImplicitBinder___elambda__1___closed__5;
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022____closed__1;
lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_throwError___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020____closed__1;
lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmd_x3f___spec__1___closed__7;
lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
@ -131,6 +130,7 @@ lean_object* l_Lean_getConstInfoCtor___at___private_Lean_Elab_Deriving_Inhabited
lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_instInhabitedExpr;
lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_mkInhabitedInstanceHandler___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*);
extern lean_object* l_term_x7b_x7d___closed__3;
lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith_match__1___rarg(lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__3;
extern lean_object* l_Lean_KernelException_toMessageData___closed__15;
@ -147,6 +147,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_mkInhabitedInstanceHandler
extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27;
lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParams(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_term_x7b_x7d___closed__5;
lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_match__1___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__23;
@ -233,10 +234,9 @@ extern lean_object* l_Lean_Meta_mkArbitrary___closed__1;
lean_object* l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance_match__1___rarg(lean_object*, lean_object*, lean_object*);
extern lean_object* l_Array_findSomeM_x3f___rarg___closed__1;
lean_object* l_Lean_getConstInfoCtor___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_mkInstanceCmdWith___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_addParenHeuristic___closed__1;
extern lean_object* l_term_x5b___x5d___closed__3;
lean_object* l_runST___rarg(lean_object*);
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020_(lean_object*);
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022_(lean_object*);
lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
lean_object* l_Std_RBNode_ins___at___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_collectUsedLocalsInsts___spec__2(lean_object*, lean_object*, lean_object*);
@ -4780,7 +4780,7 @@ x_40 = l_Lean_Elab_Term_getMainModule___rarg(x_12, x_39);
x_41 = lean_ctor_get(x_40, 1);
lean_inc(x_41);
lean_dec(x_40);
x_42 = l_addParenHeuristic___closed__1;
x_42 = l_term_x7b_x7d___closed__3;
lean_inc(x_36);
x_43 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_43, 0, x_36);
@ -4801,7 +4801,7 @@ lean_ctor_set(x_49, 0, x_46);
lean_ctor_set(x_49, 1, x_2);
lean_inc(x_49);
x_50 = lean_array_push(x_48, x_49);
x_51 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_51 = l_term_x7b_x7d___closed__5;
x_52 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_52, 0, x_36);
lean_ctor_set(x_52, 1, x_51);
@ -8807,7 +8807,7 @@ lean_dec(x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020____closed__1() {
static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022____closed__1() {
_start:
{
lean_object* x_1;
@ -8815,12 +8815,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Elab_mkInhabitedInstanceHandler___boxed)
return x_1;
}
}
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020_(lean_object* x_1) {
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_2 = l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstanceUsing_addLocalInstancesForParamsAux___rarg___closed__2;
x_3 = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020____closed__1;
x_3 = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022____closed__1;
x_4 = l_Lean_Elab_registerBuiltinDerivingHandler(x_2, x_3, x_1);
if (lean_obj_tag(x_4) == 0)
{
@ -8929,9 +8929,9 @@ l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___clos
lean_mark_persistent(l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__2);
l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__3 = _init_l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__3();
lean_mark_persistent(l___private_Lean_Elab_Deriving_Inhabited_0__Lean_Elab_mkInhabitedInstance___closed__3);
l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020____closed__1();
lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020____closed__1);
res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2020_(lean_io_mk_world());
l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022____closed__1();
lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022____closed__1);
res = l_Lean_Elab_initFn____x40_Lean_Elab_Deriving_Inhabited___hyg_2022_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
return lean_io_result_mk_ok(lean_box(0));

View file

@ -42,7 +42,6 @@ lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_o
lean_object* l_Lean_Elab_Deriving_mkContext___closed__1;
lean_object* l_Lean_Elab_Deriving_mkInductiveApp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
lean_object* l_Lean_Elab_Deriving_mkInductArgNames___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__2;
size_t l_USize_sub(size_t, size_t);
@ -119,6 +118,7 @@ extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__12;
lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstanceCmds___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1354____closed__6;
extern lean_object* l_Lean_instInhabitedExpr;
extern lean_object* l_term_x7b_x7d___closed__3;
extern lean_object* l_Lean_KernelException_toMessageData___closed__15;
lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkInstanceCmds___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Term_explicitBinder(uint8_t);
@ -130,6 +130,7 @@ lean_object* l_Lean_Elab_Deriving_mkInductArgNames___closed__1;
size_t lean_usize_of_nat(lean_object*);
extern lean_object* l_myMacro____x40_Init_NotationExtra___hyg_5711____closed__27;
lean_object* l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_term_x7b_x7d___closed__5;
lean_object* l_Lean_Elab_Deriving_mkImplicitBinders___boxed__const__1;
extern lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__5;
extern lean_object* l_Lean_nullKind___closed__2;
@ -182,7 +183,6 @@ extern lean_object* l_instReprSigma___rarg___closed__6;
lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Deriving_mkHeader___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkConst(lean_object*, lean_object*);
extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__6;
extern lean_object* l_addParenHeuristic___closed__1;
extern lean_object* l_myMacro____x40_Init_Notation___hyg_16821____closed__2;
lean_object* l_Lean_Elab_Deriving_mkInductiveApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Deriving_mkInductiveApp___spec__2___rarg(lean_object*, lean_object*, lean_object*);
@ -703,7 +703,7 @@ x_23 = l_Lean_Elab_Term_getMainModule___rarg(x_9, x_22);
x_24 = lean_ctor_get(x_23, 1);
lean_inc(x_24);
lean_dec(x_23);
x_25 = l_addParenHeuristic___closed__1;
x_25 = l_term_x7b_x7d___closed__3;
lean_inc(x_19);
x_26 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_26, 0, x_19);
@ -719,7 +719,7 @@ lean_ctor_set(x_32, 1, x_30);
x_33 = lean_array_push(x_28, x_32);
x_34 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8;
x_35 = lean_array_push(x_33, x_34);
x_36 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_36 = l_term_x7b_x7d___closed__5;
x_37 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_37, 0, x_19);
lean_ctor_set(x_37, 1, x_36);

View file

@ -17,8 +17,10 @@ lean_object* l_Lean_stringToMessageData(lean_object*);
lean_object* l_Lean_Elab_throwPostpone___rarg(lean_object*);
lean_object* lean_name_mk_string(lean_object*, lean_object*);
uint8_t l_Lean_Elab_isAbortExceptionId(lean_object*);
lean_object* l_Lean_Elab_throwAbortTactic(lean_object*, lean_object*);
lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg___closed__1;
lean_object* l_Lean_Elab_isAutoBoundImplicitLocalException_x3f___boxed(lean_object*);
lean_object* l_Lean_Elab_throwAbortTactic___rarg(lean_object*);
extern lean_object* l_Lean_instInhabitedParserDescr___closed__1;
lean_object* l_Lean_Elab_autoBoundImplicitExceptionId;
lean_object* l_Lean_Elab_throwUnsupportedSyntax___rarg(lean_object*);
@ -31,6 +33,7 @@ lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_42_(lean_object
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_3_(lean_object*);
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_16_(lean_object*);
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_55_(lean_object*);
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68_(lean_object*);
lean_object* l_Lean_Elab_throwPostpone(lean_object*, lean_object*);
lean_object* l_Lean_Elab_throwAbortCommand___rarg___closed__1;
lean_object* l_Lean_Elab_isAutoBoundImplicitLocalException_x3f_match__1(lean_object*);
@ -42,9 +45,11 @@ lean_object* l_Lean_Elab_throwAbortTerm___rarg(lean_object*);
lean_object* l_Lean_Elab_mkMessageCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*);
lean_object* l_Lean_Elab_throwAbortCommand(lean_object*, lean_object*);
extern lean_object* l_Lean_Meta_mkArrow___closed__2;
lean_object* l_Lean_Elab_abortTacticExceptionId;
lean_object* l_Lean_KVMap_getName(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_throwIllFormedSyntax___rarg___closed__1;
lean_object* l_Lean_Elab_abortTermExceptionId;
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__1;
lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*);
lean_object* l_Lean_Elab_throwAbortCommand___rarg(lean_object*);
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_29____closed__2;
@ -65,6 +70,7 @@ lean_object* l_Lean_Elab_throwPostpone___rarg___closed__1;
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_3____closed__2;
lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___closed__1;
extern lean_object* l_Lean_KVMap_empty;
lean_object* l_Lean_Elab_throwAbortTactic___rarg___closed__1;
lean_object* l_Lean_Elab_throwUnsupportedSyntax(lean_object*, lean_object*);
lean_object* l_Lean_KVMap_insertCore(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_throwIllFormedSyntax(lean_object*, lean_object*);
@ -74,10 +80,13 @@ lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_3____closed__1;
lean_object* l_Lean_Elab_unsupportedSyntaxExceptionId;
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_16____closed__1;
lean_object* l_Lean_Elab_throwAutoBoundImplicitLocal___rarg___closed__2;
uint8_t l_Lean_Elab_isAbortTacticException(lean_object*);
lean_object* l_Lean_Elab_isAbortTacticException___boxed(lean_object*);
lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_throwAbortTerm(lean_object*, lean_object*);
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_42____closed__1;
lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel(lean_object*, lean_object*);
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__2;
static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_3____closed__1() {
_start:
{
@ -190,7 +199,7 @@ static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_55
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("autoBoundImplicit");
x_1 = lean_mk_string("abortTactic");
return x_1;
}
}
@ -213,6 +222,33 @@ x_3 = l_Lean_registerInternalExceptionId(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__1() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string("autoBoundImplicit");
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3;
x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__2;
x_3 = l_Lean_registerInternalExceptionId(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_throwPostpone___rarg___closed__1() {
_start:
{
@ -549,6 +585,67 @@ x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwAbortTerm___rarg), 1, 0);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_throwAbortTactic___rarg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Elab_abortTacticExceptionId;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
lean_object* l_Lean_Elab_throwAbortTactic___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
lean_dec(x_1);
x_3 = l_Lean_Elab_throwAbortTactic___rarg___closed__1;
x_4 = lean_apply_2(x_2, lean_box(0), x_3);
return x_4;
}
}
lean_object* l_Lean_Elab_throwAbortTactic(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3;
x_3 = lean_alloc_closure((void*)(l_Lean_Elab_throwAbortTactic___rarg), 1, 0);
return x_3;
}
}
uint8_t l_Lean_Elab_isAbortTacticException(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
uint8_t x_2;
x_2 = 0;
return x_2;
}
else
{
lean_object* x_3; lean_object* x_4; uint8_t x_5;
x_3 = lean_ctor_get(x_1, 0);
x_4 = l_Lean_Elab_abortTacticExceptionId;
x_5 = lean_nat_dec_eq(x_3, x_4);
return x_5;
}
}
}
lean_object* l_Lean_Elab_isAbortTacticException___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3;
x_2 = l_Lean_Elab_isAbortTacticException(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
uint8_t l_Lean_Elab_isAbortExceptionId(lean_object* x_1) {
_start:
{
@ -560,13 +657,25 @@ if (x_3 == 0)
lean_object* x_4; uint8_t x_5;
x_4 = l_Lean_Elab_abortTermExceptionId;
x_5 = lean_nat_dec_eq(x_1, x_4);
return x_5;
if (x_5 == 0)
{
lean_object* x_6; uint8_t x_7;
x_6 = l_Lean_Elab_abortTacticExceptionId;
x_7 = lean_nat_dec_eq(x_1, x_6);
return x_7;
}
else
{
uint8_t x_6;
x_6 = 1;
return x_6;
uint8_t x_8;
x_8 = 1;
return x_8;
}
}
else
{
uint8_t x_9;
x_9 = 1;
return x_9;
}
}
}
@ -668,6 +777,15 @@ l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_55____closed__2 = _init_l_Le
lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_55____closed__2);
res = l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_55_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
l_Lean_Elab_abortTacticExceptionId = lean_io_result_get_value(res);
lean_mark_persistent(l_Lean_Elab_abortTacticExceptionId);
lean_dec_ref(res);
l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__1();
lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__1);
l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__2();
lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68____closed__2);
res = l_Lean_Elab_initFn____x40_Lean_Elab_Exception___hyg_68_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
l_Lean_Elab_autoBoundImplicitExceptionId = lean_io_result_get_value(res);
lean_mark_persistent(l_Lean_Elab_autoBoundImplicitExceptionId);
lean_dec_ref(res);
@ -693,6 +811,8 @@ l_Lean_Elab_throwAbortCommand___rarg___closed__1 = _init_l_Lean_Elab_throwAbortC
lean_mark_persistent(l_Lean_Elab_throwAbortCommand___rarg___closed__1);
l_Lean_Elab_throwAbortTerm___rarg___closed__1 = _init_l_Lean_Elab_throwAbortTerm___rarg___closed__1();
lean_mark_persistent(l_Lean_Elab_throwAbortTerm___rarg___closed__1);
l_Lean_Elab_throwAbortTactic___rarg___closed__1 = _init_l_Lean_Elab_throwAbortTactic___rarg___closed__1();
lean_mark_persistent(l_Lean_Elab_throwAbortTactic___rarg___closed__1);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus

View file

@ -94,7 +94,6 @@ lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__1___boxed(lean_object*, lea
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_merge(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_pushLocalDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun_match__2(lean_object*);
extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__16;
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -372,6 +371,7 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check_match__1(le
uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs___spec__2(lean_object*, size_t, size_t);
extern lean_object* l_Lean_docStringExt;
extern lean_object* l_Lean_instInhabitedExpr;
extern lean_object* l_term_x7b_x7d___closed__3;
lean_object* l_Lean_throwError___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -423,6 +423,7 @@ lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*);
lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample___spec__1___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_apply_match__1___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_term_x7b_x7d___closed__5;
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(lean_object*, size_t, size_t, lean_object*);
lean_object* l_Lean_Elab_Term_MutualClosure_pushMain___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_expr_update_proj(lean_object*, lean_object*);
@ -689,7 +690,6 @@ extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__2___clo
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_registerFailedToInferDefTypeInfo___closed__2;
lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_SepArray_getElems___spec__1(lean_object*, size_t, size_t, lean_object*);
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_FixPoint_getUsedFVarsMap___boxed(lean_object*);
extern lean_object* l_addParenHeuristic___closed__1;
lean_object* l_List_map___at_Lean_Elab_Term_MutualClosure_main___spec__8___boxed(lean_object*, lean_object*);
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_getFunName_match__1(lean_object*);
@ -6111,7 +6111,7 @@ if (x_40 == 0)
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; size_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64;
x_41 = lean_ctor_get(x_39, 0);
x_42 = l_addParenHeuristic___closed__1;
x_42 = l_term_x7b_x7d___closed__3;
lean_inc(x_41);
x_43 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_43, 0, x_41);
@ -6137,7 +6137,7 @@ x_56 = lean_array_push(x_47, x_55);
x_57 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__16;
x_58 = lean_array_push(x_56, x_57);
x_59 = lean_array_push(x_58, x_46);
x_60 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_60 = l_term_x7b_x7d___closed__5;
x_61 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_61, 0, x_41);
lean_ctor_set(x_61, 1, x_60);
@ -6157,7 +6157,7 @@ x_66 = lean_ctor_get(x_39, 1);
lean_inc(x_66);
lean_inc(x_65);
lean_dec(x_39);
x_67 = l_addParenHeuristic___closed__1;
x_67 = l_term_x7b_x7d___closed__3;
lean_inc(x_65);
x_68 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_68, 0, x_65);
@ -6183,7 +6183,7 @@ x_81 = lean_array_push(x_72, x_80);
x_82 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__16;
x_83 = lean_array_push(x_81, x_82);
x_84 = lean_array_push(x_83, x_71);
x_85 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_85 = l_term_x7b_x7d___closed__5;
x_86 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_86, 0, x_65);
lean_ctor_set(x_86, 1, x_85);

View file

@ -32,7 +32,6 @@ lean_object* l_Lean_stringToMessageData(lean_object*);
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_visit_match__1(lean_object*);
lean_object* l_Lean_Meta_getDefaultInstancesPriorities___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault___spec__1___rarg(lean_object*, lean_object*);
extern lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2;
lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_name_mk_string(lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar_match__1(lean_object*);
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -49,7 +48,6 @@ lean_object* l_List_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_E
lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstance___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkMVar(lean_object*);
lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_elabTermAndSynthesize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumeElabTerm(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*);
@ -141,10 +139,8 @@ lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePe
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstances___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___closed__6;
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__6;
lean_object* l_Lean_Elab_Tactic_getUnsolvedGoals(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_reportStuckSyntheticMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed_match__1(lean_object*);
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_visit_match__3(lean_object*);
@ -163,9 +159,9 @@ lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep___closed__2;
extern lean_object* l_Lean_KernelException_toMessageData___closed__15;
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingCoeInstMVar___lambda__3___closed__3;
lean_object* l_Lean_Elab_Tactic_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVarsStep(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_liftTacticElabM(lean_object*);
lean_object* l_ReaderT_pure___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeSyntheticMVar___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizePendingInstMVar___lambda__1___closed__1;
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -276,7 +272,6 @@ lean_object* l_Std_RBNode_find___at_Lean_Meta_addDefaultInstanceEntry___spec__3(
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstances_match__2(lean_object*);
extern lean_object* l_Array_findSomeM_x3f___rarg___closed__1;
lean_object* l_Lean_Meta_getDefaultInstancesPriorities___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_tryToSynthesizeUsingDefaultInstances_match__4___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_withSynthesize___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefault_match__1___rarg(lean_object*, lean_object*, lean_object*);
@ -9215,9 +9210,11 @@ return x_71;
lean_object* l_Lean_Elab_Term_runTactic___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11;
x_11 = l_Lean_Elab_Tactic_getUnsolvedGoals(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_11;
uint8_t x_11; lean_object* x_12; lean_object* x_13;
x_11 = 0;
x_12 = lean_box(0);
x_13 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_13;
}
}
static lean_object* _init_l_Lean_Elab_Term_runTactic___closed__1() {
@ -9289,7 +9286,7 @@ lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_64 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_63);
x_64 = l_Lean_Elab_Tactic_run(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_63);
x_10 = x_64;
goto block_27;
}
@ -9312,7 +9309,7 @@ lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_1);
x_69 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_68);
x_69 = l_Lean_Elab_Tactic_run(x_1, x_56, x_3, x_4, x_5, x_6, x_7, x_8, x_68);
if (lean_obj_tag(x_69) == 0)
{
lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78;
@ -10013,7 +10010,7 @@ lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_255 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_247, x_3, x_4, x_5, x_6, x_7, x_8, x_254);
x_255 = l_Lean_Elab_Tactic_run(x_1, x_247, x_3, x_4, x_5, x_6, x_7, x_8, x_254);
x_10 = x_255;
goto block_27;
}
@ -10036,7 +10033,7 @@ lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_1);
x_260 = l_Lean_Elab_Term_liftTacticElabM___rarg(x_1, x_247, x_3, x_4, x_5, x_6, x_7, x_8, x_259);
x_260 = l_Lean_Elab_Tactic_run(x_1, x_247, x_3, x_4, x_5, x_6, x_7, x_8, x_259);
if (lean_obj_tag(x_260) == 0)
{
lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; uint8_t x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; uint8_t x_281;
@ -10519,567 +10516,6 @@ goto block_27;
}
}
}
lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55;
x_24 = lean_ctor_get(x_3, 1);
x_50 = lean_st_ref_get(x_9, x_10);
x_51 = lean_ctor_get(x_50, 1);
lean_inc(x_51);
lean_dec(x_50);
x_52 = lean_st_ref_take(x_5, x_51);
x_53 = lean_ctor_get(x_52, 0);
lean_inc(x_53);
x_54 = lean_ctor_get(x_52, 1);
lean_inc(x_54);
lean_dec(x_52);
x_55 = !lean_is_exclusive(x_53);
if (x_55 == 0)
{
lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66;
x_56 = lean_ctor_get(x_53, 1);
lean_dec(x_56);
x_57 = lean_box(0);
lean_ctor_set(x_53, 1, x_57);
x_58 = lean_st_ref_set(x_5, x_53, x_54);
x_59 = lean_ctor_get(x_58, 1);
lean_inc(x_59);
lean_dec(x_58);
lean_inc(x_1);
x_60 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_60, 0, x_1);
lean_ctor_set(x_60, 1, x_57);
x_61 = lean_st_ref_get(x_9, x_59);
x_62 = lean_ctor_get(x_61, 1);
lean_inc(x_62);
lean_dec(x_61);
x_63 = lean_st_mk_ref(x_60, x_62);
x_64 = lean_ctor_get(x_63, 0);
lean_inc(x_64);
x_65 = lean_ctor_get(x_63, 1);
lean_inc(x_65);
lean_dec(x_63);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_64);
x_66 = lean_apply_9(x_2, x_1, x_64, x_4, x_5, x_6, x_7, x_8, x_9, x_65);
if (lean_obj_tag(x_66) == 0)
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75;
x_67 = lean_ctor_get(x_66, 0);
lean_inc(x_67);
x_68 = lean_ctor_get(x_66, 1);
lean_inc(x_68);
lean_dec(x_66);
x_69 = lean_st_ref_get(x_9, x_68);
x_70 = lean_ctor_get(x_69, 1);
lean_inc(x_70);
lean_dec(x_69);
x_71 = lean_st_ref_get(x_64, x_70);
lean_dec(x_64);
x_72 = lean_ctor_get(x_71, 1);
lean_inc(x_72);
lean_dec(x_71);
x_73 = 0;
x_74 = lean_box(0);
lean_inc(x_9);
lean_inc(x_5);
x_75 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_73, x_74, x_4, x_5, x_6, x_7, x_8, x_9, x_72);
if (lean_obj_tag(x_75) == 0)
{
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82;
x_76 = lean_ctor_get(x_75, 1);
lean_inc(x_76);
lean_dec(x_75);
x_77 = lean_st_ref_get(x_9, x_76);
lean_dec(x_9);
x_78 = lean_ctor_get(x_77, 1);
lean_inc(x_78);
lean_dec(x_77);
x_79 = lean_st_ref_take(x_5, x_78);
x_80 = lean_ctor_get(x_79, 0);
lean_inc(x_80);
x_81 = lean_ctor_get(x_79, 1);
lean_inc(x_81);
lean_dec(x_79);
x_82 = !lean_is_exclusive(x_80);
if (x_82 == 0)
{
lean_object* x_83; lean_object* x_84; uint8_t x_85;
x_83 = lean_ctor_get(x_80, 1);
lean_dec(x_83);
lean_inc(x_24);
lean_ctor_set(x_80, 1, x_24);
x_84 = lean_st_ref_set(x_5, x_80, x_81);
lean_dec(x_5);
x_85 = !lean_is_exclusive(x_84);
if (x_85 == 0)
{
lean_object* x_86; lean_object* x_87;
x_86 = lean_ctor_get(x_84, 0);
lean_dec(x_86);
x_87 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_87, 0, x_67);
lean_ctor_set(x_87, 1, x_74);
lean_ctor_set(x_84, 0, x_87);
x_11 = x_84;
goto block_23;
}
else
{
lean_object* x_88; lean_object* x_89; lean_object* x_90;
x_88 = lean_ctor_get(x_84, 1);
lean_inc(x_88);
lean_dec(x_84);
x_89 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_89, 0, x_67);
lean_ctor_set(x_89, 1, x_74);
x_90 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_90, 0, x_89);
lean_ctor_set(x_90, 1, x_88);
x_11 = x_90;
goto block_23;
}
}
else
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101;
x_91 = lean_ctor_get(x_80, 0);
x_92 = lean_ctor_get(x_80, 2);
x_93 = lean_ctor_get(x_80, 3);
x_94 = lean_ctor_get(x_80, 4);
x_95 = lean_ctor_get(x_80, 5);
lean_inc(x_95);
lean_inc(x_94);
lean_inc(x_93);
lean_inc(x_92);
lean_inc(x_91);
lean_dec(x_80);
lean_inc(x_24);
x_96 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_96, 0, x_91);
lean_ctor_set(x_96, 1, x_24);
lean_ctor_set(x_96, 2, x_92);
lean_ctor_set(x_96, 3, x_93);
lean_ctor_set(x_96, 4, x_94);
lean_ctor_set(x_96, 5, x_95);
x_97 = lean_st_ref_set(x_5, x_96, x_81);
lean_dec(x_5);
x_98 = lean_ctor_get(x_97, 1);
lean_inc(x_98);
if (lean_is_exclusive(x_97)) {
lean_ctor_release(x_97, 0);
lean_ctor_release(x_97, 1);
x_99 = x_97;
} else {
lean_dec_ref(x_97);
x_99 = lean_box(0);
}
x_100 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_100, 0, x_67);
lean_ctor_set(x_100, 1, x_74);
if (lean_is_scalar(x_99)) {
x_101 = lean_alloc_ctor(0, 2, 0);
} else {
x_101 = x_99;
}
lean_ctor_set(x_101, 0, x_100);
lean_ctor_set(x_101, 1, x_98);
x_11 = x_101;
goto block_23;
}
}
else
{
lean_object* x_102; lean_object* x_103;
lean_dec(x_67);
x_102 = lean_ctor_get(x_75, 0);
lean_inc(x_102);
x_103 = lean_ctor_get(x_75, 1);
lean_inc(x_103);
lean_dec(x_75);
x_25 = x_102;
x_26 = x_103;
goto block_49;
}
}
else
{
lean_object* x_104; lean_object* x_105;
lean_dec(x_64);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_4);
x_104 = lean_ctor_get(x_66, 0);
lean_inc(x_104);
x_105 = lean_ctor_get(x_66, 1);
lean_inc(x_105);
lean_dec(x_66);
x_25 = x_104;
x_26 = x_105;
goto block_49;
}
}
else
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121;
x_106 = lean_ctor_get(x_53, 0);
x_107 = lean_ctor_get(x_53, 2);
x_108 = lean_ctor_get(x_53, 3);
x_109 = lean_ctor_get(x_53, 4);
x_110 = lean_ctor_get(x_53, 5);
lean_inc(x_110);
lean_inc(x_109);
lean_inc(x_108);
lean_inc(x_107);
lean_inc(x_106);
lean_dec(x_53);
x_111 = lean_box(0);
x_112 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_112, 0, x_106);
lean_ctor_set(x_112, 1, x_111);
lean_ctor_set(x_112, 2, x_107);
lean_ctor_set(x_112, 3, x_108);
lean_ctor_set(x_112, 4, x_109);
lean_ctor_set(x_112, 5, x_110);
x_113 = lean_st_ref_set(x_5, x_112, x_54);
x_114 = lean_ctor_get(x_113, 1);
lean_inc(x_114);
lean_dec(x_113);
lean_inc(x_1);
x_115 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_115, 0, x_1);
lean_ctor_set(x_115, 1, x_111);
x_116 = lean_st_ref_get(x_9, x_114);
x_117 = lean_ctor_get(x_116, 1);
lean_inc(x_117);
lean_dec(x_116);
x_118 = lean_st_mk_ref(x_115, x_117);
x_119 = lean_ctor_get(x_118, 0);
lean_inc(x_119);
x_120 = lean_ctor_get(x_118, 1);
lean_inc(x_120);
lean_dec(x_118);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_119);
x_121 = lean_apply_9(x_2, x_1, x_119, x_4, x_5, x_6, x_7, x_8, x_9, x_120);
if (lean_obj_tag(x_121) == 0)
{
lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130;
x_122 = lean_ctor_get(x_121, 0);
lean_inc(x_122);
x_123 = lean_ctor_get(x_121, 1);
lean_inc(x_123);
lean_dec(x_121);
x_124 = lean_st_ref_get(x_9, x_123);
x_125 = lean_ctor_get(x_124, 1);
lean_inc(x_125);
lean_dec(x_124);
x_126 = lean_st_ref_get(x_119, x_125);
lean_dec(x_119);
x_127 = lean_ctor_get(x_126, 1);
lean_inc(x_127);
lean_dec(x_126);
x_128 = 0;
x_129 = lean_box(0);
lean_inc(x_9);
lean_inc(x_5);
x_130 = l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(x_128, x_129, x_4, x_5, x_6, x_7, x_8, x_9, x_127);
if (lean_obj_tag(x_130) == 0)
{
lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148;
x_131 = lean_ctor_get(x_130, 1);
lean_inc(x_131);
lean_dec(x_130);
x_132 = lean_st_ref_get(x_9, x_131);
lean_dec(x_9);
x_133 = lean_ctor_get(x_132, 1);
lean_inc(x_133);
lean_dec(x_132);
x_134 = lean_st_ref_take(x_5, x_133);
x_135 = lean_ctor_get(x_134, 0);
lean_inc(x_135);
x_136 = lean_ctor_get(x_134, 1);
lean_inc(x_136);
lean_dec(x_134);
x_137 = lean_ctor_get(x_135, 0);
lean_inc(x_137);
x_138 = lean_ctor_get(x_135, 2);
lean_inc(x_138);
x_139 = lean_ctor_get(x_135, 3);
lean_inc(x_139);
x_140 = lean_ctor_get(x_135, 4);
lean_inc(x_140);
x_141 = lean_ctor_get(x_135, 5);
lean_inc(x_141);
if (lean_is_exclusive(x_135)) {
lean_ctor_release(x_135, 0);
lean_ctor_release(x_135, 1);
lean_ctor_release(x_135, 2);
lean_ctor_release(x_135, 3);
lean_ctor_release(x_135, 4);
lean_ctor_release(x_135, 5);
x_142 = x_135;
} else {
lean_dec_ref(x_135);
x_142 = lean_box(0);
}
lean_inc(x_24);
if (lean_is_scalar(x_142)) {
x_143 = lean_alloc_ctor(0, 6, 0);
} else {
x_143 = x_142;
}
lean_ctor_set(x_143, 0, x_137);
lean_ctor_set(x_143, 1, x_24);
lean_ctor_set(x_143, 2, x_138);
lean_ctor_set(x_143, 3, x_139);
lean_ctor_set(x_143, 4, x_140);
lean_ctor_set(x_143, 5, x_141);
x_144 = lean_st_ref_set(x_5, x_143, x_136);
lean_dec(x_5);
x_145 = lean_ctor_get(x_144, 1);
lean_inc(x_145);
if (lean_is_exclusive(x_144)) {
lean_ctor_release(x_144, 0);
lean_ctor_release(x_144, 1);
x_146 = x_144;
} else {
lean_dec_ref(x_144);
x_146 = lean_box(0);
}
x_147 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_147, 0, x_122);
lean_ctor_set(x_147, 1, x_129);
if (lean_is_scalar(x_146)) {
x_148 = lean_alloc_ctor(0, 2, 0);
} else {
x_148 = x_146;
}
lean_ctor_set(x_148, 0, x_147);
lean_ctor_set(x_148, 1, x_145);
x_11 = x_148;
goto block_23;
}
else
{
lean_object* x_149; lean_object* x_150;
lean_dec(x_122);
x_149 = lean_ctor_get(x_130, 0);
lean_inc(x_149);
x_150 = lean_ctor_get(x_130, 1);
lean_inc(x_150);
lean_dec(x_130);
x_25 = x_149;
x_26 = x_150;
goto block_49;
}
}
else
{
lean_object* x_151; lean_object* x_152;
lean_dec(x_119);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_4);
x_151 = lean_ctor_get(x_121, 0);
lean_inc(x_151);
x_152 = lean_ctor_get(x_121, 1);
lean_inc(x_152);
lean_dec(x_121);
x_25 = x_151;
x_26 = x_152;
goto block_49;
}
}
block_23:
{
if (lean_obj_tag(x_11) == 0)
{
uint8_t x_12;
x_12 = !lean_is_exclusive(x_11);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14;
x_13 = lean_ctor_get(x_11, 0);
x_14 = lean_ctor_get(x_13, 0);
lean_inc(x_14);
lean_dec(x_13);
lean_ctor_set(x_11, 0, x_14);
return x_11;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18;
x_15 = lean_ctor_get(x_11, 0);
x_16 = lean_ctor_get(x_11, 1);
lean_inc(x_16);
lean_inc(x_15);
lean_dec(x_11);
x_17 = lean_ctor_get(x_15, 0);
lean_inc(x_17);
lean_dec(x_15);
x_18 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set(x_18, 1, x_16);
return x_18;
}
}
else
{
uint8_t x_19;
x_19 = !lean_is_exclusive(x_11);
if (x_19 == 0)
{
return x_11;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22;
x_20 = lean_ctor_get(x_11, 0);
x_21 = lean_ctor_get(x_11, 1);
lean_inc(x_21);
lean_inc(x_20);
lean_dec(x_11);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
return x_22;
}
}
}
block_49:
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32;
x_27 = lean_st_ref_get(x_9, x_26);
lean_dec(x_9);
x_28 = lean_ctor_get(x_27, 1);
lean_inc(x_28);
lean_dec(x_27);
x_29 = lean_st_ref_take(x_5, x_28);
x_30 = lean_ctor_get(x_29, 0);
lean_inc(x_30);
x_31 = lean_ctor_get(x_29, 1);
lean_inc(x_31);
lean_dec(x_29);
x_32 = !lean_is_exclusive(x_30);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; uint8_t x_35;
x_33 = lean_ctor_get(x_30, 1);
lean_dec(x_33);
lean_inc(x_24);
lean_ctor_set(x_30, 1, x_24);
x_34 = lean_st_ref_set(x_5, x_30, x_31);
lean_dec(x_5);
x_35 = !lean_is_exclusive(x_34);
if (x_35 == 0)
{
lean_object* x_36;
x_36 = lean_ctor_get(x_34, 0);
lean_dec(x_36);
lean_ctor_set_tag(x_34, 1);
lean_ctor_set(x_34, 0, x_25);
x_11 = x_34;
goto block_23;
}
else
{
lean_object* x_37; lean_object* x_38;
x_37 = lean_ctor_get(x_34, 1);
lean_inc(x_37);
lean_dec(x_34);
x_38 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_38, 0, x_25);
lean_ctor_set(x_38, 1, x_37);
x_11 = x_38;
goto block_23;
}
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48;
x_39 = lean_ctor_get(x_30, 0);
x_40 = lean_ctor_get(x_30, 2);
x_41 = lean_ctor_get(x_30, 3);
x_42 = lean_ctor_get(x_30, 4);
x_43 = lean_ctor_get(x_30, 5);
lean_inc(x_43);
lean_inc(x_42);
lean_inc(x_41);
lean_inc(x_40);
lean_inc(x_39);
lean_dec(x_30);
lean_inc(x_24);
x_44 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_44, 0, x_39);
lean_ctor_set(x_44, 1, x_24);
lean_ctor_set(x_44, 2, x_40);
lean_ctor_set(x_44, 3, x_41);
lean_ctor_set(x_44, 4, x_42);
lean_ctor_set(x_44, 5, x_43);
x_45 = lean_st_ref_set(x_5, x_44, x_31);
lean_dec(x_5);
x_46 = lean_ctor_get(x_45, 1);
lean_inc(x_46);
if (lean_is_exclusive(x_45)) {
lean_ctor_release(x_45, 0);
lean_ctor_release(x_45, 1);
x_47 = x_45;
} else {
lean_dec_ref(x_45);
x_47 = lean_box(0);
}
if (lean_is_scalar(x_47)) {
x_48 = lean_alloc_ctor(1, 2, 0);
} else {
x_48 = x_47;
lean_ctor_set_tag(x_48, 1);
}
lean_ctor_set(x_48, 0, x_25);
lean_ctor_set(x_48, 1, x_46);
x_11 = x_48;
goto block_23;
}
}
}
}
lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
lean_inc(x_1);
x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1___boxed), 10, 2);
lean_closure_set(x_10, 0, x_1);
lean_closure_set(x_10, 1, x_2);
x_11 = l_Lean_Elab_Term_instMonadInfoTreeTermElabM___closed__1;
x_12 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg), 9, 2);
lean_closure_set(x_12, 0, x_11);
lean_closure_set(x_12, 1, x_10);
x_13 = l_Lean_Meta_withMVarContext___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__4___rarg(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
return x_13;
}
}
lean_object* l_Lean_Elab_Term_liftTacticElabM(lean_object* x_1) {
_start:
{
lean_object* x_2;
x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Term_liftTacticElabM___rarg), 9, 0);
return x_2;
}
}
lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
@ -11191,27 +10627,12 @@ _start:
{
lean_object* x_11;
x_11 = l_Lean_Elab_Term_runTactic___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_11;
}
}
lean_object* l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11;
x_11 = l_Lean_Elab_Term_liftTacticElabM___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_3);
return x_11;
}
}
lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -58,8 +58,8 @@ uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isSynthetic_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldBothDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDepsAux_match__1(lean_object*);
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674_(lean_object*);
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661_(lean_object*);
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676_(lean_object*);
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663_(lean_object*);
lean_object* lean_name_mk_string(lean_object*, lean_object*);
lean_object* l_Lean_Expr_withAppAux___at_Lean_Meta_CheckAssignment_checkApp___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldBothDefEq_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -108,7 +108,6 @@ lean_object* l_Lean_mkMVar(lean_object*);
size_t l_USize_sub(size_t, size_t);
lean_object* l___private_Lean_Expr_0__Lean_Expr_etaExpandedAux(lean_object*, lean_object*);
extern lean_object* l_Array_empty___closed__1;
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521____closed__1;
lean_object* l_Lean_addTrace___at_Lean_Meta_CheckAssignment_checkFVar___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_findCached_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -198,7 +197,6 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_simpAssignmentArgAux_m
lean_object* lean_nat_add(lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_addAssignmentInfo___closed__1;
lean_object* l_Std_PersistentArray_foldlM___at___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___spec__1(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__2;
lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_tryHeuristic___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_etaEq(lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___closed__1;
@ -247,6 +245,7 @@ lean_object* lean_array_fget(lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___closed__3;
lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_CheckAssignment_checkApp___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Expr_updateLambdaE_x21___closed__2;
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__2;
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickMVarMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__3;
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
@ -269,7 +268,6 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqLeft(lean_objec
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_simpAssignmentArgAux_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignment_process_match__1___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps_collectLetDeps___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__2;
extern lean_object* l_Lean_Meta_isTypeCorrect___closed__1;
extern lean_object* l_Lean_Meta_toCtorIfLit___closed__3;
lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at___private_Lean_Meta_LevelDefEq_0__Lean_Meta_processPostponedStep___spec__6___rarg(lean_object*, lean_object*);
@ -428,7 +426,6 @@ uint8_t l_Lean_Meta_CheckAssignmentQuick_check_visit(uint8_t, lean_object*, lean
lean_object* l_Lean_Meta_CheckAssignment_throwOutOfScopeFVar___rarg(lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuick(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Expr_isLambda(lean_object*);
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__1;
lean_object* l_Lean_Meta_CheckAssignment_checkAssignmentAux(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__12___boxed(lean_object*, lean_object*);
lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqEta___spec__1___closed__1;
@ -456,6 +453,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar_
lean_object* l_Lean_Meta_mkFreshExprMVarAt(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___closed__8;
lean_object* l_Lean_LocalDecl_type(lean_object*);
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__1;
lean_object* l_Lean_LocalDecl_value_x3f(lean_object*);
lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t);
lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_tryHeuristic___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -469,6 +467,7 @@ lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqDelta(lean_obje
extern lean_object* l_Std_HashSet_instInhabitedHashSet___closed__1;
lean_object* l_Std_PersistentArray_push___rarg(lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_checkTypesAndAssign___closed__1;
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__2;
extern lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_postponeIsLevelDefEq___closed__3;
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqLeft___closed__2;
lean_object* l_Lean_LocalDecl_index(lean_object*);
@ -519,7 +518,6 @@ lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___s
lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_tryHeuristic___spec__1___lambda__3___closed__2;
uint8_t l_Lean_Meta_CheckAssignmentQuick_check(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_simpAssignmentArg___closed__1;
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__1;
lean_object* l___private_Lean_Util_Trace_0__Lean_withNestedTracesFinalizer___at_Lean_Meta_isExprDefEqAuxImpl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_CheckAssignment_cache___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__28(lean_object*, lean_object*, size_t, size_t);
@ -548,6 +546,7 @@ lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___s
uint8_t l_Array_contains___at___private_Lean_Class_0__Lean_checkOutParam___spec__1(lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqQuickOther___closed__4;
lean_object* l_Lean_Meta_whenUndefDo_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__1;
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unfoldBothDefEq_match__1(lean_object*);
lean_object* l_Lean_Meta_checkpointDefEq___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_processAssignmentFOApprox_loop___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Meta_CheckAssignment_checkMVar___spec__33___boxed(lean_object*, lean_object*);
@ -567,8 +566,8 @@ lean_object* l_Lean_Meta_CheckAssignment_checkMVar_match__2(lean_object*);
uint8_t l_Lean_Expr_isFVar(lean_object*);
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isAssigned_match__1(lean_object*);
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521_(lean_object*);
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9530_(lean_object*);
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9532_(lean_object*);
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523_(lean_object*);
lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*);
lean_object* l_Lean_Meta_CheckAssignment_throwCheckAssignmentFailure___rarg___closed__1;
lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_checkAssignment___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -619,6 +618,7 @@ extern lean_object* l_Lean_Expr_updateLet_x21___closed__2;
lean_object* l_Lean_Meta_whenUndefDo_match__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__55___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_ExprDefEq_0__Lean_Meta_isDefEqArgs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523____closed__1;
lean_object* l_Array_anyMUnsafe_any___at_Lean_Meta_CheckAssignment_checkMVar___spec__42___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_isDefEqNat(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_CheckAssignment_checkMVar___spec__50___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -11852,7 +11852,7 @@ lean_dec(x_5);
return x_10;
}
}
static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__1() {
static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__1() {
_start:
{
lean_object* x_1;
@ -11860,26 +11860,26 @@ x_1 = lean_mk_string("checkAssignment");
return x_1;
}
}
static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__2() {
static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__1;
x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661_(lean_object* x_1) {
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3;
x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__2;
x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__2;
x_3 = l_Lean_registerInternalExceptionId(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__1() {
static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__1() {
_start:
{
lean_object* x_1;
@ -11887,21 +11887,21 @@ x_1 = lean_mk_string("outOfScope");
return x_1;
}
}
static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__2() {
static lean_object* _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__1;
x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674_(lean_object* x_1) {
lean_object* l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3;
x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__2;
x_2 = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__2;
x_3 = l_Lean_registerInternalExceptionId(x_2, x_1);
return x_3;
}
@ -64773,7 +64773,7 @@ lean_dec(x_3);
return x_8;
}
}
static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521____closed__1() {
static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523____closed__1() {
_start:
{
lean_object* x_1;
@ -64781,12 +64781,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_isExprDefEqAuxImpl), 7, 0);
return x_1;
}
}
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521_(lean_object* x_1) {
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5;
x_2 = l_Lean_Meta_isExprDefEqAuxRef;
x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521____closed__1;
x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523____closed__1;
x_4 = lean_st_ref_set(x_2, x_3, x_1);
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
@ -64808,7 +64808,7 @@ return x_8;
}
}
}
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9530_(lean_object* x_1) {
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9532_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3;
@ -65049,20 +65049,20 @@ l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps___closed__
lean_mark_persistent(l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps___closed__3);
l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps___closed__4 = _init_l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps___closed__4();
lean_mark_persistent(l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_mkLambdaFVarsWithLetDeps___closed__4);
l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__1 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__1();
lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__1);
l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__2 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__2();
lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661____closed__2);
res = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2661_(lean_io_mk_world());
l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__1 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__1();
lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__1);
l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__2 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__2();
lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663____closed__2);
res = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2663_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
l_Lean_Meta_CheckAssignment_checkAssignmentExceptionId = lean_io_result_get_value(res);
lean_mark_persistent(l_Lean_Meta_CheckAssignment_checkAssignmentExceptionId);
lean_dec_ref(res);
l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__1 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__1();
lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__1);
l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__2 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__2();
lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674____closed__2);
res = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2674_(lean_io_mk_world());
l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__1 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__1();
lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__1);
l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__2 = _init_l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__2();
lean_mark_persistent(l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676____closed__2);
res = l_Lean_Meta_CheckAssignment_initFn____x40_Lean_Meta_ExprDefEq___hyg_2676_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
l_Lean_Meta_CheckAssignment_outOfScopeExceptionId = lean_io_result_get_value(res);
lean_mark_persistent(l_Lean_Meta_CheckAssignment_outOfScopeExceptionId);
@ -65189,12 +65189,12 @@ l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___closed__13 = _init_l_
lean_mark_persistent(l___private_Lean_Meta_ExprDefEq_0__Lean_Meta_unstuckMVar___closed__13);
l_Lean_Meta_isExprDefEqAuxImpl___closed__1 = _init_l_Lean_Meta_isExprDefEqAuxImpl___closed__1();
lean_mark_persistent(l_Lean_Meta_isExprDefEqAuxImpl___closed__1);
l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521____closed__1();
lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521____closed__1);
res = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9521_(lean_io_mk_world());
l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523____closed__1();
lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523____closed__1);
res = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9523_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9530_(lean_io_mk_world());
res = l_Lean_Meta_initFn____x40_Lean_Meta_ExprDefEq___hyg_9532_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
return lean_io_result_mk_ok(lean_box(0));

View file

@ -33,7 +33,6 @@ lean_object* l_List_foldl___at_Lean_Meta_Match_Pattern_toMessageData___spec__1(l
lean_object* l_Lean_stringToMessageData(lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
lean_object* l_Lean_Meta_Match_Pattern_hasExprMVar___boxed(lean_object*);
extern lean_object* l_addParenHeuristic___closed__2;
lean_object* l_Lean_throwError___at_Lean_Meta_whnf___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_term_x5b___x5d___closed__9;
lean_object* lean_name_mk_string(lean_object*, lean_object*);
@ -266,6 +265,7 @@ lean_object* l_List_foldr___at_Lean_Meta_Match_Pattern_hasExprMVar___spec__1___b
lean_object* l_Lean_Meta_Match_Alt_applyFVarSubst(lean_object*, lean_object*);
lean_object* l_List_map___at_Lean_Meta_Match_Example_replaceFVarId___spec__2___boxed(lean_object*, lean_object*, lean_object*);
extern lean_object* l_instToFormatArray___rarg___closed__1;
extern lean_object* l_addParenHeuristic___closed__1;
lean_object* l_Lean_LocalDecl_applyFVarSubst(lean_object*, lean_object*);
lean_object* l_Lean_Meta_Match_Alt_toMessageData___closed__3;
lean_object* l_Lean_Meta_Match_Pattern_toExpr(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -572,7 +572,7 @@ static lean_object* _init_l_Lean_Meta_Match_Pattern_toMessageData___closed__5()
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_addParenHeuristic___closed__2;
x_1 = l_addParenHeuristic___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}

View file

@ -23,7 +23,6 @@ lean_object* l_Lean_Meta_matchNe_x3f_match__1___rarg(lean_object*, lean_object*,
lean_object* l_Lean_Meta_matchHelper_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_matchNot_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_matchNot_x3f_match__2(lean_object*);
extern lean_object* l_myMacro____x40_Init_Core___hyg_1766____closed__4;
lean_object* l_Lean_Meta_matchNot_x3f_match__1(lean_object*);
lean_object* l_Lean_Meta_matchNot_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_testHelper(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -40,6 +39,7 @@ uint8_t l_Lean_Expr_hasLooseBVars(lean_object*);
lean_object* l_Lean_Meta_matchNot_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_matchNe_x3f_match__1(lean_object*);
extern lean_object* l_myMacro____x40_Init_Notation___hyg_11514____closed__4;
extern lean_object* l_myMacro____x40_Init_Core___hyg_2016____closed__4;
lean_object* l_Lean_Expr_isConstructorApp_x3f(lean_object*, lean_object*);
lean_object* l_Lean_Meta_testHelper(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
@ -1148,7 +1148,7 @@ lean_object* l_Lean_Meta_matchNe_x3f(lean_object* x_1, lean_object* x_2, lean_ob
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_72; lean_object* x_73; uint8_t x_74;
x_72 = l_myMacro____x40_Init_Core___hyg_1766____closed__4;
x_72 = l_myMacro____x40_Init_Core___hyg_2016____closed__4;
x_73 = lean_unsigned_to_nat(3u);
x_74 = l_Lean_Expr_isAppOfArity(x_1, x_72, x_73);
if (x_74 == 0)
@ -1300,7 +1300,7 @@ if (x_10 == 0)
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
x_11 = lean_ctor_get(x_9, 0);
x_12 = lean_ctor_get(x_9, 1);
x_13 = l_myMacro____x40_Init_Core___hyg_1766____closed__4;
x_13 = l_myMacro____x40_Init_Core___hyg_2016____closed__4;
x_14 = lean_unsigned_to_nat(3u);
x_15 = l_Lean_Expr_isAppOfArity(x_11, x_13, x_14);
if (x_15 == 0)
@ -1422,7 +1422,7 @@ x_40 = lean_ctor_get(x_9, 1);
lean_inc(x_40);
lean_inc(x_39);
lean_dec(x_9);
x_41 = l_myMacro____x40_Init_Core___hyg_1766____closed__4;
x_41 = l_myMacro____x40_Init_Core___hyg_2016____closed__4;
x_42 = lean_unsigned_to_nat(3u);
x_43 = l_Lean_Expr_isAppOfArity(x_39, x_41, x_42);
if (x_43 == 0)

View file

@ -63,7 +63,6 @@ lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_RecursorInfo_0__Lea
extern lean_object* l_Lean_registerInternalExceptionId___closed__2;
lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getProduceMotiveAndRecursive___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
lean_object* l_Lean_Meta_Attribute_Recursor_getMajorPos___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Array_empty___closed__1;
lean_object* l_Lean_getConstInfo___at_Lean_Meta_mkConstWithFreshMVarLevels___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -234,6 +233,7 @@ extern lean_object* l_Lean_KernelException_toMessageData___closed__3;
size_t lean_usize_of_nat(lean_object*);
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_RecursorInfo___hyg_2259____closed__6;
lean_object* l_Lean_ConstantInfo_type(lean_object*);
extern lean_object* l_term_x7b_x7d___closed__5;
lean_object* l_Lean_Meta_Attribute_Recursor_getMajorPos___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_RecursorInfo_0__Lean_Meta_getMotiveLevel_match__1(lean_object*);
lean_object* l_Lean_Meta_RecursorInfo_instToStringRecursorInfo___closed__12;
@ -1410,7 +1410,7 @@ x_82 = lean_string_append(x_80, x_81);
x_83 = lean_string_append(x_82, x_40);
lean_dec(x_40);
x_84 = lean_string_append(x_83, x_7);
x_85 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_85 = l_term_x7b_x7d___closed__5;
x_86 = lean_string_append(x_84, x_85);
return x_86;
}

View file

@ -174,7 +174,6 @@ lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_2179____closed__5;
lean_object* l_Std_PersistentHashMap_findAux___at_Lean_Meta_addSimpLemmaEntry___spec__3(lean_object*, size_t, lean_object*);
lean_object* l_Lean_Meta_instToFormatSimpLemma___closed__1;
extern lean_object* l_myMacro____x40_Init_Core___hyg_1766____closed__4;
lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_instToMessageDataSimpLemma(lean_object*);
lean_object* l_List_mapM___at___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkFun___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -338,6 +337,7 @@ lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_isPerm_ma
lean_object* l_Lean_Meta_SimpLemma_getName___closed__2;
lean_object* l_Lean_indentExpr(lean_object*);
lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Simp_SimpLemmas___hyg_374____closed__2;
extern lean_object* l_myMacro____x40_Init_Core___hyg_2016____closed__4;
uint8_t l_Lean_Meta_instBEqSimpLemma(lean_object*, lean_object*);
lean_object* l___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_mkSimpLemmaCore___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkConst(lean_object*, lean_object*);
@ -6168,7 +6168,7 @@ x_16 = l_Lean_Expr_isAppOfArity(x_10, x_14, x_15);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; uint8_t x_19;
x_17 = l_myMacro____x40_Init_Core___hyg_1766____closed__4;
x_17 = l_myMacro____x40_Init_Core___hyg_2016____closed__4;
x_18 = lean_unsigned_to_nat(3u);
x_19 = l_Lean_Expr_isAppOfArity(x_10, x_17, x_18);
if (x_19 == 0)
@ -6827,7 +6827,7 @@ x_167 = l_Lean_Expr_isAppOfArity(x_161, x_165, x_166);
if (x_167 == 0)
{
lean_object* x_168; lean_object* x_169; uint8_t x_170;
x_168 = l_myMacro____x40_Init_Core___hyg_1766____closed__4;
x_168 = l_myMacro____x40_Init_Core___hyg_2016____closed__4;
x_169 = lean_unsigned_to_nat(3u);
x_170 = l_Lean_Expr_isAppOfArity(x_161, x_168, x_169);
if (x_170 == 0)

View file

@ -575,7 +575,6 @@ lean_object* l_Lean_Parser_Term_dbgTrace_parenthesizer___closed__2;
lean_object* l_Lean_Parser_Term_explicitUniv_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_myMacro____x40_Init_Notation___hyg_16268____closed__8;
lean_object* l___regBuiltin_Lean_Parser_Term_trailing__parser_formatter___closed__1;
extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
lean_object* l_Lean_Parser_Term_explicitBinder___elambda__1___closed__3;
lean_object* l_Lean_Parser_Term_match_formatter___closed__12;
lean_object* l_Lean_Parser_Term_binderTactic_parenthesizer___closed__2;
@ -2444,6 +2443,7 @@ lean_object* l_Lean_Parser_Tactic_quotSeq___elambda__1___closed__1;
lean_object* l_Lean_Parser_Tactic_quot___elambda__1___closed__8;
lean_object* l_Lean_Parser_Term_show___elambda__1___closed__11;
lean_object* l_Lean_Parser_registerBuiltinParserAttribute(lean_object*, lean_object*, uint8_t, lean_object*);
extern lean_object* l_term_x7b_x7d___closed__3;
lean_object* l_Lean_Parser_tacticParser_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Parser_Term_binderTactic___closed__1;
extern lean_object* l_Lean_Parser_mkAntiquotSplice___closed__5;
@ -2753,6 +2753,7 @@ lean_object* l_Lean_Parser_Term_dynamicQuot_parenthesizer___closed__2;
lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__9;
lean_object* l_Lean_Parser_Level_quot___closed__7;
lean_object* l_Lean_Parser_Term_bracketedBinder_quot___elambda__1___closed__1;
extern lean_object* l_term_x7b_x7d___closed__5;
lean_object* l___regBuiltinParser_Lean_Parser_Term_fun(lean_object*);
lean_object* l_Lean_Parser_Term_argument_formatter___closed__2;
lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__1;
@ -4615,7 +4616,6 @@ lean_object* l_Lean_Parser_checkColGtFn___boxed(lean_object*, lean_object*, lean
lean_object* l_Lean_Parser_Term_namedArgument___closed__4;
lean_object* l_Lean_Parser_Term_forInMacro_parenthesizer___closed__2;
lean_object* l_Lean_Parser_Tactic_tacticSeq1Indented___elambda__1___closed__5;
extern lean_object* l_addParenHeuristic___closed__1;
lean_object* l_Lean_Parser_Command_docComment___elambda__1___closed__7;
lean_object* l_Lean_Parser_Term_borrowed___elambda__1___closed__3;
lean_object* l_Lean_Parser_Term_explicitBinder_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -6002,7 +6002,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed___elambda__1__
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_1 = l_term_x7b_x7d___closed__5;
x_2 = l_String_trim(x_1);
return x_2;
}
@ -6057,7 +6057,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed___elambda__1__
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_addParenHeuristic___closed__1;
x_1 = l_term_x7b_x7d___closed__3;
x_2 = l_String_trim(x_1);
return x_2;
}
@ -7197,7 +7197,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed_formatter___cl
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_addParenHeuristic___closed__1;
x_1 = l_term_x7b_x7d___closed__3;
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbol_formatter), 6, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
@ -7279,7 +7279,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed_formatter___cl
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_1 = l_term_x7b_x7d___closed__5;
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbol_formatter), 6, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
@ -7560,7 +7560,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer_
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_addParenHeuristic___closed__1;
x_1 = l_term_x7b_x7d___closed__3;
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbol_parenthesizer), 6, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
@ -7644,7 +7644,7 @@ static lean_object* _init_l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer_
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_1 = l_term_x7b_x7d___closed__5;
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbol_parenthesizer), 6, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;

View file

@ -57,7 +57,6 @@ lean_object* l_Lean_PrettyPrinter_Delaborator_delabProjectionApp_match__1___rarg
lean_object* l_Lean_PrettyPrinter_Delaborator_delabLit_match__2___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_PrettyPrinter_Delaborator_delabMVar___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
extern lean_object* l_myMacro____x40_Init_Notation___hyg_12692____closed__4;
extern lean_object* l_addParenHeuristic___closed__2;
lean_object* l_Lean_PrettyPrinter_Delaborator_delabLam_match__1___rarg(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_anyMUnsafe_any___at_Lean_PrettyPrinter_Delaborator_delabForall___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_PrettyPrinter_Delaborator_delabNil___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -122,7 +121,6 @@ lean_object* l_Lean_throwError___at_Lean_PrettyPrinter_Delaborator_delabAppMatch
lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabAppMatch(lean_object*);
extern lean_object* l_myMacro____x40_Init_Notation___hyg_16268____closed__8;
lean_object* l_Lean_PrettyPrinter_Delaborator_delabConst___closed__3;
extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabMData___closed__1;
lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_skippingBinders(lean_object*);
lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabNamedPattern___closed__1;
@ -439,6 +437,7 @@ lean_object* l_Lean_getRevAliases(lean_object*, lean_object*);
lean_object* l_Lean_ScopedEnvExtension_getState___at_Lean_PrettyPrinter_Delaborator_delabAppWithUnexpander_go___spec__1___boxed(lean_object*, lean_object*);
lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_delabPatterns_usingNames(lean_object*);
lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_term_x7b_x7d___closed__3;
lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppExplicit___closed__3;
size_t lean_usize_modn(size_t, lean_object*);
lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabNil___closed__2;
@ -496,6 +495,7 @@ lean_object* l_Lean_PrettyPrinter_Delaborator_delabProjectionApp_match__2(lean_o
lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Expr_isLambda(lean_object*);
extern lean_object* l_Lean_NameGenerator_namePrefix___default___closed__2;
extern lean_object* l_term_x7b_x7d___closed__5;
lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabFVar(lean_object*);
lean_object* l_Lean_PrettyPrinter_Delaborator_withBindingBodyUnusedName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_skippingBinders_loop_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
@ -3025,7 +3025,7 @@ x_59 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_59, 0, x_58);
lean_ctor_set(x_59, 1, x_57);
x_60 = lean_array_push(x_40, x_59);
x_61 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_61 = l_term_x7b_x7d___closed__5;
x_62 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_62, 0, x_34);
lean_ctor_set(x_62, 1, x_61);
@ -3081,7 +3081,7 @@ x_92 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_92, 0, x_91);
lean_ctor_set(x_92, 1, x_90);
x_93 = lean_array_push(x_73, x_92);
x_94 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_94 = l_term_x7b_x7d___closed__5;
x_95 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_95, 0, x_66);
lean_ctor_set(x_95, 1, x_94);
@ -14125,7 +14125,7 @@ lean_inc(x_56);
x_57 = lean_ctor_get(x_55, 1);
lean_inc(x_57);
lean_dec(x_55);
x_58 = l_addParenHeuristic___closed__1;
x_58 = l_term_x7b_x7d___closed__3;
lean_inc(x_56);
x_59 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_59, 0, x_56);
@ -14141,7 +14141,7 @@ lean_ctor_set(x_64, 1, x_62);
x_65 = lean_array_push(x_61, x_64);
x_66 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8;
x_67 = lean_array_push(x_65, x_66);
x_68 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_68 = l_term_x7b_x7d___closed__5;
x_69 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_69, 0, x_56);
lean_ctor_set(x_69, 1, x_68);
@ -14167,7 +14167,7 @@ lean_inc(x_75);
x_76 = lean_ctor_get(x_74, 1);
lean_inc(x_76);
lean_dec(x_74);
x_77 = l_addParenHeuristic___closed__1;
x_77 = l_term_x7b_x7d___closed__3;
lean_inc(x_75);
x_78 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_78, 0, x_75);
@ -14192,7 +14192,7 @@ x_89 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_89, 0, x_82);
lean_ctor_set(x_89, 1, x_88);
x_90 = lean_array_push(x_84, x_89);
x_91 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_91 = l_term_x7b_x7d___closed__5;
x_92 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_92, 0, x_75);
lean_ctor_set(x_92, 1, x_91);
@ -14543,7 +14543,7 @@ lean_inc(x_180);
x_181 = lean_ctor_get(x_179, 1);
lean_inc(x_181);
lean_dec(x_179);
x_182 = l_addParenHeuristic___closed__1;
x_182 = l_term_x7b_x7d___closed__3;
lean_inc(x_180);
x_183 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_183, 0, x_180);
@ -14559,7 +14559,7 @@ lean_ctor_set(x_188, 1, x_186);
x_189 = lean_array_push(x_185, x_188);
x_190 = l_myMacro____x40_Init_Notation___hyg_1481____closed__8;
x_191 = lean_array_push(x_189, x_190);
x_192 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_192 = l_term_x7b_x7d___closed__5;
x_193 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_193, 0, x_180);
lean_ctor_set(x_193, 1, x_192);
@ -14585,7 +14585,7 @@ lean_inc(x_199);
x_200 = lean_ctor_get(x_198, 1);
lean_inc(x_200);
lean_dec(x_198);
x_201 = l_addParenHeuristic___closed__1;
x_201 = l_term_x7b_x7d___closed__3;
lean_inc(x_199);
x_202 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_202, 0, x_199);
@ -14610,7 +14610,7 @@ x_213 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_213, 0, x_206);
lean_ctor_set(x_213, 1, x_212);
x_214 = lean_array_push(x_208, x_213);
x_215 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_215 = l_term_x7b_x7d___closed__5;
x_216 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_216, 0, x_199);
lean_ctor_set(x_216, 1, x_215);
@ -15875,7 +15875,7 @@ lean_inc(x_133);
x_134 = lean_ctor_get(x_132, 1);
lean_inc(x_134);
lean_dec(x_132);
x_135 = l_addParenHeuristic___closed__1;
x_135 = l_term_x7b_x7d___closed__3;
lean_inc(x_133);
x_136 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_136, 0, x_133);
@ -15899,7 +15899,7 @@ x_147 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_147, 0, x_140);
lean_ctor_set(x_147, 1, x_146);
x_148 = lean_array_push(x_142, x_147);
x_149 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_149 = l_term_x7b_x7d___closed__5;
x_150 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_150, 0, x_133);
lean_ctor_set(x_150, 1, x_149);
@ -20261,7 +20261,7 @@ if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39;
x_13 = lean_ctor_get(x_11, 0);
x_14 = l_addParenHeuristic___closed__1;
x_14 = l_term_x7b_x7d___closed__3;
lean_inc(x_13);
x_15 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_15, 0, x_13);
@ -20307,7 +20307,7 @@ x_36 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_36, 0, x_35);
lean_ctor_set(x_36, 1, x_34);
x_37 = lean_array_push(x_33, x_36);
x_38 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_38 = l_term_x7b_x7d___closed__5;
lean_inc(x_13);
x_39 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_39, 0, x_13);
@ -20367,7 +20367,7 @@ x_59 = lean_ctor_get(x_11, 1);
lean_inc(x_59);
lean_inc(x_58);
lean_dec(x_11);
x_60 = l_addParenHeuristic___closed__1;
x_60 = l_term_x7b_x7d___closed__3;
lean_inc(x_58);
x_61 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_61, 0, x_58);
@ -20413,7 +20413,7 @@ x_82 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_82, 0, x_81);
lean_ctor_set(x_82, 1, x_80);
x_83 = lean_array_push(x_79, x_82);
x_84 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_84 = l_term_x7b_x7d___closed__5;
lean_inc(x_58);
x_85 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_85, 0, x_58);
@ -20481,7 +20481,7 @@ if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39;
x_13 = lean_ctor_get(x_11, 0);
x_14 = l_addParenHeuristic___closed__1;
x_14 = l_term_x7b_x7d___closed__3;
lean_inc(x_13);
x_15 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_15, 0, x_13);
@ -20527,7 +20527,7 @@ x_36 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_36, 0, x_35);
lean_ctor_set(x_36, 1, x_34);
x_37 = lean_array_push(x_33, x_36);
x_38 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_38 = l_term_x7b_x7d___closed__5;
lean_inc(x_13);
x_39 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_39, 0, x_13);
@ -20587,7 +20587,7 @@ x_59 = lean_ctor_get(x_11, 1);
lean_inc(x_59);
lean_inc(x_58);
lean_dec(x_11);
x_60 = l_addParenHeuristic___closed__1;
x_60 = l_term_x7b_x7d___closed__3;
lean_inc(x_58);
x_61 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_61, 0, x_58);
@ -20633,7 +20633,7 @@ x_82 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_82, 0, x_81);
lean_ctor_set(x_82, 1, x_80);
x_83 = lean_array_push(x_79, x_82);
x_84 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_84 = l_term_x7b_x7d___closed__5;
lean_inc(x_58);
x_85 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_85, 0, x_58);
@ -23039,7 +23039,7 @@ if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34;
x_21 = lean_ctor_get(x_19, 0);
x_22 = l_addParenHeuristic___closed__2;
x_22 = l_addParenHeuristic___closed__1;
lean_inc(x_21);
x_23 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_23, 0, x_21);
@ -23073,7 +23073,7 @@ x_36 = lean_ctor_get(x_19, 1);
lean_inc(x_36);
lean_inc(x_35);
lean_dec(x_19);
x_37 = l_addParenHeuristic___closed__2;
x_37 = l_addParenHeuristic___closed__1;
lean_inc(x_35);
x_38 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_38, 0, x_35);

View file

@ -50,7 +50,6 @@ lean_object* l_Lean_Expr_natAdd_x3f___boxed(lean_object*);
lean_object* l_Lean_Expr_isConstructorApp___boxed(lean_object*, lean_object*);
extern lean_object* l_myMacro____x40_Init_Notation___hyg_12692____closed__7;
lean_object* l_Lean_Expr_isConstructorApp_x3f_match__2___rarg(lean_object*, lean_object*, lean_object*);
extern lean_object* l_myMacro____x40_Init_Core___hyg_1766____closed__4;
lean_object* l_Lean_Expr_heq_x3f(lean_object*);
lean_object* l_Lean_Expr_arrayLit_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Expr_app4_x3f___boxed(lean_object*, lean_object*);
@ -100,6 +99,7 @@ lean_object* l_Lean_Expr_const_x3f_match__1___rarg(lean_object*, lean_object*, l
lean_object* l_Lean_Expr_not_x3f___boxed(lean_object*);
extern lean_object* l_myMacro____x40_Init_Notation___hyg_11514____closed__4;
lean_object* l_Lean_Expr_listLit_x3f_loop(lean_object*, lean_object*);
extern lean_object* l_myMacro____x40_Init_Core___hyg_2016____closed__4;
lean_object* l_Lean_Expr_arrow_x3f_match__1(lean_object*);
lean_object* l_Lean_Expr_isConstructorApp_x3f(lean_object*, lean_object*);
lean_object* l_Lean_Expr_isConstructorApp_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*);
@ -383,7 +383,7 @@ lean_object* l_Lean_Expr_ne_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4;
x_2 = l_myMacro____x40_Init_Core___hyg_1766____closed__4;
x_2 = l_myMacro____x40_Init_Core___hyg_2016____closed__4;
x_3 = lean_unsigned_to_nat(3u);
x_4 = l_Lean_Expr_isAppOfArity(x_1, x_2, x_3);
if (x_4 == 0)

View file

@ -80,7 +80,6 @@ lean_object* l_Std_PersistentArray_getOp___rarg(lean_object*, lean_object*, lean
lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlFromMAux___at_Std_PersistentArray_append___spec__2___rarg(lean_object*, size_t, size_t, lean_object*);
lean_object* l_Array_findSomeRevM_x3f_find___at_Std_PersistentArray_findSomeRev_x3f___spec__4(lean_object*, lean_object*);
lean_object* l_Std_PersistentArray_forMAux(lean_object*, lean_object*);
extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
lean_object* l_Array_foldlMUnsafe_fold___at_Std_PersistentArray_toArray___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_PersistentArray_mapMAux___rarg___closed__2;
lean_object* l_Array_foldlMUnsafe_fold___at_Std_PersistentArray_foldl___spec__11___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*);
@ -349,6 +348,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at_Array_toPersistentArray___spec__1(le
lean_object* l___private_Std_Data_PersistentArray_0__Std_PersistentArray_foldlMAux___at_Std_PersistentArray_filter___spec__10___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Array_foldlMUnsafe_fold___at_Std_PersistentArray_toList___spec__11___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_instInhabitedPersistentArray(lean_object*);
extern lean_object* l_term_x7b_x7d___closed__5;
lean_object* l_Std_PersistentArray_any___rarg___boxed(lean_object*, lean_object*);
lean_object* l_Array_foldlMUnsafe_fold___at_Std_PersistentArray_toArray___spec__11(lean_object*);
lean_object* l_Std_mkPArray___rarg(lean_object*, lean_object*);
@ -12222,7 +12222,7 @@ lean_dec(x_1);
x_14 = l_Nat_repr(x_13);
x_15 = lean_string_append(x_12, x_14);
lean_dec(x_14);
x_16 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_16 = l_term_x7b_x7d___closed__5;
x_17 = lean_string_append(x_15, x_16);
return x_17;
}

View file

@ -37,7 +37,6 @@ lean_object* l_Std_PersistentHashMap_stats(lean_object*, lean_object*, lean_obje
lean_object* l_Std_PersistentHashMap_foldlMAux_traverse___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_PersistentHashMap_find_x3f_match__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
size_t l_Std_PersistentHashMap_mod2Shift(size_t, size_t);
extern lean_object* l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
lean_object* l_Std_PersistentHashMap_findEntryAux___rarg(lean_object*, lean_object*, size_t, lean_object*);
lean_object* l_Std_PersistentHashMap_find_x3f_match__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_PersistentHashMap_erase(lean_object*, lean_object*);
@ -150,6 +149,7 @@ lean_object* l_Std_PersistentHashMap_findD___rarg___boxed(lean_object*, lean_obj
lean_object* l_Std_PersistentHashMap_findD___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_PersistentHashMap_findAtAux___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_PersistentHashMap_find_x3f(lean_object*, lean_object*);
extern lean_object* l_term_x7b_x7d___closed__5;
lean_object* l_Std_PersistentHashMap_insertAux_match__2(lean_object*, lean_object*, lean_object*);
size_t l_Std_PersistentHashMap_div2Shift(size_t, size_t);
lean_object* l_Std_PersistentHashMap_mod2Shift___boxed(lean_object*, lean_object*);
@ -4541,7 +4541,7 @@ lean_dec(x_1);
x_19 = l_Nat_repr(x_18);
x_20 = lean_string_append(x_17, x_19);
lean_dec(x_19);
x_21 = l_Std_Range_myMacro____x40_Init_Data_Range___hyg_369____closed__22;
x_21 = l_term_x7b_x7d___closed__5;
x_22 = lean_string_append(x_20, x_21);
return x_22;
}