Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

214
LINES

< > BotCompany Repo | #3000255 // Answer for stefanreich (>> log $l = [a | true])

New Tinybrain snippet

1  
TRUE.
2  
```
3  
$l = a
4  
```
5  
```
6  
Starting on goal: $l = [a | true]
7  
Goal arity 3: $l = [a | true]
8  
nextSolution
9  
  Push $l ("[]"(ice, cream))
10  
  Resetting variable $l ("[]"(ice, cream))
11  
  Push $a (_1)
12  
  Push $b (_2)
13  
  Resetting variable $b (_2)
14  
  Resetting variable $a (_1)
15  
  Push ___ ($l)
16  
  Resetting variable ___ ($l)
17  
  Push $x (_3)
18  
  Push $y (_4)
19  
  Resetting variable $y (_4)
20  
  Resetting variable $x (_3)
21  
  Push ___ ($l)
22  
  Resetting variable ___ ($l)
23  
  Push $x (_5)
24  
  Push $y (_6)
25  
  Resetting variable $y (_6)
26  
  Resetting variable $x (_5)
27  
  Push ___ ($l)
28  
  Resetting variable ___ ($l)
29  
  Push $list (_7)
30  
  Push $x (_8)
31  
  Push $cond (_9)
32  
  Push $c (_10)
33  
  Resetting variable $c (_10)
34  
  Resetting variable $cond (_9)
35  
  Resetting variable $x (_8)
36  
  Resetting variable $list (_7)
37  
  Push ___ ($l)
38  
  Push ___ (a)
39  
  Push ___ (true)
40  
Got clause: _7 = [_8 | _9]
41  
  Clause unifies to: $l = [a | true]
42  
  gdash: _10 = new collector
43  
Goal arity 4: _10 = new collector
44  
   Push $x (_11)
45  
   Resetting variable $x (_11)
46  
   Push ___ (_10)
47  
 Got clause: _11 = new collector
48  
   Clause unifies to: _10 = new collector
49  
  Clause is native.
50  
   Push ___ (<collector>)
51  
   gdash: [forall_impl ([a , true , <collector>])] or true
52  
 Goal arity 3: [forall_impl ([a , true , <collector>])] or true
53  
    Push $a (_12)
54  
    Push $b (_13)
55  
    Resetting variable $b (_13)
56  
    Resetting variable $a (_12)
57  
    Push ___ ("[]"(forall_impl, "()"("[]"(a, ",", true, ",", <collector>))))
58  
    Resetting variable ___ ("[]"(forall_impl, "()"("[]"(a, ",", true, ",", <collector>))))
59  
    Push $x (_14)
60  
    Push $y (_15)
61  
    Resetting variable $y (_15)
62  
    Resetting variable $x (_14)
63  
    Push ___ ("[]"(forall_impl, "()"("[]"(a, ",", true, ",", <collector>))))
64  
    Resetting variable ___ ("[]"(forall_impl, "()"("[]"(a, ",", true, ",", <collector>))))
65  
    Push $x (_16)
66  
    Push $y (_17)
67  
    Resetting variable $y (_17)
68  
    Resetting variable $x (_16)
69  
    Push ___ ("[]"(forall_impl, "()"("[]"(a, ",", true, ",", <collector>))))
70  
    Resetting variable ___ ("[]"(forall_impl, "()"("[]"(a, ",", true, ",", <collector>))))
71  
    Push $list (_18)
72  
    Push $x (_19)
73  
    Push $cond (_20)
74  
    Push $c (_21)
75  
    Resetting variable $c (_21)
76  
    Resetting variable $cond (_20)
77  
    Resetting variable $x (_19)
78  
    Resetting variable $list (_18)
79  
    Push ___ ("[]"(forall_impl, "()"("[]"(a, ",", true, ",", <collector>))))
80  
    Resetting variable ___ ("[]"(forall_impl, "()"("[]"(a, ",", true, ",", <collector>))))
81  
    Push $e (_22)
82  
    Push $c (_23)
83  
    Push $list (_24)
84  
    Resetting variable $list (_24)
85  
    Resetting variable $c (_23)
86  
    Resetting variable $e (_22)
87  
    Push ___ ("[]"(forall_impl, "()"("[]"(a, ",", true, ",", <collector>))))
88  
    Resetting variable ___ ("[]"(forall_impl, "()"("[]"(a, ",", true, ",", <collector>))))
89  
    Push $a (_25)
90  
    Push $b (_26)
91  
    Resetting variable $b (_26)
92  
    Resetting variable $a (_25)
93  
    Push ___ ("[]"(forall_impl, "()"("[]"(a, ",", true, ",", <collector>))))
94  
    Push ___ (true)
95  
  Got clause: _25 or _26
96  
    Clause unifies to: [forall_impl ([a , true , <collector>])] or true
97  
    gdash: forall_impl ([a , true , <collector>])
98  
  Goal arity 2: forall_impl ([a , true , <collector>])
99  
     Push $x (_27)
100  
     Push $collector (_28)
101  
     Resetting variable $collector (_28)
102  
     Resetting variable $x (_27)
103  
     Push $x (_29)
104  
     Resetting variable $x (_29)
105  
     Push $x (_30)
106  
     Resetting variable $x (_30)
107  
     Push $x (_31)
108  
     Resetting variable $x (_31)
109  
     Push $x (_32)
110  
     Resetting variable $x (_32)
111  
     Push $x (_33)
112  
     Push $cond (_34)
113  
     Push $c (_35)
114  
     Resetting variable $c (_35)
115  
     Resetting variable $cond (_34)
116  
     Resetting variable $x (_33)
117  
     Push ___ (a)
118  
     Push ___ (true)
119  
     Push ___ (<collector>)
120  
   Got clause: forall_impl ([_33 , _34 , _35])
121  
     Clause unifies to: forall_impl ([a , true , <collector>])
122  
     gdash: true
123  
   Goal arity 0: true
124  
    Got clause: true
125  
      Clause unifies to: true
126  
      gdash: saveTo ([a , <collector>])
127  
    Goal arity 2: saveTo ([a , <collector>])
128  
       Push $x (_36)
129  
       Push $collector (_37)
130  
       Resetting variable $collector (_37)
131  
       Resetting variable $x (_36)
132  
       Push ___ (a)
133  
       Push ___ (<collector>)
134  
     Got clause: saveTo ([_36 , _37])
135  
       Clause unifies to: saveTo ([a , <collector>])
136  
      Clause is native.
137  
       gdash: false
138  
     Goal arity 0: false
139  
       Resetting variable ___ (<collector>)
140  
       Resetting variable ___ (a)
141  
       Push $x (_38)
142  
       Resetting variable $x (_38)
143  
       Push $x (_39)
144  
       Resetting variable $x (_39)
145  
       Push $x (_40)
146  
       Resetting variable $x (_40)
147  
       Push $x (_41)
148  
       Resetting variable $x (_41)
149  
       Push $x (_42)
150  
       Push $cond (_43)
151  
       Push $c (_44)
152  
       Resetting variable $c (_44)
153  
       Resetting variable $cond (_43)
154  
       Resetting variable $x (_42)
155  
       Push $c (_45)
156  
       Push $a (_46)
157  
       Push $b (_47)
158  
       Resetting variable $b (_47)
159  
       Resetting variable $a (_46)
160  
       Resetting variable $c (_45)
161  
       Push $x (_48)
162  
       Resetting variable $x (_48)
163  
       Push $x (_49)
164  
       Resetting variable $x (_49)
165  
     Resetting variable ___ (<collector>)
166  
     Resetting variable ___ (true)
167  
     Resetting variable ___ (a)
168  
     Push $c (_50)
169  
     Push $a (_51)
170  
     Push $b (_52)
171  
     Resetting variable $b (_52)
172  
     Resetting variable $a (_51)
173  
     Resetting variable $c (_50)
174  
     Push $x (_53)
175  
     Resetting variable $x (_53)
176  
     Push $x (_54)
177  
     Resetting variable $x (_54)
178  
    Resetting variable ___ (true)
179  
    Resetting variable ___ ("[]"(forall_impl, "()"("[]"(a, ",", true, ",", <collector>))))
180  
    Push $a (_55)
181  
    Push $b (_56)
182  
    Resetting variable $b (_56)
183  
    Resetting variable $a (_55)
184  
    Push ___ ("[]"(forall_impl, "()"("[]"(a, ",", true, ",", <collector>))))
185  
    Push ___ (true)
186  
  Got clause: _55 or _56
187  
    Clause unifies to: [forall_impl ([a , true , <collector>])] or true
188  
    gdash: true
189  
  Goal arity 0: true
190  
   Got clause: true
191  
     Clause unifies to: true
192  
     gdash: $l = retrieve (<collector>)
193  
   Goal arity 4: $l = retrieve (<collector>)
194  
      Push $x (_57)
195  
      Resetting variable $x (_57)
196  
      Push ___ ($l)
197  
      Resetting variable ___ ($l)
198  
      Push $x (_58)
199  
      Push $retrieve (_59)
200  
      Push $collector (_60)
201  
      Resetting variable $collector (_60)
202  
      Resetting variable $retrieve (_59)
203  
      Resetting variable $x (_58)
204  
      Push ___ ($l)
205  
      Push ___ (retrieve)
206  
      Push ___ (<collector>)
207  
    Got clause: _58 = _59 (_60)
208  
      Clause unifies to: $l = retrieve (<collector>)
209  
     Clause is native.
210  
      Push $l ("[]"(a))
211  
      gdash: -
212  
SUCCESS!
213  
  solution found in step 55```
214  
[done] 91 ms

download  show line numbers   

Snippet is not live.

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #3000255
Snippet name: Answer for stefanreich (>> log $l = [a | true])
Eternal ID of this version: #3000255/1
Text MD5: b8cbccc24618d1c0fad011f22efa0296
Author: someone
Category:
Type: New Tinybrain snippet
Gummipassword: eleutheria-for-user
Uploaded from IP: 69.10.46.185
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-03-10 01:16:51
Source code size: 6628 bytes / 214 lines
Pitched / IR pitched: No / No
Views / Downloads: 526 / 121
Referenced in: [show references]