// Lean compiler output
// Module: Init.Data.Array.Lex.Lemmas
// Imports: Init.Data.Array.Lex.Basic Init.Data.Array.Lemmas Init.Data.List.Lex
#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
LEAN_EXPORT lean_object* l_Array_instDecidableLTOfDecidableEq(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lex_Lemmas_0__Array_lex_match__1_splitter(lean_object*);
LEAN_EXPORT lean_object* l_Array_instDecidableLEOfDecidableEqOfDecidableLT___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_instTransLt(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Array_lex___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_instTransLeOfDecidableEqOfDecidableLTOfIrreflOfAsymmOfAntisymmOfNotLt(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__3;
static lean_object* l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___closed__1;
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__3(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lex_Lemmas_0__Array_lex_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__3(lean_object*);
LEAN_EXPORT lean_object* l_Array_instDecidableLEOfDecidableEqOfDecidableLT(lean_object*);
LEAN_EXPORT uint8_t l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_lex___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Array_instTransLeOfDecidableEqOfDecidableLTOfIrreflOfAsymmOfAntisymmOfNotLt___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__4;
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lex_Lemmas_0__Array_lex_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Array_instDecidableLEOfDecidableEqOfDecidableLT___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_instDecidableLTOfDecidableEq___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Array_instDecidableLTOfDecidableEq___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__1;
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__2(lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_fget(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lex_Lemmas_0__List_forIn_x27__cons_match__1_splitter(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_lex___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_instTransLt___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2(lean_object*);
lean_object* lean_array_get_size(lean_object*);
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1(lean_object*);
lean_object* lean_nat_add(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lex_Lemmas_0__List_forIn_x27__cons_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__2;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lex_Lemmas_0__Array_lex_match__1_splitter___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_dec(x_3);
lean_inc(x_2);
return x_2;
}
else
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_1(x_3, x_4);
return x_5;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lex_Lemmas_0__Array_lex_match__1_splitter(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l___private_Init_Data_Array_Lex_Lemmas_0__Array_lex_match__1_splitter___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lex_Lemmas_0__Array_lex_match__1_splitter___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Init_Data_Array_Lex_Lemmas_0__Array_lex_match__1_splitter___rarg(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lex_Lemmas_0__List_forIn_x27__cons_match__1_splitter___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; lean_object* x_5; 
lean_dec(x_3);
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_1(x_2, x_4);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_2);
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_apply_1(x_3, x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Lex_Lemmas_0__List_forIn_x27__cons_match__1_splitter(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l___private_Init_Data_Array_Lex_Lemmas_0__List_forIn_x27__cons_match__1_splitter___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Array_instTransLt(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
return lean_box(0);
}
}
LEAN_EXPORT lean_object* l_Array_instTransLt___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Array_instTransLt(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Array_instTransLeOfDecidableEqOfDecidableLTOfIrreflOfAsymmOfAntisymmOfNotLt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
return lean_box(0);
}
}
LEAN_EXPORT lean_object* l_Array_instTransLeOfDecidableEqOfDecidableLTOfIrreflOfAsymmOfAntisymmOfNotLt___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Array_instTransLeOfDecidableEqOfDecidableLTOfIrreflOfAsymmOfAntisymmOfNotLt(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_9;
}
}
static lean_object* _init_l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__1() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 0;
x_2 = lean_box(x_1);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
static lean_object* _init_l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__1;
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__3() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = lean_box(x_1);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
static lean_object* _init_l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__3;
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; uint8_t x_12; 
x_11 = lean_ctor_get(x_6, 1);
x_12 = lean_nat_dec_lt(x_8, x_11);
if (x_12 == 0)
{
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
lean_inc(x_7);
return x_7;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_13 = lean_array_fget(x_2, x_8);
x_14 = lean_array_fget(x_3, x_8);
lean_inc(x_4);
lean_inc(x_14);
lean_inc(x_13);
x_15 = lean_apply_2(x_4, x_13, x_14);
x_16 = lean_unbox(x_15);
lean_dec(x_15);
if (x_16 == 0)
{
lean_object* x_17; uint8_t x_18; 
lean_inc(x_1);
x_17 = lean_apply_2(x_1, x_13, x_14);
x_18 = lean_unbox(x_17);
lean_dec(x_17);
if (x_18 == 0)
{
lean_object* x_19; 
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
x_19 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__2;
return x_19;
}
else
{
lean_object* x_20; lean_object* x_21; 
x_20 = lean_ctor_get(x_6, 2);
x_21 = lean_nat_add(x_8, x_20);
lean_dec(x_8);
{
lean_object* _tmp_6 = x_5;
lean_object* _tmp_7 = x_21;
lean_object* _tmp_8 = lean_box(0);
lean_object* _tmp_9 = lean_box(0);
x_7 = _tmp_6;
x_8 = _tmp_7;
x_9 = _tmp_8;
x_10 = _tmp_9;
}
goto _start;
}
}
else
{
lean_object* x_23; 
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
x_23 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__4;
return x_23;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___boxed), 10, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; uint8_t x_12; 
x_11 = lean_ctor_get(x_6, 1);
x_12 = lean_nat_dec_lt(x_8, x_11);
if (x_12 == 0)
{
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
lean_inc(x_7);
return x_7;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_13 = lean_array_fget(x_2, x_8);
x_14 = lean_array_fget(x_3, x_8);
lean_inc(x_4);
lean_inc(x_14);
lean_inc(x_13);
x_15 = lean_apply_2(x_4, x_13, x_14);
x_16 = lean_unbox(x_15);
lean_dec(x_15);
if (x_16 == 0)
{
lean_object* x_17; uint8_t x_18; 
lean_inc(x_1);
x_17 = lean_apply_2(x_1, x_13, x_14);
x_18 = lean_unbox(x_17);
lean_dec(x_17);
if (x_18 == 0)
{
lean_object* x_19; 
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
x_19 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__2;
return x_19;
}
else
{
lean_object* x_20; lean_object* x_21; 
x_20 = lean_ctor_get(x_6, 2);
x_21 = lean_nat_add(x_8, x_20);
lean_dec(x_8);
{
lean_object* _tmp_6 = x_5;
lean_object* _tmp_7 = x_21;
lean_object* _tmp_8 = lean_box(0);
lean_object* _tmp_9 = lean_box(0);
x_7 = _tmp_6;
x_8 = _tmp_7;
x_9 = _tmp_8;
x_10 = _tmp_9;
}
goto _start;
}
}
else
{
lean_object* x_23; 
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
x_23 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__4;
return x_23;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__3___rarg___boxed), 10, 0);
return x_2;
}
}
LEAN_EXPORT uint8_t l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_nat_dec_lt(x_1, x_2);
return x_4;
}
}
static lean_object* _init_l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_5 = lean_array_get_size(x_2);
x_6 = lean_array_get_size(x_3);
x_7 = lean_nat_dec_le(x_5, x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = lean_unsigned_to_nat(1u);
lean_inc(x_6);
x_10 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_10, 0, x_8);
lean_ctor_set(x_10, 1, x_6);
lean_ctor_set(x_10, 2, x_9);
x_11 = l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___closed__1;
x_12 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg(x_1, x_2, x_3, x_4, x_11, x_10, x_11, x_8, lean_box(0), lean_box(0));
lean_dec(x_10);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
lean_dec(x_12);
if (lean_obj_tag(x_13) == 0)
{
uint8_t x_14; 
x_14 = lean_nat_dec_lt(x_5, x_6);
lean_dec(x_6);
lean_dec(x_5);
return x_14;
}
else
{
lean_object* x_15; uint8_t x_16; 
lean_dec(x_6);
lean_dec(x_5);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
lean_dec(x_13);
x_16 = lean_unbox(x_15);
lean_dec(x_15);
return x_16;
}
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_17 = lean_unsigned_to_nat(0u);
x_18 = lean_unsigned_to_nat(1u);
lean_inc(x_5);
x_19 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_5);
lean_ctor_set(x_19, 2, x_18);
x_20 = l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___closed__1;
x_21 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__3___rarg(x_1, x_2, x_3, x_4, x_20, x_19, x_20, x_17, lean_box(0), lean_box(0));
lean_dec(x_19);
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
lean_dec(x_21);
if (lean_obj_tag(x_22) == 0)
{
uint8_t x_23; 
x_23 = lean_nat_dec_lt(x_5, x_6);
lean_dec(x_6);
lean_dec(x_5);
return x_23;
}
else
{
lean_object* x_24; uint8_t x_25; 
lean_dec(x_6);
lean_dec(x_5);
x_24 = lean_ctor_get(x_22, 0);
lean_inc(x_24);
lean_dec(x_22);
x_25 = lean_unbox(x_24);
lean_dec(x_24);
return x_25;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___boxed), 4, 0);
return x_2;
}
}
LEAN_EXPORT uint8_t l_Array_instDecidableLTOfDecidableEq___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; 
x_6 = l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg(x_1, x_4, x_5, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Array_instDecidableLTOfDecidableEq(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Array_instDecidableLTOfDecidableEq___rarg___boxed), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___lambda__1(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
x_6 = lean_box(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Array_instDecidableLTOfDecidableEq___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = l_Array_instDecidableLTOfDecidableEq___rarg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
x_7 = lean_box(x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; uint8_t x_12; 
x_11 = lean_ctor_get(x_6, 1);
x_12 = lean_nat_dec_lt(x_8, x_11);
if (x_12 == 0)
{
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
lean_inc(x_7);
return x_7;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_13 = lean_array_fget(x_2, x_8);
x_14 = lean_array_fget(x_3, x_8);
lean_inc(x_4);
lean_inc(x_14);
lean_inc(x_13);
x_15 = lean_apply_2(x_4, x_13, x_14);
x_16 = lean_unbox(x_15);
lean_dec(x_15);
if (x_16 == 0)
{
lean_object* x_17; uint8_t x_18; 
lean_inc(x_1);
x_17 = lean_apply_2(x_1, x_13, x_14);
x_18 = lean_unbox(x_17);
lean_dec(x_17);
if (x_18 == 0)
{
lean_object* x_19; 
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
x_19 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__2;
return x_19;
}
else
{
lean_object* x_20; lean_object* x_21; 
x_20 = lean_ctor_get(x_6, 2);
x_21 = lean_nat_add(x_8, x_20);
lean_dec(x_8);
{
lean_object* _tmp_6 = x_5;
lean_object* _tmp_7 = x_21;
lean_object* _tmp_8 = lean_box(0);
lean_object* _tmp_9 = lean_box(0);
x_7 = _tmp_6;
x_8 = _tmp_7;
x_9 = _tmp_8;
x_10 = _tmp_9;
}
goto _start;
}
}
else
{
lean_object* x_23; 
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
x_23 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__4;
return x_23;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__2___rarg___boxed), 10, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; uint8_t x_12; 
x_11 = lean_ctor_get(x_6, 1);
x_12 = lean_nat_dec_lt(x_8, x_11);
if (x_12 == 0)
{
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
lean_inc(x_7);
return x_7;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_13 = lean_array_fget(x_2, x_8);
x_14 = lean_array_fget(x_3, x_8);
lean_inc(x_4);
lean_inc(x_14);
lean_inc(x_13);
x_15 = lean_apply_2(x_4, x_13, x_14);
x_16 = lean_unbox(x_15);
lean_dec(x_15);
if (x_16 == 0)
{
lean_object* x_17; uint8_t x_18; 
lean_inc(x_1);
x_17 = lean_apply_2(x_1, x_13, x_14);
x_18 = lean_unbox(x_17);
lean_dec(x_17);
if (x_18 == 0)
{
lean_object* x_19; 
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
x_19 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__2;
return x_19;
}
else
{
lean_object* x_20; lean_object* x_21; 
x_20 = lean_ctor_get(x_6, 2);
x_21 = lean_nat_add(x_8, x_20);
lean_dec(x_8);
{
lean_object* _tmp_6 = x_5;
lean_object* _tmp_7 = x_21;
lean_object* _tmp_8 = lean_box(0);
lean_object* _tmp_9 = lean_box(0);
x_7 = _tmp_6;
x_8 = _tmp_7;
x_9 = _tmp_8;
x_10 = _tmp_9;
}
goto _start;
}
}
else
{
lean_object* x_23; 
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
x_23 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__4;
return x_23;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__3___rarg___boxed), 10, 0);
return x_2;
}
}
LEAN_EXPORT uint8_t l_Array_lex___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_5 = lean_array_get_size(x_2);
x_6 = lean_array_get_size(x_3);
x_7 = lean_nat_dec_le(x_5, x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = lean_unsigned_to_nat(1u);
lean_inc(x_6);
x_10 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_10, 0, x_8);
lean_ctor_set(x_10, 1, x_6);
lean_ctor_set(x_10, 2, x_9);
x_11 = l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___closed__1;
x_12 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__2___rarg(x_1, x_2, x_3, x_4, x_11, x_10, x_11, x_8, lean_box(0), lean_box(0));
lean_dec(x_10);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
lean_dec(x_12);
if (lean_obj_tag(x_13) == 0)
{
uint8_t x_14; 
x_14 = lean_nat_dec_lt(x_5, x_6);
lean_dec(x_6);
lean_dec(x_5);
return x_14;
}
else
{
lean_object* x_15; uint8_t x_16; 
lean_dec(x_6);
lean_dec(x_5);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
lean_dec(x_13);
x_16 = lean_unbox(x_15);
lean_dec(x_15);
return x_16;
}
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_17 = lean_unsigned_to_nat(0u);
x_18 = lean_unsigned_to_nat(1u);
lean_inc(x_5);
x_19 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_5);
lean_ctor_set(x_19, 2, x_18);
x_20 = l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___closed__1;
x_21 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__3___rarg(x_1, x_2, x_3, x_4, x_20, x_19, x_20, x_17, lean_box(0), lean_box(0));
lean_dec(x_19);
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
lean_dec(x_21);
if (lean_obj_tag(x_22) == 0)
{
uint8_t x_23; 
x_23 = lean_nat_dec_lt(x_5, x_6);
lean_dec(x_6);
lean_dec(x_5);
return x_23;
}
else
{
lean_object* x_24; uint8_t x_25; 
lean_dec(x_6);
lean_dec(x_5);
x_24 = lean_ctor_get(x_22, 0);
lean_inc(x_24);
lean_dec(x_22);
x_25 = lean_unbox(x_24);
lean_dec(x_24);
return x_25;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_lex___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Array_lex___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__1___rarg___boxed), 4, 0);
return x_2;
}
}
LEAN_EXPORT uint8_t l_Array_instDecidableLEOfDecidableEqOfDecidableLT___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; 
x_6 = l_Array_lex___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__1___rarg(x_1, x_5, x_4, x_3);
if (x_6 == 0)
{
uint8_t x_7; 
x_7 = 1;
return x_7;
}
else
{
uint8_t x_8; 
x_8 = 0;
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Array_instDecidableLEOfDecidableEqOfDecidableLT(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Array_instDecidableLEOfDecidableEqOfDecidableLT___rarg___boxed), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = l_Std_Range_forIn_x27_loop___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Array_lex___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = l_Array_lex___at_Array_instDecidableLEOfDecidableEqOfDecidableLT___spec__1___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
x_6 = lean_box(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Array_instDecidableLEOfDecidableEqOfDecidableLT___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = l_Array_instDecidableLEOfDecidableEqOfDecidableLT___rarg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
x_7 = lean_box(x_6);
return x_7;
}
}
lean_object* initialize_Init_Data_Array_Lex_Basic(uint8_t builtin, lean_object*);
lean_object* initialize_Init_Data_Array_Lemmas(uint8_t builtin, lean_object*);
lean_object* initialize_Init_Data_List_Lex(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Init_Data_Array_Lex_Lemmas(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_Data_Array_Lex_Basic(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Data_Array_Lemmas(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Data_List_Lex(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__1 = _init_l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__1();
lean_mark_persistent(l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__1);
l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__2 = _init_l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__2();
lean_mark_persistent(l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__2);
l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__3 = _init_l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__3();
lean_mark_persistent(l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__3);
l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__4 = _init_l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__4();
lean_mark_persistent(l_Std_Range_forIn_x27_loop___at_Array_instDecidableLTOfDecidableEq___spec__2___rarg___closed__4);
l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___closed__1 = _init_l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___closed__1();
lean_mark_persistent(l_Array_lex___at_Array_instDecidableLTOfDecidableEq___spec__1___rarg___closed__1);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
