// Lean compiler output
// Module: Std.Data.Iterators.Basic
// Imports: Init.Core Init.Classical Init.NotationExtra Init.TacticsExtra
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__44;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__46;
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_Step_toMonadic(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__34;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__4;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__41;
LEAN_EXPORT lean_object* l_Std_Iterators_instWellFoundedRelationProductiveOfProductive___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_Step_toPure___rarg(lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__5;
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_toIterM(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_toIterM___rarg___boxed(lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__28;
LEAN_EXPORT lean_object* l_Std_Iterators_IterStep_mapIterator___rarg(lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__7;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__13;
LEAN_EXPORT lean_object* l_Std_Iterators_PlausibleIterStep_casesOn___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__3;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__42;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__10;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__2;
LEAN_EXPORT lean_object* l_Std_Iterators_PlausibleIterStep_done(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_PlausibleIterStep_skip(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__31;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__3;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__7;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__1;
LEAN_EXPORT lean_object* l_Std_Iterators_PlausibleIterStep_yield(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__30;
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__13;
LEAN_EXPORT lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_Step_toMonadic___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySkips___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_PlausibleIterStep_skip___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_toIterM___rarg(lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__4;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__43;
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_step___rarg(lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__35;
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_toIter___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_step(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__20;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__1;
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySkips(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySteps___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_toIter___rarg___boxed(lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__1;
lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Std_Iterators_instWellFoundedRelationProductiveOfProductive(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySteps___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_IterStep_successor___rarg(lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__23;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__4;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__40;
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySteps___rarg___boxed(lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__16;
lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__5;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__17;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__3;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__32;
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_step___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_PlausibleIterStep_yield___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_toIterM___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__14;
lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__8;
LEAN_EXPORT lean_object* l_Std_Iterators_IterStep_successor(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_Step_toMonadic___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySkips___rarg(lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__15;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__2;
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySkips(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__29;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__5;
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySteps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_step(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySkips___rarg(lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__12;
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_Step_toPure___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySkips___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_toIterM(lean_object*);
lean_object* l_Lean_Name_mkStr6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__8;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__12;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__1;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__9;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__11;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__6;
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_toIter(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_instWellFoundedRelationFiniteOfFinite(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySteps___rarg(lean_object*);
lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__38;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__27;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__36;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__39;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__18;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__24;
LEAN_EXPORT lean_object* l_Std_Iterators_PlausibleIterStep_casesOn(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_toIterM___rarg___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__45;
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySteps(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__6;
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySteps___rarg(lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__26;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__10;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__4;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__33;
LEAN_EXPORT lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__6;
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__5;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__21;
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_Step_toPure(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__6;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__2;
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySkips___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__7;
LEAN_EXPORT lean_object* l_Std_Iterators_IterStep_mapIterator(lean_object*, lean_object*, lean_object*);
lean_object* l_String_toSubstring_x27(lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__47;
LEAN_EXPORT lean_object* l_Std_Iterators_instWellFoundedRelationFiniteOfFinite___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__37;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__9;
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySteps___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__11;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__19;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__3;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__2;
static lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__22;
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySkips___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_toIterM___rarg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_toIterM(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_Iterators_Iter_toIterM___rarg___boxed), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_toIterM___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_Iterators_Iter_toIterM___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_toIter___rarg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_toIter(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_Iterators_IterM_toIter___rarg___boxed), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_toIter___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_Iterators_IterM_toIter___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterStep_successor___rarg(lean_object* x_1) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
lean_dec(x_1);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
case 1:
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_1);
if (x_4 == 0)
{
return x_1;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
lean_dec(x_1);
x_6 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
default: 
{
lean_object* x_7; 
x_7 = lean_box(0);
return x_7;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterStep_successor(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_Iterators_IterStep_successor___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterStep_mapIterator___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_2)) {
case 0:
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_2, 0);
x_5 = lean_apply_1(x_1, x_4);
lean_ctor_set(x_2, 0, x_5);
return x_2;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_6 = lean_ctor_get(x_2, 0);
x_7 = lean_ctor_get(x_2, 1);
lean_inc(x_7);
lean_inc(x_6);
lean_dec(x_2);
x_8 = lean_apply_1(x_1, x_6);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_9, 1, x_7);
return x_9;
}
}
case 1:
{
uint8_t x_10; 
x_10 = !lean_is_exclusive(x_2);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; 
x_11 = lean_ctor_get(x_2, 0);
x_12 = lean_apply_1(x_1, x_11);
lean_ctor_set(x_2, 0, x_12);
return x_2;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = lean_ctor_get(x_2, 0);
lean_inc(x_13);
lean_dec(x_2);
x_14 = lean_apply_1(x_1, x_13);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
return x_15;
}
}
default: 
{
lean_object* x_16; 
lean_dec(x_1);
x_16 = lean_box(2);
return x_16;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterStep_mapIterator(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_Iterators_IterStep_mapIterator___rarg), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_PlausibleIterStep_yield___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_PlausibleIterStep_yield(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_Iterators_PlausibleIterStep_yield___rarg), 3, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_PlausibleIterStep_skip___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_PlausibleIterStep_skip(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_Iterators_PlausibleIterStep_skip___rarg), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_PlausibleIterStep_done(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_box(2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_PlausibleIterStep_casesOn___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
lean_dec(x_4);
lean_dec(x_3);
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_apply_3(x_2, x_5, x_6, lean_box(0));
return x_7;
}
case 1:
{
lean_object* x_8; lean_object* x_9; 
lean_dec(x_4);
lean_dec(x_2);
x_8 = lean_ctor_get(x_1, 0);
lean_inc(x_8);
lean_dec(x_1);
x_9 = lean_apply_2(x_3, x_8, lean_box(0));
return x_9;
}
default: 
{
lean_object* x_10; 
lean_dec(x_3);
lean_dec(x_2);
x_10 = lean_apply_1(x_4, lean_box(0));
return x_10;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_PlausibleIterStep_casesOn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_closure((void*)(l_Std_Iterators_PlausibleIterStep_casesOn___rarg), 4, 0);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_toIterM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_toIterM(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_Iterators_toIterM___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_toIterM___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_Iterators_toIterM___rarg(x_1, x_2, x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_step___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_apply_1(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_step(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_Iterators_IterM_step___rarg), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_Step_toMonadic___rarg(lean_object* x_1) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
return x_1;
}
else
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
lean_inc(x_3);
lean_dec(x_1);
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_3);
lean_ctor_set(x_5, 1, x_4);
return x_5;
}
}
case 1:
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_1);
if (x_6 == 0)
{
return x_1;
}
else
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
lean_dec(x_1);
x_8 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_8, 0, x_7);
return x_8;
}
}
default: 
{
lean_object* x_9; 
x_9 = lean_box(2);
return x_9;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_Step_toMonadic(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_closure((void*)(l_Std_Iterators_Iter_Step_toMonadic___rarg), 1, 0);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_Step_toMonadic___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_Iterators_Iter_Step_toMonadic(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_Step_toPure___rarg(lean_object* x_1) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
return x_1;
}
else
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
lean_inc(x_3);
lean_dec(x_1);
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_3);
lean_ctor_set(x_5, 1, x_4);
return x_5;
}
}
case 1:
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_1);
if (x_6 == 0)
{
return x_1;
}
else
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
lean_dec(x_1);
x_8 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_8, 0, x_7);
return x_8;
}
}
default: 
{
lean_object* x_9; 
x_9 = lean_box(2);
return x_9;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_Step_toPure(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_closure((void*)(l_Std_Iterators_IterM_Step_toPure___rarg), 1, 0);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_Step_toPure___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_Iterators_IterM_Step_toPure(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_step___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_apply_1(x_1, x_2);
switch (lean_obj_tag(x_3)) {
case 0:
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
lean_inc(x_5);
lean_dec(x_3);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set(x_7, 1, x_6);
return x_7;
}
}
case 1:
{
uint8_t x_8; 
x_8 = !lean_is_exclusive(x_3);
if (x_8 == 0)
{
return x_3;
}
else
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_ctor_get(x_3, 0);
lean_inc(x_9);
lean_dec(x_3);
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_9);
return x_10;
}
}
default: 
{
lean_object* x_11; 
x_11 = lean_box(2);
return x_11;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_step(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_Iterators_Iter_step___rarg), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_instWellFoundedRelationFiniteOfFinite(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = lean_box(0);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_instWellFoundedRelationFiniteOfFinite___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_Iterators_instWellFoundedRelationFiniteOfFinite(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySteps___rarg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySteps(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = lean_alloc_closure((void*)(l_Std_Iterators_IterM_finitelyManySteps___rarg___boxed), 1, 0);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySteps___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_Iterators_IterM_finitelyManySteps___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySteps___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_Iterators_IterM_finitelyManySteps(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_4);
return x_6;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("tacticDecreasing_trivial", 24, 24);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Parser", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Tactic", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("first", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__3;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__4;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__5;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__6;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__8;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("group", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__10;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("|", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("tacticSeq", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__3;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__4;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__5;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__13;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("tacticSeq1Indented", 18, 18);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__3;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__4;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__5;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__15;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__17() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("exact", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__3;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__4;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__5;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__17;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__19() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Term", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__20() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("app", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__3;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__4;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__19;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__20;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__22() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("IterM.TerminationMeasures.Finite.rel_of_yield", 45, 45);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__23() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__22;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__24() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("IterM", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("TerminationMeasures", 19, 19);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__26() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Finite", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__27() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("rel_of_yield", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__28() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__24;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__26;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__27;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__29() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Std", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__30() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Iterators", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__31() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__29;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__30;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__24;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25;
x_5 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__26;
x_6 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__27;
x_7 = l_Lean_Name_mkStr6(x_1, x_2, x_3, x_4, x_5, x_6);
return x_7;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__32() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__31;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__33() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__32;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__34() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("term‹_›", 11, 7);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__35() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__34;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__36() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("‹", 3, 1);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__37() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("hole", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__38() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__3;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__4;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__19;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__37;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__39() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__40() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("›", 3, 1);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__41() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("IterM.TerminationMeasures.Finite.rel_of_skip", 44, 44);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__42() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__41;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__43() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("rel_of_skip", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__44() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__24;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__26;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__43;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__45() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__29;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__30;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__24;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25;
x_5 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__26;
x_6 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__43;
x_7 = l_Lean_Name_mkStr6(x_1, x_2, x_3, x_4, x_5, x_6);
return x_7;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__46() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__45;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__47() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__46;
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_EXPORT lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__2;
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_2);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; 
x_8 = lean_ctor_get(x_2, 5);
lean_inc(x_8);
x_9 = 0;
x_10 = l_Lean_SourceInfo_fromRef(x_8, x_9);
lean_dec(x_8);
x_11 = lean_ctor_get(x_2, 2);
lean_inc(x_11);
x_12 = lean_ctor_get(x_2, 1);
lean_inc(x_12);
lean_dec(x_2);
x_13 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__6;
lean_inc(x_10);
x_14 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_14, 0, x_10);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__12;
lean_inc(x_10);
x_16 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_16, 0, x_10);
lean_ctor_set(x_16, 1, x_15);
x_17 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__17;
lean_inc(x_10);
x_18 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_18, 0, x_10);
lean_ctor_set(x_18, 1, x_17);
x_19 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__28;
lean_inc(x_11);
lean_inc(x_12);
x_20 = l_Lean_addMacroScope(x_12, x_19, x_11);
x_21 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__23;
x_22 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__33;
lean_inc(x_10);
x_23 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_23, 0, x_10);
lean_ctor_set(x_23, 1, x_21);
lean_ctor_set(x_23, 2, x_20);
lean_ctor_set(x_23, 3, x_22);
x_24 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__36;
lean_inc(x_10);
x_25 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_25, 0, x_10);
lean_ctor_set(x_25, 1, x_24);
x_26 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__39;
lean_inc(x_10);
x_27 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_27, 0, x_10);
lean_ctor_set(x_27, 1, x_26);
x_28 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__38;
lean_inc(x_10);
x_29 = l_Lean_Syntax_node1(x_10, x_28, x_27);
x_30 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__40;
lean_inc(x_10);
x_31 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_31, 0, x_10);
lean_ctor_set(x_31, 1, x_30);
x_32 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__35;
lean_inc(x_10);
x_33 = l_Lean_Syntax_node3(x_10, x_32, x_25, x_29, x_31);
x_34 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__9;
lean_inc(x_10);
x_35 = l_Lean_Syntax_node1(x_10, x_34, x_33);
x_36 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__21;
lean_inc(x_35);
lean_inc(x_10);
x_37 = l_Lean_Syntax_node2(x_10, x_36, x_23, x_35);
x_38 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__18;
lean_inc(x_18);
lean_inc(x_10);
x_39 = l_Lean_Syntax_node2(x_10, x_38, x_18, x_37);
lean_inc(x_10);
x_40 = l_Lean_Syntax_node1(x_10, x_34, x_39);
x_41 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__16;
lean_inc(x_10);
x_42 = l_Lean_Syntax_node1(x_10, x_41, x_40);
x_43 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__14;
lean_inc(x_10);
x_44 = l_Lean_Syntax_node1(x_10, x_43, x_42);
x_45 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__11;
lean_inc(x_16);
lean_inc(x_10);
x_46 = l_Lean_Syntax_node2(x_10, x_45, x_16, x_44);
x_47 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__44;
x_48 = l_Lean_addMacroScope(x_12, x_47, x_11);
x_49 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__42;
x_50 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__47;
lean_inc(x_10);
x_51 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_51, 0, x_10);
lean_ctor_set(x_51, 1, x_49);
lean_ctor_set(x_51, 2, x_48);
lean_ctor_set(x_51, 3, x_50);
lean_inc(x_10);
x_52 = l_Lean_Syntax_node2(x_10, x_36, x_51, x_35);
lean_inc(x_10);
x_53 = l_Lean_Syntax_node2(x_10, x_38, x_18, x_52);
lean_inc(x_10);
x_54 = l_Lean_Syntax_node1(x_10, x_34, x_53);
lean_inc(x_10);
x_55 = l_Lean_Syntax_node1(x_10, x_41, x_54);
lean_inc(x_10);
x_56 = l_Lean_Syntax_node1(x_10, x_43, x_55);
lean_inc(x_10);
x_57 = l_Lean_Syntax_node2(x_10, x_45, x_16, x_56);
lean_inc(x_10);
x_58 = l_Lean_Syntax_node2(x_10, x_34, x_46, x_57);
x_59 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__7;
x_60 = l_Lean_Syntax_node2(x_10, x_59, x_14, x_58);
x_61 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_61, 0, x_60);
lean_ctor_set(x_61, 1, x_3);
return x_61;
}
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySteps___rarg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySteps(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_closure((void*)(l_Std_Iterators_Iter_finitelyManySteps___rarg___boxed), 1, 0);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySteps___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_Iterators_Iter_finitelyManySteps___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySteps___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_Iterators_Iter_finitelyManySteps(x_1, x_2, x_3, x_4);
lean_dec(x_3);
return x_5;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Iter.TerminationMeasures.Finite.rel_of_yield", 44, 44);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__1;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Iter", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__3;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__26;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__27;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__29;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__30;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__3;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25;
x_5 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__26;
x_6 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__27;
x_7 = l_Lean_Name_mkStr6(x_1, x_2, x_3, x_4, x_5, x_6);
return x_7;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___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);
return x_3;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__6;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Iter.TerminationMeasures.Finite.rel_of_skip", 43, 43);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__8;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__3;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__26;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__43;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__29;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__30;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__3;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25;
x_5 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__26;
x_6 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__43;
x_7 = l_Lean_Name_mkStr6(x_1, x_2, x_3, x_4, x_5, x_6);
return x_7;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__11;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__12;
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_EXPORT lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__2;
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_2);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; 
x_8 = lean_ctor_get(x_2, 5);
lean_inc(x_8);
x_9 = 0;
x_10 = l_Lean_SourceInfo_fromRef(x_8, x_9);
lean_dec(x_8);
x_11 = lean_ctor_get(x_2, 2);
lean_inc(x_11);
x_12 = lean_ctor_get(x_2, 1);
lean_inc(x_12);
lean_dec(x_2);
x_13 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__6;
lean_inc(x_10);
x_14 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_14, 0, x_10);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__12;
lean_inc(x_10);
x_16 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_16, 0, x_10);
lean_ctor_set(x_16, 1, x_15);
x_17 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__17;
lean_inc(x_10);
x_18 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_18, 0, x_10);
lean_ctor_set(x_18, 1, x_17);
x_19 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__4;
lean_inc(x_11);
lean_inc(x_12);
x_20 = l_Lean_addMacroScope(x_12, x_19, x_11);
x_21 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__2;
x_22 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__7;
lean_inc(x_10);
x_23 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_23, 0, x_10);
lean_ctor_set(x_23, 1, x_21);
lean_ctor_set(x_23, 2, x_20);
lean_ctor_set(x_23, 3, x_22);
x_24 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__36;
lean_inc(x_10);
x_25 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_25, 0, x_10);
lean_ctor_set(x_25, 1, x_24);
x_26 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__39;
lean_inc(x_10);
x_27 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_27, 0, x_10);
lean_ctor_set(x_27, 1, x_26);
x_28 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__38;
lean_inc(x_10);
x_29 = l_Lean_Syntax_node1(x_10, x_28, x_27);
x_30 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__40;
lean_inc(x_10);
x_31 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_31, 0, x_10);
lean_ctor_set(x_31, 1, x_30);
x_32 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__35;
lean_inc(x_10);
x_33 = l_Lean_Syntax_node3(x_10, x_32, x_25, x_29, x_31);
x_34 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__9;
lean_inc(x_10);
x_35 = l_Lean_Syntax_node1(x_10, x_34, x_33);
x_36 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__21;
lean_inc(x_35);
lean_inc(x_10);
x_37 = l_Lean_Syntax_node2(x_10, x_36, x_23, x_35);
x_38 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__18;
lean_inc(x_18);
lean_inc(x_10);
x_39 = l_Lean_Syntax_node2(x_10, x_38, x_18, x_37);
lean_inc(x_10);
x_40 = l_Lean_Syntax_node1(x_10, x_34, x_39);
x_41 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__16;
lean_inc(x_10);
x_42 = l_Lean_Syntax_node1(x_10, x_41, x_40);
x_43 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__14;
lean_inc(x_10);
x_44 = l_Lean_Syntax_node1(x_10, x_43, x_42);
x_45 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__11;
lean_inc(x_16);
lean_inc(x_10);
x_46 = l_Lean_Syntax_node2(x_10, x_45, x_16, x_44);
x_47 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__10;
x_48 = l_Lean_addMacroScope(x_12, x_47, x_11);
x_49 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__9;
x_50 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__13;
lean_inc(x_10);
x_51 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_51, 0, x_10);
lean_ctor_set(x_51, 1, x_49);
lean_ctor_set(x_51, 2, x_48);
lean_ctor_set(x_51, 3, x_50);
lean_inc(x_10);
x_52 = l_Lean_Syntax_node2(x_10, x_36, x_51, x_35);
lean_inc(x_10);
x_53 = l_Lean_Syntax_node2(x_10, x_38, x_18, x_52);
lean_inc(x_10);
x_54 = l_Lean_Syntax_node1(x_10, x_34, x_53);
lean_inc(x_10);
x_55 = l_Lean_Syntax_node1(x_10, x_41, x_54);
lean_inc(x_10);
x_56 = l_Lean_Syntax_node1(x_10, x_43, x_55);
lean_inc(x_10);
x_57 = l_Lean_Syntax_node2(x_10, x_45, x_16, x_56);
lean_inc(x_10);
x_58 = l_Lean_Syntax_node2(x_10, x_34, x_46, x_57);
x_59 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__7;
x_60 = l_Lean_Syntax_node2(x_10, x_59, x_14, x_58);
x_61 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_61, 0, x_60);
lean_ctor_set(x_61, 1, x_3);
return x_61;
}
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_instWellFoundedRelationProductiveOfProductive(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = lean_box(0);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_instWellFoundedRelationProductiveOfProductive___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_Iterators_instWellFoundedRelationProductiveOfProductive(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySkips___rarg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySkips(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = lean_alloc_closure((void*)(l_Std_Iterators_IterM_finitelyManySkips___rarg___boxed), 1, 0);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySkips___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_Iterators_IterM_finitelyManySkips___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_finitelyManySkips___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_Iterators_IterM_finitelyManySkips(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_4);
return x_6;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("IterM.TerminationMeasures.Productive.rel_of_skip", 48, 48);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__1;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Productive", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__24;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__3;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__43;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__29;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__30;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__24;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25;
x_5 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__3;
x_6 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__43;
x_7 = l_Lean_Name_mkStr6(x_1, x_2, x_3, x_4, x_5, x_6);
return x_7;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___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);
return x_3;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__6;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__2;
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_2);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_8 = lean_ctor_get(x_2, 5);
lean_inc(x_8);
x_9 = 0;
x_10 = l_Lean_SourceInfo_fromRef(x_8, x_9);
lean_dec(x_8);
x_11 = lean_ctor_get(x_2, 2);
lean_inc(x_11);
x_12 = lean_ctor_get(x_2, 1);
lean_inc(x_12);
lean_dec(x_2);
x_13 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__17;
lean_inc(x_10);
x_14 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_14, 0, x_10);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__4;
x_16 = l_Lean_addMacroScope(x_12, x_15, x_11);
x_17 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__2;
x_18 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__7;
lean_inc(x_10);
x_19 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_19, 0, x_10);
lean_ctor_set(x_19, 1, x_17);
lean_ctor_set(x_19, 2, x_16);
lean_ctor_set(x_19, 3, x_18);
x_20 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__36;
lean_inc(x_10);
x_21 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_21, 0, x_10);
lean_ctor_set(x_21, 1, x_20);
x_22 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__39;
lean_inc(x_10);
x_23 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_23, 0, x_10);
lean_ctor_set(x_23, 1, x_22);
x_24 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__38;
lean_inc(x_10);
x_25 = l_Lean_Syntax_node1(x_10, x_24, x_23);
x_26 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__40;
lean_inc(x_10);
x_27 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_27, 0, x_10);
lean_ctor_set(x_27, 1, x_26);
x_28 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__35;
lean_inc(x_10);
x_29 = l_Lean_Syntax_node3(x_10, x_28, x_21, x_25, x_27);
x_30 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__9;
lean_inc(x_10);
x_31 = l_Lean_Syntax_node1(x_10, x_30, x_29);
x_32 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__21;
lean_inc(x_10);
x_33 = l_Lean_Syntax_node2(x_10, x_32, x_19, x_31);
x_34 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__18;
x_35 = l_Lean_Syntax_node2(x_10, x_34, x_14, x_33);
x_36 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_36, 0, x_35);
lean_ctor_set(x_36, 1, x_3);
return x_36;
}
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySkips___rarg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySkips(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_closure((void*)(l_Std_Iterators_Iter_finitelyManySkips___rarg___boxed), 1, 0);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySkips___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_Iterators_Iter_finitelyManySkips___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_finitelyManySkips___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_Iterators_Iter_finitelyManySkips(x_1, x_2, x_3, x_4);
lean_dec(x_3);
return x_5;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Iter.TerminationMeasures.Productive.rel_of_skip", 47, 47);
return x_1;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__1;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__3;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__3;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__43;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_1 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__29;
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__30;
x_3 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__3;
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25;
x_5 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__3;
x_6 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__43;
x_7 = l_Lean_Name_mkStr6(x_1, x_2, x_3, x_4, x_5, x_6);
return x_7;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__4;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___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);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__2;
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_2);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_8 = lean_ctor_get(x_2, 5);
lean_inc(x_8);
x_9 = 0;
x_10 = l_Lean_SourceInfo_fromRef(x_8, x_9);
lean_dec(x_8);
x_11 = lean_ctor_get(x_2, 2);
lean_inc(x_11);
x_12 = lean_ctor_get(x_2, 1);
lean_inc(x_12);
lean_dec(x_2);
x_13 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__17;
lean_inc(x_10);
x_14 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_14, 0, x_10);
lean_ctor_set(x_14, 1, x_13);
x_15 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__3;
x_16 = l_Lean_addMacroScope(x_12, x_15, x_11);
x_17 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__2;
x_18 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__6;
lean_inc(x_10);
x_19 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_19, 0, x_10);
lean_ctor_set(x_19, 1, x_17);
lean_ctor_set(x_19, 2, x_16);
lean_ctor_set(x_19, 3, x_18);
x_20 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__36;
lean_inc(x_10);
x_21 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_21, 0, x_10);
lean_ctor_set(x_21, 1, x_20);
x_22 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__39;
lean_inc(x_10);
x_23 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_23, 0, x_10);
lean_ctor_set(x_23, 1, x_22);
x_24 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__38;
lean_inc(x_10);
x_25 = l_Lean_Syntax_node1(x_10, x_24, x_23);
x_26 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__40;
lean_inc(x_10);
x_27 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_27, 0, x_10);
lean_ctor_set(x_27, 1, x_26);
x_28 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__35;
lean_inc(x_10);
x_29 = l_Lean_Syntax_node3(x_10, x_28, x_21, x_25, x_27);
x_30 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__9;
lean_inc(x_10);
x_31 = l_Lean_Syntax_node1(x_10, x_30, x_29);
x_32 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__21;
lean_inc(x_10);
x_33 = l_Lean_Syntax_node2(x_10, x_32, x_19, x_31);
x_34 = l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__18;
x_35 = l_Lean_Syntax_node2(x_10, x_34, x_14, x_33);
x_36 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_36, 0, x_35);
lean_ctor_set(x_36, 1, x_3);
return x_36;
}
}
}
lean_object* initialize_Init_Core(uint8_t builtin, lean_object*);
lean_object* initialize_Init_Classical(uint8_t builtin, lean_object*);
lean_object* initialize_Init_NotationExtra(uint8_t builtin, lean_object*);
lean_object* initialize_Init_TacticsExtra(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Std_Data_Iterators_Basic(uint8_t builtin, lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Init_Core(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Classical(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_NotationExtra(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_TacticsExtra(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__1 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__1();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__1);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__2 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__2();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__2);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__3 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__3();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__3);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__4 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__4();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__4);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__5 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__5();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__5);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__6 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__6();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__6);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__7 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__7();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__7);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__8 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__8();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__8);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__9 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__9();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__9);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__10 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__10();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__10);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__11 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__11();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__11);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__12 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__12();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__12);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__13 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__13();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__13);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__14 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__14();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__14);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__15 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__15();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__15);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__16 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__16();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__16);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__17 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__17();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__17);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__18 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__18();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__18);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__19 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__19();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__19);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__20 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__20();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__20);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__21 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__21();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__21);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__22 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__22();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__22);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__23 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__23();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__23);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__24 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__24();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__24);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__25);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__26 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__26();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__26);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__27 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__27();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__27);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__28 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__28();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__28);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__29 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__29();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__29);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__30 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__30();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__30);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__31 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__31();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__31);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__32 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__32();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__32);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__33 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__33();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__33);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__34 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__34();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__34);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__35 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__35();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__35);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__36 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__36();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__36);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__37 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__37();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__37);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__38 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__38();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__38);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__39 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__39();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__39);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__40 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__40();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__40);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__41 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__41();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__41);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__42 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__42();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__42);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__43 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__43();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__43);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__44 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__44();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__44);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__45 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__45();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__45);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__46 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__46();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__46);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__47 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__47();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__1___closed__47);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__1 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__1();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__1);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__2 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__2();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__2);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__3 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__3();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__3);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__4 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__4();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__4);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__5 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__5();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__5);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__6 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__6();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__6);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__7 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__7();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__7);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__8 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__8();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__8);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__9 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__9();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__9);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__10 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__10();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__10);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__11 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__11();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__11);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__12 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__12();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__12);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__13 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__13();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__2___closed__13);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__1 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__1();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__1);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__2 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__2();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__2);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__3 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__3();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__3);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__4 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__4();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__4);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__5 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__5();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__5);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__6 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__6();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__6);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__7 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__7();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__3___closed__7);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__1 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__1();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__1);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__2 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__2();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__2);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__3 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__3();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__3);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__4 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__4();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__4);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__5 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__5();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__5);
l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__6 = _init_l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__6();
lean_mark_persistent(l_Std_Iterators___aux__Std__Data__Iterators__Basic______macroRules__tacticDecreasing__trivial__4___closed__6);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
