diff --git a/source/IntegrationTests/DynamicsDebug.mmt b/source/IntegrationTests/DynamicsDebug.mmt index c8ffd6fdc03d3acc4f703861ebed54aa13a47497..b08b341886e461d63d82a76f2eaf666cf40e6597 100644 --- a/source/IntegrationTests/DynamicsDebug.mmt +++ b/source/IntegrationTests/DynamicsDebug.mmt @@ -18,6 +18,12 @@ theory StepUntilDebug = //my_list: ℠☠= stepUntil â„ 0.0 ([x: â„] plus_real_lit x 1.0) ([x: â„] leq_real_lit 10.0 x) â™ âš +theory GetListAtIndDebug = + include ☞http://mathhub.info/FrameIT/frameworld?GetListAtInd â™ + //my_list: List[â„] ☠= (cons 0.0 (cons 2.0 nil)) map ([x: â„] plus_real_lit x 1.0) â™ + my_ele: ℠☠= â„ getlistatind (cons 0.0 (cons 2.0 nil)) 1 â™ +âš + theory StepUntilXDebug = include ☞http://mathhub.info/FrameIT/frameworld?StepUntilX â™ //my_list: List[â„] ☠= (cons 0.0 (cons 2.0 nil)) map ([x: â„] plus_real_lit x 1.0) â™ @@ -25,19 +31,49 @@ theory StepUntilXDebug = //my_list: ℠☠= stepUntil â„ 0.0 ([x: â„] plus_real_lit x 1.0) ([x: â„] leq_real_lit 10.0 x) â™ âš -theory W3Debug = - map_func : ℠⟶ (℠× â„) ☠= - [ca] ⟨ca, ca⟩ â™ - add_map_func : ℠⟶ ℠☠= - [wi] plus_real_lit 1.0 wi â™ - add_fold_func : (℠× â„) ⟶ (℠× â„) ⟶ (℠× â„) ☠= - [cur][acc] ⟨plus_real_lit (Ï€l acc) (Ï€l cur), plus_real_lit (Ï€r acc) (Ï€r cur)⟩ â™ - add_one : List[â„] ⟶ List[â„] ☠= - [w] w map add_map_func â™ - duplicate : List[â„] ⟶ (℠× â„) ☠= - [a] (a map map_func) fold ⟨1.0, 1.0⟩ add_fold_func â™ - test_fold4 : List[â„] ⟶ (℠× â„) ☠= - [rl] duplicate (add_one rl) â™ +theory Simpl1Debug = + rule rules?FilterRule (true) â™ + test_l : List[â„] ☠= (cons (-1.0) (cons 2.0 nil)) â™ + test_fun : {X: type} (X ⟶ List[X]) ⟶ List[X] ☠# testf 1 2 â™ + check : ℠⟶ bool ☠= + [r] leq_real_lit 0.0 r â™ + add_list : List[â„] ⟶ ℠⟶ List[â„] ☠= + [ls, a] (ls map ([lsi] plus_real_lit lsi a)) filter ([wib] check wib) â™ + add_list2 : List[â„] ⟶ ℠⟶ List[â„] ☠= + [ls, a] ls map ([lsi] plus_real_lit lsi a) â™ + new_vals : List[â„] ⟶ (℠⟶ List[â„]) ☠= + [lsr] ([v] add_list lsr v) â™ + new_vals2 : List[â„] ⟶ (℠⟶ List[â„]) ☠= + [lsr] ([v] add_list2 lsr v) â™ + my_list: List[â„] ☠= testf â„ (new_vals test_l) â™ + my_list2: List[â„] ☠= testf â„ (new_vals2 test_l) â™ +âš + +theory Simpl2Debug = + //include ☞http://mathhub.info/FrameIT/frameworld?StepUntil â™ + include ☞http://mathhub.info/FrameIT/frameworld?IfThenElseX â™ + rule rules?FilterRule (true) â™ + stepUntil : {X: type} X ⟶ (X ⟶ X) ⟶ (X ⟶ bool) ⟶ List[X] ☠# stepUntil 1 2 3 4 â™ + test_l : List[â„] ☠= (cons 1.0 (cons 2.0 nil)) â™ + fold_max : ℠⟶ ℠⟶ ℠☠= + [cur][acc] â„ ifx (leq_real_lit cur acc) thenx acc elsex cur â™ + check : ℠⟶ bool ☠= + [r] leq_real_lit 1.0 r â™ + + add_list : List[â„] ⟶ ℠⟶ List[â„] ☠= + [ls, a] (ls map ([lsi] plus_real_lit lsi a)) filter ([wib] check wib) â™ + add_list2 : List[â„] ⟶ ℠⟶ List[â„] ☠= + [ls, a] ls map ([lsi] plus_real_lit lsi a) â™ + + get_next_vals : List[â„] ⟶ (℠⟶ â„) ☠= + [wsi] ([v : â„] (add_list wsi v) fold 0.0 fold_max) â™ + get_next_vals2 : List[â„] ⟶ (℠⟶ â„) ☠= + [wsi] ([v : â„] (add_list2 wsi v) fold 0.0 fold_max) â™ + + end_cond : ℠⟶ bool ☠= + [vals] leq_real_lit 50.0 vals â™ + my_list: List[â„] ☠= stepUntil â„ 1.0 (get_next_vals test_l) end_cond â™ + my_list2: List[â„] ☠= stepUntil â„ 1.0 (get_next_vals2 test_l) end_cond â™ âš //theory StepUntilX2Debug = include ☞http://mathhub.info/FrameIT/frameworld?StepUntilX â™