Saturday, February 11, 2017

editing Physics Derivation Graph on AWS EC2 Ubuntu

I wanted to play around with EC2, and AWS offers limited compute for 1 year for free. 
Start here: https://aws.amazon.com/free/faqs/?ft=nf

I turned on alerts for billing to prevent charges.

$ chmod 600 filename.pem
$ ssh -i filename.pem ubuntu@<IP address>

PDG on AWS

$ sudo apt-get install git
$ git config --global user.name "<my name>"
$ git config --global user.email <my email address>
$ git config --list
$ ssh-keygen -t rsa -b 4096 -C "<my email address"

go to https://github.com/settings/keys

$ ssh-add -l
Could not open a connection to your authentication agent.
$ eval "$(ssh-agent -s)"
Agent pid 2690
$ ssh-add -l
The agent has no identities.
$ ssh-add ~/.ssh/id_rsa
Identity added: /home/ubuntu/.ssh/id_rsa (/home/ubuntu/.ssh/id_rsa)
$ ssh-add -l
4096 64:84:9f:91:c7:8c:7d:14:98:2a:db:05:6d:39:c8:0f /home/ubuntu/.ssh/id_rsa (RSA)

Validate setup:
$ ssh -T git@github.com

On the page https://github.com/allofphysicsgraph/proofofconcept
switch from HTTPS to SSH to find the address
git clone git@github.com:allofphysicsgraph/proofofconcept.git


Thursday, September 1, 2016

graph visualization isn't a requirement for the Physics Derivation Graph

The central concept of the Physics Derivation Graph is that there are mathematical links between expressions. This means that navigating the content can be intuitively done using a graph. However, navigating a graph visually doesn't scale well.

The Physics Derivation Graph doesn't have to be presented as a graph. A derivation is typically presented in a linear format.

Storing the content of the Physics Derivation Graph does not require a graph storage database.

technology the Physics Derivation Graph builds on

The Physics Derivation Graph builds on prior technologies. In practice, the need was identified, created from scratch, then found to have been already done similarly by other people.

EquationMap

Gellish

Godel numbering

Sunday, June 26, 2016

build a link graph


The Physics Derivation Graph (PDG) site uses relative links. This complicates creating a graph of the site links using wget since -k can be used together with -O only if outputting to a regular file.

$ root_page=allofphysicsgraph.github.io/proofofconcept/
$ wget http://$root_page -q -O -  | grep -i -o '<a[^>]\+href[ ]*=[ \t]*"[^"]\+"' | sed 's/<a href="//' | sed 's/"//' | grep -v https | sort | uniq > list_of_pages
$ while read -r line; do this_page="$line"; wget $root_page$this_page -q -O - | grep -i -o '<a[^>]\+href[ ]*=[ \t]*"[^"]\+"' | sed 's/<a href="//' | sed 's/"//' | grep -v https | sort | uniq >> list_of_pages2; done < list_of_pages 
$ cat list_of_pages2 | grep -v http | sed 's/^/site\//' >> list_of_pages
$ cat list_of_pages | sort | uniq > list_of_pages_master
$ rm list_of_pages list_of_pages2
$ while read -r line; do this_page="$line"; wget $root_page$this_page -q -O - | grep -i -o '<a[^>]\+href[ ]*=[ \t]*"[^"]\+"' | sed 's/<a href="//' | sed 's/"//' | awk -v thispage="$this_page" '{print thispage" ->", $0";"}' >> graph_level2.gv; done < list_of_pages_master


Thursday, June 9, 2016

Python code validation

https://sourcegraph.com

https://github.com/yinwang0/pysonar2
https://yinwang0.wordpress.com/2010/09/12/pysonar/

http://pychecker.sourceforge.net/
not that useful for working code:

$ python bin/generate_new_random_index.py 
expression permanent index: 3135868900
expression temporary index: 3901417
feed temporary index      : 4031120
inf rule temporary index  : 2688703

$ pychecker bin/generate_new_random_index.py 
Processing module generate_new_random_index (bin/generate_new_random_index.py)...
expression permanent index: 1210104125
expression temporary index: 7904139
feed temporary index      : 7185822
inf rule temporary index  : 2695903

Warnings...

bin/generate_new_random_index.py:15: Imported module (random) not used

Saturday, May 28, 2016

detecting crackpots

Finding derivations which relate famous equations can lead to paths worn by crackpots. Well known equations like F=m*a and E=m*c^2 serve as good targets for non-experts. With sufficient math, laypersons have a difficult time distinguishing crackpots from legitimate experts.


Joseph A. Rybczyk

I was looking for the relation between E=m*c^2 and F=m*a
I found this page
http://www.mrelativity.net/relationshipef/the_relationship_between_e_and_f_p1.htm
Clue number 1: a private domain name -- mrelativity.net
Clue number 2: other papers attacking relativity
Clue number 3: lack of Latex
Clue number 4: unfamiliar jargon -- "Internal Energy of a Particle" 

Friday, May 27, 2016

visualize success and then deliver the minimum viable product

Today I applied two principles and made tremendous progress. First, I thought about what success meant for the Physics Derivation Graph. The central claim is that mathematical physics can be represented as a single graph. My insight was that I should simply focus on that. The second principle was determining the minimum viable product to achieve that vision of success.



The outcome is a hyperlinked SVG of concepts and topics:

http://allofphysicsgraph.github.io/proofofconcept/site/sandbox/topic_and_concept_graph.svg

This is a map of topics (ie Quantum Mechanics) and concepts (ie Schrodinger's Equation) in Physics.

I've drawn edges between concepts where there exists a paper detailing the mathematical connection

In the SVG, edges which are bold can be clicked to see the referenced URL


There's an equivalent PNG, but the hyperlinks aren't active:
http://allofphysicsgraph.github.io/proofofconcept/site/sandbox/topic_and_concept_graph.png


The point of this graph is that
  1. the major topics in Physics are present
  2. the major topics are linked to associated concepts
  3. there are mathematical links between the concepts
The remaining work is to
4) fill in with additional concepts so that there is a path from any blue box (topic) to any other blue box through only red ellipses (concepts). Then the claim will be validated in theory. 
5) After that, go back and fill in the actual math using expressions and inference rules. 

6) Verify correctness of steps using a CAS
  • break Latex expressions into constituent symbols and operators (ref 1, ref 2, ref 3)


Then I'm done!


The PDG isn't "complete" in accounting for all of Physics, but I didn't expect to go that far. Showing complete coverage of topics is sufficient.