example_interview.ipynb 41.9 KB
 Theresa Pollinger committed Mar 08, 2018 1 2 3 { "cells": [ {  4  "cell_type": "markdown",  Theresa Pollinger committed Mar 08, 2018 5 6  "metadata": {}, "source": [  Theresa Pollinger committed Apr 06, 2018 7  "**Hello, user! I am TheInterview, your partial differential equations and simulations expert.**\n",  8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25  "Let's set up a model and simulation together.\n", "\n", "To get explanations, enter explain . \n", "To see a recap of what we know so far, enter recap . \n", "To interactively visualize ther current theory graph, enter tgwiev or tgview mpd. \n", "Otherwise, you can always answer with LaTeX-type input.\n", "\n", "\n", "How many dimensions does your model have?\n", "\n", "\n", "I am just assuming it's 1, since that is all we can currently handle.\n", "\n", "\n", "\n", "\n", "What is the domain you would like to simulate for? Ω : type ❘ = [?;?], e.g. \\Omega = [0.0;1.0]\n", "By the way, you can always try and use LaTeX-type input.\n"  Theresa Pollinger committed Mar 08, 2018 26 27 28 29  ] }, { "cell_type": "code",  30  "execution_count": 1,  Theresa Pollinger committed Mar 08, 2018 31  "metadata": {},  32 33  "outputs": [ {  34 35 36 37 38  "data": { "text/markdown": [ "we will just assume that the variable is called x for now.\n", "\n", "\n",  Theresa Pollinger committed Apr 06, 2018 39 40  "\n", "Which variable(s) are you looking for? / What are the unknowns in your model? u : Ω ⟶ ??, e.g., u : Ω ⟶ ℝ ?\n"  41 42 43 44  ] }, "metadata": {}, "output_type": "display_data"  45 46  } ],  Theresa Pollinger committed Mar 08, 2018 47 48 49 50 51 52  "source": [ "Ω = [0.0;1.0]" ] }, { "cell_type": "code",  53  "execution_count": 2,  Theresa Pollinger committed Mar 08, 2018 54  "metadata": {},  55 56  "outputs": [ {  57 58  "data": { "text/markdown": [  Theresa Pollinger committed Apr 06, 2018 59 60  "Ok, T : Ω ⟶ ℝ\n", "\n",  61 62  "\n", "\n",  Theresa Pollinger committed Apr 06, 2018 63  "Would you like to name additional parameters like constants or functions (that are independent of your unknowns)? c : ℝ = ? or f : Ω ⟶ ℝ = ?\n"  64 65 66 67  ] }, "metadata": {}, "output_type": "display_data"  68 69  } ],  Theresa Pollinger committed Mar 08, 2018 70  "source": [  Theresa Pollinger committed Apr 06, 2018 71  "T : Ω ⟶ ℝ"  Theresa Pollinger committed Mar 08, 2018 72 73 74 75  ] }, { "cell_type": "code",  76  "execution_count": 3,  Theresa Pollinger committed Mar 08, 2018 77  "metadata": {},  78 79  "outputs": [ {  80 81 82  "data": { "text/markdown": [ "Ok, f = [ x : Ω] x\n",  Theresa Pollinger committed Apr 06, 2018 83 84 85  "\n", "\n", "\n",  86 87 88 89 90  "Would you like to declare more parameters?\n" ] }, "metadata": {}, "output_type": "display_data"  91 92  } ],  Theresa Pollinger committed Mar 08, 2018 93 94 95 96 97 98  "source": [ "f = x" ] }, { "cell_type": "code",  99  "execution_count": 4,  Theresa Pollinger committed Mar 08, 2018 100  "metadata": {},  101 102  "outputs": [ {  103 104 105  "data": { "text/markdown": [ "Ok, α = [ x : Ω] -5.0\n",  Theresa Pollinger committed Apr 06, 2018 106 107 108  "\n", "\n", "\n",  109 110 111 112 113  "Would you like to declare more parameters?\n" ] }, "metadata": {}, "output_type": "display_data"  114 115  } ],  Theresa Pollinger committed Mar 08, 2018 116 117 118 119 120 121  "source": [ "\\alpha = -5.0" ] }, { "cell_type": "code",  122  "execution_count": 5,  Theresa Pollinger committed Mar 08, 2018 123  "metadata": {},  124 125  "outputs": [ {  126 127 128 129 130  "data": { "text/markdown": [] }, "metadata": {}, "output_type": "display_data"  131 132  } ],  Theresa Pollinger committed Mar 08, 2018 133 134 135 136 137 138  "source": [ "y" ] }, { "cell_type": "code",  139  "execution_count": 6,  140 141 142 143 144  "metadata": { "scrolled": true }, "outputs": [ {  145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265  "data": { "text/markdown": [ "I did not catch that. Could you please rephrase?\n", "Details: MMT server error: unbound token: ·.
\n", "
\n", "
\n", "
info.kwarc.mmt.api.SourceError of level 2
\n", "
unbound token: ·
\n", "
source error (object-parser) at http://mathhub.info/MitM/smglom/calculus/differentialequations#15.0.15:15.0.15\n", "\n", "
\n", "
\n", "
\n", " info.kwarc.mmt.api.parser.NotationBasedParser.makeError(NotationBasedParser.scala:93)\n", "
\n", "
\n", " info.kwarc.mmt.api.parser.NotationBasedParser.makeTerm(NotationBasedParser.scala:321)\n", "
\n", "
\n", " info.kwarc.mmt.api.parser.NotationBasedParser.$anonfun$makeTerm$5(NotationBasedParser.scala:345)\n", " \n", " \n", " scala.collection.immutable.List.map(List.scala:287)\n", " \n", " \n", " info.kwarc.mmt.api.parser.NotationBasedParser.makeTerm(NotationBasedParser.scala:345)\n", " \n", " \n", " info.kwarc.mmt.api.parser.NotationBasedParser.doFoundContent$1(NotationBasedParser.scala:437)\n", "
\n", "
\n", " info.kwarc.mmt.api.parser.NotationBasedParser.$anonfun$makeTermFromMatchedList$14(NotationBasedParser.scala:496)\n", " \n", " \n", " info.kwarc.mmt.api.parser.NotationBasedParser.$anonfun$makeTermFromMatchedList$14$adapted(NotationBasedParser.scala:493)\n", " \n", " \n", " scala.collection.immutable.List.foreach(List.scala:389)\n", " \n", " \n", " info.kwarc.mmt.api.parser.NotationBasedParser.makeTermFromMatchedList(NotationBasedParser.scala:493)\n", " \n", " \n", " info.kwarc.mmt.api.parser.NotationBasedParser.makeTerm(NotationBasedParser.scala:329)\n", " \n", " \n", " info.kwarc.mmt.api.parser.NotationBasedParser.makeTerm(NotationBasedParser.scala:335)\n", " \n", " \n", " info.kwarc.mmt.api.parser.NotationBasedParser.$anonfun$apply$10(NotationBasedParser.scala:214)\n", "
\n", "
\n", " info.kwarc.mmt.api.frontend.Logger.logGroup(Log.scala:34)\n", "
\n", "
\n", " info.kwarc.mmt.api.frontend.Logger.logGroup$(Log.scala:31)\n", " \n", " \n", " info.kwarc.mmt.api.parser.NotationBasedParser.logGroup(NotationBasedParser.scala:69)\n", " \n", " \n", " info.kwarc.mmt.api.parser.NotationBasedParser.apply(NotationBasedParser.scala:214)\n", " \n", " \n", " info.kwarc.mmt.api.parser.KeywordBasedParser.puCont(StructureParser.scala:141)\n", " \n", " \n", " info.kwarc.mmt.api.parser.KeywordBasedParser.readParsedObject(StructureParser.scala:287)\n", " \n", " \n", " info.kwarc.mmt.api.parser.KeywordBasedParser.doComponent(StructureParser.scala:292)\n", " \n", " \n", " info.kwarc.mmt.api.parser.KeywordBasedParser.readConstant(StructureParser.scala:880)\n", " \n", " \n", " info.kwarc.mmt.api.parser.KeywordBasedParser.readInModuleAux(StructureParser.scala:630)\n", " \n", " \n", " info.kwarc.mmt.api.parser.KeywordBasedParser.readInModule(StructureParser.scala:457)\n", " \n", " \n", " info.kwarc.mmt.interviews.InterviewServer.parseDecl(InterviewServer.scala:102)\n", " \n", " \n", " info.kwarc.mmt.interviews.InterviewServer.apply(InterviewServer.scala:50)\n", " \n", " \n", " info.kwarc.mmt.api.web.Server.resolveExtension(Server.scala:95)\n", " \n", " \n", " info.kwarc.mmt.api.web.Server.resolve(Server.scala:76)\n", " \n", " \n", " info.kwarc.mmt.api.web.Server.handleRequest(Server.scala:53)\n", " \n", " \n", " info.kwarc.mmt.api.web.TiscafServerImplementation$RequestHandler$$anon1.act(TiscafServerImplementation.scala:49)\n", " \n", " \n", " tiscaf.HSimpleLet.aact(HLet.scala:166)\n", " \n", " \n", " tiscaf.HSimpleLet.aact(HLet.scala:165)\n", " \n", " \n", " info.kwarc.mmt.api.web.TiscafServerImplementationRequestHandler$$anon$1.aact(TiscafServerImplementation.scala:47)\n", " \n", " \n", " tiscaf.HAcceptor.talk(HAcceptor.scala:246)\n", " \n", " \n", " tiscaf.HSimplePeer.doTalkItself$1(HPeer.scala:101)\n", "
\n", "
\n", " tiscaf.HSimplePeer.$anonfun$readChannel$1(HPeer.scala:114)\n", " \n", " \n", " scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)\n", " \n", " \n",  Theresa Pollinger committed Apr 06, 2018 266  " scala.concurrent.Future$.$anonfun$apply$1(Future.scala:653)\n",  267 268 269 270 271 272 273 274  " \n", " \n", " scala.util.Success.$anonfun$map$1(Try.scala:251)\n", "
\n", "
\n", " scala.util.Success.map(Try.scala:209)\n", "
\n", "
\n",  Theresa Pollinger committed Apr 06, 2018 275  " scala.concurrent.Future.$anonfun$map$1(Future.scala:287)\n",  276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297  " \n", " \n", " scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29)\n", "
\n", "
\n", " scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29)\n", " \n", " \n", " scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)\n", " \n", " \n", " tiscaf.sync.SyncQuExecutionContext$$anon1.run(SyncQuExecutionContext.scala:69)\n", " \n", " \n", " \n", " \n", " \n", "\n" ] }, "metadata": {}, "output_type": "display_data"  298 299  } ],  Theresa Pollinger committed Mar 08, 2018 300 301 302 303 304 305  "source": [ "k = x \\cdot x" ] }, { "cell_type": "code",  306  "execution_count": 7,  Theresa Pollinger committed Mar 08, 2018 307  "metadata": {},  308 309  "outputs": [ {  310 311 312 313 314 315  "data": { "text/markdown": [ "f = x\n", "α = -5.0\n", "\n", "\n",  Theresa Pollinger committed Apr 06, 2018 316  "\n",  317 318 319 320 321  "Let's talk about your partial differential equation(s). What do they look like? Δu = 0.0, or laplace_operator Ω ℝ u = f ?\n" ] }, "metadata": {}, "output_type": "display_data"  322 323  } ],  Theresa Pollinger committed Mar 08, 2018 324 325 326 327 328 329  "source": [ "n" ] }, { "cell_type": "code",  330  "execution_count": 8,  Theresa Pollinger committed Mar 21, 2018 331 332 333  "metadata": { "scrolled": true },  334 335  "outputs": [ {  336 337 338 339 340 341 342  "data": { "text/markdown": [ "Ok, \n", " \n", " \n", " \n", " \n",  Theresa Pollinger committed Apr 06, 2018 343  " \n",  344 345 346  " \n", " \n", " \n",  Theresa Pollinger committed Apr 06, 2018 347  " \n",  348 349 350 351 352 353 354 355 356 357  " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n",  Theresa Pollinger committed Apr 06, 2018 358  " \n",  359 360 361 362 363  " \n", " \n", " \n", " \n", " \n",  Theresa Pollinger committed Apr 06, 2018 364  " \n",  365 366 367 368 369 370 371 372  " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n",  Theresa Pollinger committed Apr 06, 2018 373  " \n",  374 375 376 377 378 379 380 381 382 383  " \n", " \n", " \n", " \n", " \n", " \n", "\n", "\n", "\n", "\n",  Theresa Pollinger committed Apr 06, 2018 384  "\n",  385 386 387 388 389 390  "These are all the PDEs needed.\n", "Let's discuss your boundary conditions. What do they look like? u(x) = f(x) or u(1.0) = \\alpha ?\n" ] }, "metadata": {}, "output_type": "display_data"  391 392  } ],  Theresa Pollinger committed Mar 08, 2018 393  "source": [  Theresa Pollinger committed Apr 06, 2018 394  "ΔT = \\alpha"  Theresa Pollinger committed Mar 08, 2018 395 396 397 398  ] }, { "cell_type": "code",  399  "execution_count": 9,  Theresa Pollinger committed Mar 08, 2018 400  "metadata": {},  401 402  "outputs": [ {  403 404  "data": { "text/markdown": [  Theresa Pollinger committed Apr 06, 2018 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536  "I did not catch that. Could you please rephrase?\n", "Details: MMT server error: invalid unit: http://mathhub.info/MitM/smglom/calculus/differentialequations?ephbcsASmBCsRequired?[http://mathhub.info/MitM/smglom/calculus/differentialequations?mBCsRequired]/firstBC?definition: Judgment |- solutionatboundaryis f : myUnkType⟶prop. \n", " \n", " \n", " info.kwarc.mmt.api.InvalidUnit of level 2 \n", " invalid unit: http://mathhub.info/MitM/smglom/calculus/differentialequations?ephbcsASmBCsRequired?[http://mathhub.info/MitM/smglom/calculus/differentialequations?mBCsRequired]/firstBC?definition: Judgment |- solutionatboundaryis f : myUnkType⟶prop \n", " \n", " \n", " info.kwarc.mmt.api.checking.RuleBasedChecker.anonfunapply14(RuleBasedChecker.scala:92)\n", " \n", " \n", " info.kwarc.mmt.api.checking.RuleBasedChecker.anonfunapply14adapted(RuleBasedChecker.scala:91)\n", " \n", " \n", " scala.collection.immutable.List.foreach(List.scala:389)\n", " \n", " \n", " info.kwarc.mmt.api.checking.RuleBasedChecker.anonfunapply13(RuleBasedChecker.scala:91)\n", " \n", " \n", " scala.runtime.java8.JFunction0mcVsp.apply(JFunction0mcVsp.java:12)\n", " \n", " \n", " info.kwarc.mmt.api.frontend.Logger.logGroup(Log.scala:34)\n", " \n", " \n", " info.kwarc.mmt.api.frontend.Logger.logGroup(Log.scala:31)\n", " \n", " \n", " info.kwarc.mmt.api.checking.RuleBasedChecker.logGroup(RuleBasedChecker.scala:17)\n", " \n", " \n", " info.kwarc.mmt.api.checking.RuleBasedChecker.apply(RuleBasedChecker.scala:88)\n", " \n", " \n", " info.kwarc.mmt.api.checking.MMTStructureChecker.anonfuncheck15(MMTStructureChecker.scala:297)\n", " \n", " \n", " info.kwarc.mmt.api.checking.MMTStructureChecker.anonfuncheck15adapted(MMTStructureChecker.scala:273)\n", " \n", " \n", " scala.Option.foreach(Option.scala:257)\n", " \n", " \n", " info.kwarc.mmt.api.checking.MMTStructureChecker.check(MMTStructureChecker.scala:273)\n", " \n", " \n", " info.kwarc.mmt.api.checking.MMTStructureChecker.applyElementBegin(MMTStructureChecker.scala:72)\n", " \n", " \n", " info.kwarc.mmt.interviews.InterviewServer$$anon$1.onElement(InterviewServer.scala:94)\n", "
\n", "
\n", " info.kwarc.mmt.api.parser.KeywordBasedParser.seCont(StructureParser.scala:97)\n", "
\n", "
\n", " info.kwarc.mmt.api.parser.KeywordBasedParser.addDeclaration$1(StructureParser.scala:479)\n", " \n", " \n", " info.kwarc.mmt.api.parser.KeywordBasedParser.readInModuleAux(StructureParser.scala:631)\n", " \n", " \n", " info.kwarc.mmt.api.parser.KeywordBasedParser.readInModule(StructureParser.scala:457)\n", " \n", " \n", " info.kwarc.mmt.interviews.InterviewServer.parseDecl(InterviewServer.scala:102)\n", " \n", " \n", " info.kwarc.mmt.interviews.InterviewServer.apply(InterviewServer.scala:50)\n", " \n", " \n", " info.kwarc.mmt.api.web.Server.resolveExtension(Server.scala:95)\n", " \n", " \n", " info.kwarc.mmt.api.web.Server.resolve(Server.scala:76)\n", " \n", " \n", " info.kwarc.mmt.api.web.Server.handleRequest(Server.scala:53)\n", " \n", " \n", " info.kwarc.mmt.api.web.TiscafServerImplementation$RequestHandler$$anon1.act(TiscafServerImplementation.scala:49)\n", " \n", " \n", " tiscaf.HSimpleLet.aact(HLet.scala:166)\n", " \n", " \n", " tiscaf.HSimpleLet.aact(HLet.scala:165)\n", " \n", " \n", " info.kwarc.mmt.api.web.TiscafServerImplementationRequestHandler$$anon$1.aact(TiscafServerImplementation.scala:47)\n", " \n", " \n", " tiscaf.HAcceptor.talk(HAcceptor.scala:246)\n", " \n", " \n", " tiscaf.HSimplePeer.doTalkItself$1(HPeer.scala:101)\n", "
\n", "
\n", " tiscaf.HSimplePeer.$anonfun$readChannel$1(HPeer.scala:114)\n", " \n", " \n", " scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)\n", " \n", " \n", " scala.concurrent.Future$.$anonfun$apply$1(Future.scala:653)\n", " \n", " \n", " scala.util.Success.$anonfun$map$1(Try.scala:251)\n", "
\n", "
\n", " scala.util.Success.map(Try.scala:209)\n", "
\n", "
\n", " scala.concurrent.Future.$anonfun$map$1(Future.scala:287)\n", " \n", " \n", " scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29)\n", "
\n", "
\n", " scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29)\n", " \n", " \n", " scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)\n", " \n", " \n", " tiscaf.sync.SyncQuExecutionContext$$anon1.run(SyncQuExecutionContext.scala:69)\n", " \n", " \n", " \n", " \n", " \n", "\n"  537 538 539 540  ] }, "metadata": {}, "output_type": "display_data"  541 542  } ],  Theresa Pollinger committed Mar 08, 2018 543  "source": [  Theresa Pollinger committed Apr 06, 2018 544  "T = f"  Theresa Pollinger committed Mar 08, 2018 545 546 547 548  ] }, { "cell_type": "code",  549  "execution_count": 10,  Theresa Pollinger committed Mar 08, 2018 550  "metadata": {},  551 552  "outputs": [ {  553 554  "data": { "text/markdown": [  Theresa Pollinger committed Apr 06, 2018 555 556  "I did not catch that. Could you please rephrase?\n", "Details: Interview error: This does not look like a boundary condition.\n"  557 558 559 560  ] }, "metadata": {}, "output_type": "display_data"  561 562  } ],  Theresa Pollinger committed Mar 08, 2018 563 564 565 566 567 568  "source": [ "linear" ] }, { "cell_type": "code",  569  "execution_count": 11,  Theresa Pollinger committed Mar 08, 2018 570  "metadata": {},  571 572  "outputs": [ {  573 574  "data": { "text/markdown": [  Theresa Pollinger committed Apr 06, 2018 575 576  "I did not catch that. Could you please rephrase?\n", "Details: Interview error: This does not look like a boundary condition.\n"  577 578 579 580  ] }, "metadata": {}, "output_type": "display_data"  581 582  } ],  Theresa Pollinger committed Mar 08, 2018 583 584 585 586 587 588  "source": [ "elliptic" ] }, { "cell_type": "code",  589  "execution_count": 12,  Theresa Pollinger committed Mar 08, 2018 590  "metadata": {},  591 592  "outputs": [ {  593 594  "data": { "text/markdown": [  Theresa Pollinger committed Apr 06, 2018 595 596  "I did not catch that. Could you please rephrase?\n", "Details: Interview error: This does not look like a boundary condition.\n"  597 598 599 600  ] }, "metadata": {}, "output_type": "display_data"  601 602  } ],  Theresa Pollinger committed Mar 08, 2018 603 604 605 606 607 608  "source": [ "n" ] }, { "cell_type": "code",  Theresa Pollinger committed Mar 21, 2018 609  "execution_count": null,  Theresa Pollinger committed Mar 08, 2018 610  "metadata": {},  Theresa Pollinger committed Mar 21, 2018 611  "outputs": [],  612 613 614 615  "source": [] }, { "cell_type": "code",  616  "execution_count": 13,  617 618 619 620 621 622 623 624 625  "metadata": { "scrolled": false }, "outputs": [ { "data": { "text/html": [ "\n", " \n", " " ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" }, {  640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748  "data": { "text/markdown": [ "I did not catch that. Could you please rephrase?\n", "Details: MMT server error: invalid unit: http://mathhub.info/MitM/smglom/calculus/differentialequations?MPD_f?proof_f?type: Judgment |- ⊦(oneOf /A/0 f f)≐[x:Ω]x INHABITABLE. \n", " \n", " \n", " info.kwarc.mmt.api.InvalidUnit of level 2 \n", " invalid unit: http://mathhub.info/MitM/smglom/calculus/differentialequations?MPD_f?proof_f?type: Judgment |- ⊦(oneOf /A/0 f f)≐[x:Ω]x INHABITABLE \n", " \n", " \n", " info.kwarc.mmt.api.checking.RuleBasedChecker.anonfunapply15(RuleBasedChecker.scala:97)\n", " \n", " \n", " info.kwarc.mmt.api.checking.RuleBasedChecker.anonfunapply15adapted(RuleBasedChecker.scala:95)\n", " \n", " \n", " scala.collection.immutable.List.foreach(List.scala:389)\n", " \n", " \n", " info.kwarc.mmt.api.checking.RuleBasedChecker.anonfunapply13(RuleBasedChecker.scala:95)\n", " \n", " \n", " scala.runtime.java8.JFunction0mcVsp.apply(JFunction0mcVsp.java:12)\n", " \n", " \n", " info.kwarc.mmt.api.frontend.Logger.logGroup(Log.scala:34)\n", " \n", " \n", " info.kwarc.mmt.api.frontend.Logger.logGroup(Log.scala:31)\n", " \n", " \n", " info.kwarc.mmt.api.checking.RuleBasedChecker.logGroup(RuleBasedChecker.scala:17)\n", " \n", " \n", " info.kwarc.mmt.api.checking.RuleBasedChecker.apply(RuleBasedChecker.scala:88)\n", " \n", " \n", " info.kwarc.mmt.api.checking.MMTStructureChecker.checkInhabitable1(MMTStructureChecker.scala:245)\n", " \n", " \n", " info.kwarc.mmt.api.checking.MMTStructureChecker.anonfuncheck13(MMTStructureChecker.scala:253)\n", " \n", " \n", " info.kwarc.mmt.api.checking.MMTStructureChecker.anonfuncheck13adapted(MMTStructureChecker.scala:250)\n", " \n", " \n", " scala.Option.foreach(Option.scala:257)\n", " \n", " \n", " info.kwarc.mmt.api.checking.MMTStructureChecker.check(MMTStructureChecker.scala:250)\n", " \n", " \n", " info.kwarc.mmt.api.checking.MMTStructureChecker.applyElementBegin(MMTStructureChecker.scala:72)\n", " \n", " \n", " info.kwarc.mmt.interviews.InterviewServer$$anon$1.onElement(InterviewServer.scala:94)\n", "
\n", "
\n", " info.kwarc.mmt.api.parser.KeywordBasedParser.seCont(StructureParser.scala:97)\n", "
\n", "
\n", " info.kwarc.mmt.api.parser.KeywordBasedParser.addDeclaration$1(StructureParser.scala:479)\n", " \n", " \n", " info.kwarc.mmt.api.parser.KeywordBasedParser.readInModuleAux(StructureParser.scala:631)\n", " \n", " \n", " info.kwarc.mmt.api.parser.KeywordBasedParser.readInModule(StructureParser.scala:457)\n", " \n", " \n", " info.kwarc.mmt.interviews.InterviewServer.parseDecl(InterviewServer.scala:102)\n", " \n", " \n", " info.kwarc.mmt.interviews.InterviewServer.apply(InterviewServer.scala:50)\n", " \n", " \n", " info.kwarc.mmt.api.web.Server.resolveExtension(Server.scala:95)\n", " \n", " \n", " info.kwarc.mmt.api.web.Server.resolve(Server.scala:76)\n", " \n", " \n", " info.kwarc.mmt.api.web.Server.handleRequest(Server.scala:53)\n", " \n", " \n", " info.kwarc.mmt.api.web.TiscafServerImplementation$RequestHandler$$anon1.act(TiscafServerImplementation.scala:49)\n", " \n", " \n", " tiscaf.HSimpleLet.aact(HLet.scala:166)\n", " \n", " \n", " tiscaf.HSimpleLet.aact(HLet.scala:165)\n", " \n", " \n", " info.kwarc.mmt.api.web.TiscafServerImplementationRequestHandler$$anon$1.aact(TiscafServerImplementation.scala:47)\n", " \n", " \n", " tiscaf.HAcceptor.talk(HAcceptor.scala:246)\n", " \n", " \n", " tiscaf.HSimplePeer.doTalkItself$1(HPeer.scala:101)\n", "
\n", "
\n", " tiscaf.HSimplePeer.$anonfun$readChannel$1(HPeer.scala:114)\n", " \n", " \n", " scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)\n", " \n", " \n",  Theresa Pollinger committed Apr 06, 2018 749  " scala.concurrent.Future$.$anonfun$apply$1(Future.scala:653)\n",  750 751 752 753 754 755 756 757  " \n", " \n", " scala.util.Success.$anonfun$map$1(Try.scala:251)\n", "
\n", "
\n", " scala.util.Success.map(Try.scala:209)\n", "
\n", "
\n",  Theresa Pollinger committed Apr 06, 2018 758  " scala.concurrent.Future.$anonfun$map$1(Future.scala:287)\n",  759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780  " \n", " \n", " scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:29)\n", "
\n", "
\n", " scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:29)\n", " \n", " \n", " scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)\n", " \n", " \n", " tiscaf.sync.SyncQuExecutionContext$$anon$1.run(SyncQuExecutionContext.scala:69)\n", "
\n", "
\n", "
\n", "
\n", "
\n", "\n" ] }, "metadata": {}, "output_type": "display_data"  781 782  } ],  783  "source": [  784  "tgview mpd"  785 786 787 788  ] }, { "cell_type": "code",  789  "execution_count": 14,  790  "metadata": {},  791 792  "outputs": [ {  793 794  "data": { "text/markdown": [  Theresa Pollinger committed Apr 06, 2018 795 796 797 798 799 800 801  "These are the things we know so far about your problem:\n", "\n", "\n", "\n", "\n", "\n", "\n",  802  "domain: {'name': 'Ω', 'theoryname': 'ephdomain', 'axes': OrderedDict([('x', '[0.0;1.0]')]), 'from': '0.0', 'to': '1.0', 'boundary_name': 'Ω', 'viewname': 'ephdomainASmDomain'}\n",  Theresa Pollinger committed Apr 06, 2018 803 804 805 806 807 808 809 810 811 812 813 814 815  "\n", "\n", "\n", "\n", "\n", "\n", "unknowns: OrderedDict([('T', {'theoryname': 'T', 'string': 'T : Ω ⟶ ℝ', 'type': 'Ω ⟶ ℝ', 'codomain': 'ℝ', 'viewname': 'TASmUnknown'})])\n", "\n", "\n", "\n", "\n", "\n", "\n",  816  "parameters: OrderedDict([('f', {'theoryname': 'f', 'string': 'f = x', 'parsestring': 'f = [ x : Ω] x', 'type': '{ : Ω } Ω', 'viewname': 'fASmParameter'}), ('α', {'theoryname': 'α', 'string': 'α = -5.0', 'parsestring': 'α = [ x : Ω] -5.0', 'type': '{ : Ω } ℝ', 'viewname': 'αASmParameter'})])\n",  Theresa Pollinger committed Apr 06, 2018 817 818 819 820 821 822 823 824 825 826 827 828 829 830  "\n", "\n", "\n", "\n", "\n", "\n", "pdes: {'pdes': [{'theoryname': 'ephpde1', 'string': 'ΔT = α', 'lhsstring': 'ΔT', 'rhsstring': 'α', 'rhsstring_expanded': '-5.0', 'viewname': 'ephpde1ASmPDE', 'op': 'Δ', 'lhsparsestring': ' [ anyT : Ω ⟶ ℝ ] Δ anyT ', 'rhsparsestring': ' α'}]}\n", "\n", "\n", "\n", "\n", "\n", "\n", "bcs: {'theoryname': 'ephbcs', 'bcs': [{'name': 'bc0', 'string': 'T = f', 'lhsstring': 'T', 'rhsstring': 'f', 'rhsstring_expanded': 'x'}, {'name': 'bc1'}, {'name': 'bc2'}, {'name': 'bc3'}], 'viewname': 'ephbcsASmBCsRequired', 'measure_given': 0}\n"  831 832 833 834  ] }, "metadata": {}, "output_type": "display_data"  835 836  } ],  Theresa Pollinger committed Mar 14, 2018 837  "source": [  838  "recap"  Theresa Pollinger committed Mar 14, 2018 839  ]  840  },  841 842  { "cell_type": "code",  843  "execution_count": 15,  844  "metadata": {},  845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875  "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{\n", " \"stdin_port\": UNKNOWN,\n", " \"shell_port\": UNKNOWN,\n", " \"iopub_port\": UNKNOWN,\n", " \"hb_port\": UNKNOWN,\n", " \"ip\": \"UNKNOWN\",\n", " \"key\": \"UNKNOWN\",\n", " \"signature_scheme\": \"UNKNOWN\",\n", " \"transport\": \"UNKNOWN\"\n", "}\n", "\n", "Paste the above JSON into a file, and connect with:\n", " $> ipython --existing \n", "or, if you are local, you can connect with just:\n", "$> ipython --existing UNKNOWN\n", "\n", "or even just:\n", " \$> ipython --existing\n", "if this is the most recent Jupyter session you have started.\n", "\n" ] } ], "source": [ "%connect_info" ]  876  },  Theresa Pollinger committed Apr 06, 2018 877 878 879 880 881 882 883  { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] },  Theresa Pollinger committed Mar 08, 2018 884 885 886 887 888 889 890 891 892 893  { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": {  894  "display_name": "TheInterview",  Theresa Pollinger committed Mar 08, 2018 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912  "language": "text", "name": "interview" }, "language_info": { "file_extension": ".txt", "help_links": [ { "text": "MetaKernel Magics", "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" } ], "mimetype": "text/plain", "name": "text" } }, "nbformat": 4, "nbformat_minor": 2 }