├── symbolic-regression ├── emf │ ├── .gitignore │ ├── src │ │ ├── emf │ │ │ ├── MonoLookupBase.java │ │ │ ├── NoLookup.java │ │ │ ├── RunResultInfeasible.java │ │ │ ├── RunResultError.java │ │ │ ├── DimUnit.java │ │ │ ├── DropConstSplit.java │ │ │ ├── Input2.java │ │ │ ├── VarExp.java │ │ │ ├── ExpSplit.java │ │ │ ├── ConstSplit.java │ │ │ ├── MBucket.java │ │ │ ├── InVar.java │ │ │ ├── ExpPower.java │ │ │ ├── RunResultLBound.java │ │ │ ├── Globals.java │ │ │ ├── IntExpSplit.java │ │ │ ├── PrintProb0.java │ │ │ ├── Split.java │ │ │ ├── Soln.java │ │ │ ├── DataLine.java │ │ │ └── RunResult.java │ │ └── utils │ │ │ ├── GetIORec.java │ │ │ ├── SingleAssign.java │ │ │ ├── Univ.java │ │ │ ├── CompPair.java │ │ │ ├── SingleAssignOList.java │ │ │ ├── Univ1.java │ │ │ ├── CPair.java │ │ │ ├── InputErrorCode.java │ │ │ ├── DelayedInitUMap.java │ │ │ ├── MalformedInputErrorCode.java │ │ │ ├── IntList.java │ │ │ ├── IntRange.java │ │ │ ├── SingleAssignUList.java │ │ │ ├── UListInt.java │ │ │ ├── ComputeMap.java │ │ │ ├── ObjId.java │ │ │ ├── Univ2.java │ │ │ ├── DelayedInitUList.java │ │ │ ├── Utils.java │ │ │ └── SSLine.java │ └── Readme.md ├── runnableemf.jar └── run_emf │ ├── datasets │ ├── kepler │ │ ├── binary │ │ │ ├── input.dat │ │ │ └── opts.yaml │ │ ├── solar │ │ │ ├── input.dat │ │ │ └── opts.yaml │ │ └── exoplanet │ │ │ ├── opts.yaml │ │ │ └── input.dat │ ├── relativistic_time_dilation │ │ ├── input.dat │ │ └── opts.yaml │ └── langmuir │ │ ├── table_IX │ │ ├── input.dat │ │ └── opts.yaml │ │ └── sun_et_al │ │ ├── opts.yaml │ │ └── input.dat │ ├── emf.sh │ ├── opts-langmuir.yaml │ ├── opts-relativistic_time_dilation.yaml │ ├── opts-common.yaml │ ├── Readme.md │ └── opts-kepler.yaml ├── data ├── FSRD │ ├── I.15.10 │ │ ├── formula.txt │ │ └── axioms.txt │ ├── I.16.6 │ │ ├── formula.txt │ │ └── axioms.txt │ ├── I.27.6 │ │ ├── formula.txt │ │ ├── var_const_gt.txt │ │ ├── axioms.txt │ │ ├── candidates.txt │ │ └── candidates_py.txt │ ├── I.34.8 │ │ ├── formula.txt │ │ ├── axioms.txt │ │ ├── var_const_gt.txt │ │ ├── candidates.txt │ │ └── candidates_py.txt │ ├── I.43.16 │ │ ├── formula.txt │ │ ├── var_const_gt.txt │ │ ├── axioms.txt │ │ ├── candidates.txt │ │ └── candidates_py.txt │ ├── II.34.2 │ │ ├── formula.txt │ │ ├── axioms.txt │ │ ├── var_const_gt.txt │ │ ├── candidates.txt │ │ └── candidates_py.txt │ ├── II.10.9 │ │ ├── formula.txt │ │ ├── var_const_gt.txt │ │ ├── axioms.txt │ │ ├── candidates.txt │ │ └── candidates_py.txt │ └── problems_used.txt ├── langmuir │ ├── langmuir_formula.txt │ ├── langmuir_table_IX.dat │ ├── langmuir_axioms.txt │ ├── langmuir_constraints_wolfram.txt │ ├── langmuir_sun_et_al.dat │ └── README.md ├── relativistic_time_dilation │ ├── relativistic_time_dilation_formula.txt │ ├── relativistic_time_dilation.dat │ ├── relativistic_time_dilation_axioms.txt │ └── README.md ├── kepler │ ├── kepler_binary_stars.dat │ ├── kepler_formula.txt │ ├── KEPLER_solar_system.dat │ ├── kepler_exoplanets.dat │ ├── kepler_axioms.txt │ └── README.md ├── FSRD_noise │ ├── I.6.2a │ │ ├── input.dat │ │ └── input_original.dat │ ├── I.12.1 │ │ ├── input.dat │ │ └── input_original.dat │ ├── I.12.5 │ │ ├── input.dat │ │ └── input_original.dat │ ├── I.39.1 │ │ ├── input.dat │ │ └── input_original.dat │ ├── I.25.13 │ │ ├── input.dat │ │ └── input_original.dat │ ├── I.29.4 │ │ ├── input.dat │ │ └── input_original.dat │ ├── I.14.4 │ │ ├── input.dat │ │ └── input_original.dat │ ├── II.8.31 │ │ ├── input.dat │ │ └── input_original.dat │ ├── III.12.43 │ │ ├── input.dat │ │ └── input_original.dat │ ├── I.34.27 │ │ ├── input.dat │ │ └── input_original.dat │ ├── II.27.18 │ │ ├── input.dat │ │ └── input_original.dat │ ├── II.38.14 │ │ ├── input.dat │ │ └── input_original.dat │ ├── II.3.24 │ │ ├── input.dat │ │ └── input_original.dat │ ├── II.11.28 │ │ ├── input.dat │ │ └── input_original.dat │ ├── I.6.2 │ │ ├── input.dat │ │ └── input_original.dat │ ├── I.14.3 │ │ └── input.dat │ ├── I.43.31 │ │ └── input.dat │ ├── II.34.2 │ │ └── input.dat │ ├── I.15.10 │ │ └── input.dat │ ├── I.16.6 │ │ └── input.dat │ ├── II.34.2a │ │ └── input.dat │ ├── I.27.6 │ │ └── input.dat │ ├── I.34.1 │ │ └── input.dat │ ├── II.37.1 │ │ └── input.dat │ ├── I.10.7 │ │ └── input.dat │ ├── I.39.11 │ │ └── input.dat │ ├── I.47.23 │ │ └── input.dat │ ├── II.27.16 │ │ └── input.dat │ ├── III.7.38 │ │ └── input.dat │ ├── I.48.20 │ │ └── input.dat │ ├── II.13.23 │ │ └── input.dat │ ├── II.13.34 │ │ └── input.dat │ ├── III.15.27 │ │ └── input.dat │ ├── II.24.17 │ │ └── input.dat │ ├── II.34.29a │ │ └── input.dat │ ├── I.34.14 │ │ └── input.dat │ ├── II.4.23 │ │ └── input.dat │ ├── II.8.7 │ │ └── input.dat │ ├── II.10.9 │ │ └── input.dat │ ├── I.12.4 │ │ └── input.dat │ ├── III.15.14 │ │ └── input.dat │ ├── I.6.2b │ │ └── input.dat │ ├── I.34.8 │ │ └── input.dat │ ├── II.38.3 │ │ └── input.dat │ ├── I.39.22 │ │ └── input.dat │ ├── II.34.11 │ │ └── input.dat │ ├── I.13.4 │ │ └── input.dat │ ├── I.8.14 │ │ └── input.dat │ ├── I.15.3x │ │ └── input.dat │ ├── I.15.3t │ │ └── input.dat │ ├── I.18.4 │ │ └── input.dat │ ├── I.43.16 │ │ └── input.dat │ ├── I.43.43 │ │ └── input.dat │ ├── III.13.18 │ │ └── input.dat │ ├── III.21.20 │ │ └── input.dat │ ├── III.4.32 │ │ └── input.dat │ ├── III.10.19 │ │ └── input.dat │ ├── III.4.33 │ │ └── input.dat │ ├── I.12.2 │ │ └── input.dat │ ├── I.24.6 │ │ └── input.dat │ ├── I.38.12 │ │ └── input.dat │ ├── I.32.5 │ │ └── input.dat │ ├── II.13.17 │ │ └── input.dat │ ├── II.11.27 │ │ └── input.dat │ ├── I.44.4 │ │ └── input.dat │ ├── II.34.29b │ │ └── input.dat │ ├── I.13.12 │ │ └── input.dat │ ├── II.11.20 │ │ └── input.dat │ ├── II.2.42 │ │ └── input.dat │ ├── III.14.14 │ │ └── input.dat │ ├── II.11.3 │ │ └── input.dat │ ├── II.21.32 │ │ └── input.dat │ ├── II.35.18 │ │ └── input.dat │ ├── I.41.16 │ │ └── input.dat │ ├── III.19.51 │ │ └── input.dat │ ├── I.11.19 │ │ └── input.dat │ ├── I.40.1 │ │ └── input.dat │ ├── II.6.15a │ │ └── input.dat │ ├── I.32.17 │ │ └── input.dat │ └── generate_noise.py └── README.md ├── figures ├── Kepler.gif ├── System.gif ├── Time.gif ├── Langmuir.gif ├── relativity.png ├── kepler_3d_v3.png ├── discovery_cycle.png ├── system_figure_v8.png └── langmuir_equation.png ├── reasoning ├── test_data │ ├── test_wolfram │ │ ├── formulas1.txt │ │ ├── formulas2.txt │ │ ├── axioms1.txt │ │ └── axioms2.txt │ └── test_keymaera │ │ ├── test.kyx │ │ └── test_neg.kyx └── output │ └── keymaera │ └── keymaera_files │ ├── feynman │ ├── Feynman_I_27_6.kyx │ ├── Feynman_I_15_10.kyx │ └── Feynman_I_16_6.kyx │ ├── langmuir │ ├── langmuir.kyx │ ├── langmuir_const_9.kyx │ ├── langmuir_const_2.kyx │ ├── langmuir_const_8.kyx │ ├── langmuir_const_5.kyx │ ├── langmuir_const_7.kyx │ ├── langmuir_const_6.kyx │ ├── langmuir_const_4.kyx │ ├── langmuir_const_1.kyx │ ├── langmuir_const_12.kyx │ ├── langmuir_const_3.kyx │ ├── langmuir_const_14.kyx │ ├── langmuir_const_10.kyx │ ├── langmuir_const_11.kyx │ ├── langmuir_const_13.kyx │ ├── langmuir_2sites_const_9.kyx │ ├── langmuir_2sites_const_2.kyx │ ├── langmuir_2sites_const_8.kyx │ ├── langmuir_2sites_const_7.kyx │ ├── langmuir_2sites_const_5.kyx │ ├── langmuir_2sites_const_6.kyx │ ├── langmuir_2sites_const_4.kyx │ ├── langmuir_2sites_const_1.kyx │ ├── langmuir_2sites_const_3.kyx │ ├── langmuir_2sites_const_12.kyx │ ├── langmuir_2sites_const_14.kyx │ ├── langmuir_2sites_const_10.kyx │ ├── langmuir_2sites_const_11.kyx │ ├── langmuir_2sites_const_13.kyx │ └── langmuir_2sites.kyx │ ├── kepler │ ├── Kepler.kyx │ └── Kepler_const.kyx │ └── time_dilation │ ├── time_dilation.kyx │ ├── time_dilation_f2_relativistic_A.kyx │ ├── time_dilation_f1_relativistic_A.kyx │ ├── time_dilation_f3_relativistic_A.kyx │ ├── time_dilation_f1_relativistic_R.kyx │ ├── time_dilation_f2_relativistic_R.kyx │ ├── time_dilation_f3_relativistic_R.kyx │ ├── time_dilation_f4_relativistic_A.kyx │ └── time_dilation_f4_relativistic_R.kyx ├── MAINTAINERS.md └── LICENSE /symbolic-regression/emf/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | -------------------------------------------------------------------------------- /data/FSRD/I.15.10/formula.txt: -------------------------------------------------------------------------------- 1 | p = m_0 * v /sqrt(1 - v*v/c*c) -------------------------------------------------------------------------------- /data/FSRD/I.15.10/axioms.txt: -------------------------------------------------------------------------------- 1 | p = m * v 2 | m = m_0/ sqrt(1 - v*v/c*c) -------------------------------------------------------------------------------- /data/FSRD/I.16.6/formula.txt: -------------------------------------------------------------------------------- 1 | V_x = (U + V_x1 ) / ( 1 + ( U * V_x1 / c**2)) -------------------------------------------------------------------------------- /data/FSRD/I.27.6/formula.txt: -------------------------------------------------------------------------------- 1 | # formula ground truth 2 | 3 | 1/(1/d1+n/d2) -------------------------------------------------------------------------------- /data/FSRD/I.34.8/formula.txt: -------------------------------------------------------------------------------- 1 | # formula ground truth 2 | 3 | (q*v*B)/p -------------------------------------------------------------------------------- /data/FSRD/I.43.16/formula.txt: -------------------------------------------------------------------------------- 1 | # formula ground truth 2 | 3 | mu*q*Volt/d -------------------------------------------------------------------------------- /data/FSRD/II.34.2/formula.txt: -------------------------------------------------------------------------------- 1 | # formula ground truth 2 | 3 | mu = q*v*r/2 -------------------------------------------------------------------------------- /figures/Kepler.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM/AI-Descartes/main/figures/Kepler.gif -------------------------------------------------------------------------------- /figures/System.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM/AI-Descartes/main/figures/System.gif -------------------------------------------------------------------------------- /figures/Time.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM/AI-Descartes/main/figures/Time.gif -------------------------------------------------------------------------------- /data/FSRD/II.10.9/formula.txt: -------------------------------------------------------------------------------- 1 | # formula ground truth 2 | 3 | E = sigmaF/(eps * (1+ chi)) 4 | -------------------------------------------------------------------------------- /figures/Langmuir.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM/AI-Descartes/main/figures/Langmuir.gif -------------------------------------------------------------------------------- /reasoning/test_data/test_wolfram/formulas1.txt: -------------------------------------------------------------------------------- 1 | function f(x) 2 | 3 | Sin[x]/x 4 | 1/x 5 | 2+2 -------------------------------------------------------------------------------- /data/langmuir/langmuir_formula.txt: -------------------------------------------------------------------------------- 1 | Q = ((S0 * (k_ads / k_des)) * P) / (1 + ((k_ads / k_des) * P)) -------------------------------------------------------------------------------- /figures/relativity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM/AI-Descartes/main/figures/relativity.png -------------------------------------------------------------------------------- /reasoning/test_data/test_wolfram/formulas2.txt: -------------------------------------------------------------------------------- 1 | function f(x,y) 2 | 3 | Sin[x]/y 4 | 1/y 5 | 2+2 -------------------------------------------------------------------------------- /figures/kepler_3d_v3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM/AI-Descartes/main/figures/kepler_3d_v3.png -------------------------------------------------------------------------------- /figures/discovery_cycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM/AI-Descartes/main/figures/discovery_cycle.png -------------------------------------------------------------------------------- /figures/system_figure_v8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM/AI-Descartes/main/figures/system_figure_v8.png -------------------------------------------------------------------------------- /figures/langmuir_equation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM/AI-Descartes/main/figures/langmuir_equation.png -------------------------------------------------------------------------------- /data/relativistic_time_dilation/relativistic_time_dilation_formula.txt: -------------------------------------------------------------------------------- 1 | df / f0 * 10^15 = sqrt( 1 - ( v^2 / c^2 ) ) - 1 2 | -------------------------------------------------------------------------------- /reasoning/test_data/test_wolfram/axioms1.txt: -------------------------------------------------------------------------------- 1 | Limit[f(x),x->0]==1 2 | Limit[f(x),x->Infinity]5 -------------------------------------------------------------------------------- /symbolic-regression/runnableemf.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IBM/AI-Descartes/main/symbolic-regression/runnableemf.jar -------------------------------------------------------------------------------- /MAINTAINERS.md: -------------------------------------------------------------------------------- 1 | # MAINTAINERS 2 | 3 | Cristina Cornelio - c.cornelio@samsung.com (corneliocristina@gmail.com) 4 | 5 | Joao Goncalves - jpgoncal@us.ibm.com -------------------------------------------------------------------------------- /data/FSRD/I.16.6/axioms.txt: -------------------------------------------------------------------------------- 1 | V_x = X / T 2 | X1 = V_x1 * T1 3 | X = (X1 + U * T1) /(sqrt(1-(U**2/c**2))) 4 | T = T1 +(U*X1/c**2)/(sqrt(1-(U**2/c**2))) 5 | -------------------------------------------------------------------------------- /data/kepler/kepler_binary_stars.dat: -------------------------------------------------------------------------------- 1 | p m1 m2 d 2 | 1089 0.54 0.5 107.27 3 | 143.1 1.33 1.41 38.235 4 | 930 0.88 0.82 113.769 5 | 675.5 3.06 1.97 131.352 6 | -------------------------------------------------------------------------------- /data/kepler/kepler_formula.txt: -------------------------------------------------------------------------------- 1 | 2 | P = sqrt( (dN^3 * 4 * pi^2) /(G * (m1 + m2)) ) 3 | 4 | 5 | # after normalization 6 | 7 | PN = sqrt( dN^3 / ( m1N + m2N ) ) -------------------------------------------------------------------------------- /reasoning/test_data/test_wolfram/axioms2.txt: -------------------------------------------------------------------------------- 1 | Limit[f(x,y),x->0]==1 2 | Limit[f(x,y),y->Infinity]5 4 | f(x,y)==x/2 y->5 5 | f(x,y)==0.2 x->5 y->5 -------------------------------------------------------------------------------- /data/relativistic_time_dilation/relativistic_time_dilation.dat: -------------------------------------------------------------------------------- 1 | # t v 2 | -0.018 0.55 3 | -0.21 4.10 4 | -0.43 8.60 5 | -1.54 14.84 6 | -2.92 22.18 7 | -4.82 29.65 8 | -7.36 36.22 9 | -------------------------------------------------------------------------------- /symbolic-regression/run_emf/datasets/kepler/binary/input.dat: -------------------------------------------------------------------------------- 1 | ** d m0 m t 2 | 107.27 0.54 0.5 1089 3 | 38.235 1.33 1.41 143.1 4 | 113.769 0.88 0.82 930 5 | 131.352 3.06 1.97 675.5 6 | -------------------------------------------------------------------------------- /data/FSRD/I.27.6/var_const_gt.txt: -------------------------------------------------------------------------------- 1 | # interest variable 2 | foc 3 | 4 | # variables 5 | tvq 6 | top2 7 | n 8 | 9 | # constants 10 | d1 11 | d2 12 | top1 13 | VQ 14 | h 15 | r 16 | -------------------------------------------------------------------------------- /data/FSRD/I.43.16/var_const_gt.txt: -------------------------------------------------------------------------------- 1 | # interest variable 2 | 3 | v 4 | 5 | # variables 6 | Volt 7 | F 8 | E 9 | mu 10 | q 11 | d 12 | 13 | # constants 14 | m 15 | tau 16 | 17 | -------------------------------------------------------------------------------- /data/langmuir/langmuir_table_IX.dat: -------------------------------------------------------------------------------- 1 | # p q 2 | 122 104 3 | 83 98.6 4 | 45 90.2 5 | 25.8 82.2 6 | 17.3 71.2 7 | 12.8 60.6 8 | 8 52.7 9 | 5.2 43.7 10 | 3.7 36.3 11 | 2.7 30.6 12 | -------------------------------------------------------------------------------- /symbolic-regression/run_emf/datasets/relativistic_time_dilation/input.dat: -------------------------------------------------------------------------------- 1 | ** x y 2 | 0.55 -0.018 3 | 4.10 -0.21 4 | 8.60 -0.43 5 | 14.84 -1.54 6 | 22.18 -2.92 7 | 29.65 -4.82 8 | 36.22 -7.36 9 | -------------------------------------------------------------------------------- /data/FSRD/I.43.16/axioms.txt: -------------------------------------------------------------------------------- 1 | v>0 2 | Volt>0 3 | F>0 4 | E>0 5 | m>0 6 | mu>0 7 | q>0 8 | d>0 9 | tau>0 10 | 11 | v / tau = F/m 12 | 13 | mu = tau/m 14 | 15 | F = q * E 16 | 17 | E = Volt/d -------------------------------------------------------------------------------- /data/FSRD/II.10.9/var_const_gt.txt: -------------------------------------------------------------------------------- 1 | # interest variable 2 | 3 | E 4 | 5 | # variables 6 | 7 | sigmaF 8 | sigmaP 9 | N 10 | P 11 | chi 12 | eps 13 | 14 | # constants 15 | delta 16 | q 17 | 18 | -------------------------------------------------------------------------------- /data/FSRD/II.34.2/axioms.txt: -------------------------------------------------------------------------------- 1 | mu>0 2 | q>0 3 | v>0 4 | r>0 5 | A>0 6 | I>0 7 | freq>0 8 | pi = 31.4 9 | 10 | A = pi * r^2 11 | 12 | mu = I * A 13 | 14 | I = q * freq 15 | 16 | freq = v/(2 * pi * r) -------------------------------------------------------------------------------- /data/FSRD/I.34.8/axioms.txt: -------------------------------------------------------------------------------- 1 | omega>0 2 | v>0 3 | p>0 4 | Dangle>0 5 | Dp>0 6 | Dt>0 7 | q>0 8 | F>0 9 | B>0 10 | 11 | omega = Dangle/Dt 12 | Dp = F * Dt 13 | 14 | F = q * v * B 15 | 16 | Dangle = Dp/p 17 | -------------------------------------------------------------------------------- /data/langmuir/langmuir_axioms.txt: -------------------------------------------------------------------------------- 1 | S0>0 2 | Sa>0 3 | S>0 4 | P>0 5 | Q>0 6 | kads>0 7 | kdes>0 8 | rdes>0 9 | rads>0 10 | S0 = S + Sa 11 | r_ads = k_ads * P * S 12 | r_des = k_des * Sa 13 | r_ads = r_des 14 | Q = Sa -------------------------------------------------------------------------------- /data/FSRD/II.34.2/var_const_gt.txt: -------------------------------------------------------------------------------- 1 | # interest variable 2 | mu 3 | 4 | 5 | # variables 6 | v 7 | I 8 | freq 9 | q 10 | r 11 | 12 | # constants 13 | pi 14 | A 15 | 16 | # formula ground truth 17 | 18 | mu = q*v*r/2 -------------------------------------------------------------------------------- /symbolic-regression/run_emf/datasets/langmuir/table_IX/input.dat: -------------------------------------------------------------------------------- 1 | ** x y 2 | 122 104 3 | 83 98.6 4 | 45 90.2 5 | 25.8 82.2 6 | 17.3 71.2 7 | 12.8 60.6 8 | 8 52.7 9 | 5.2 43.7 10 | 3.7 36.3 11 | 2.7 30.6 12 | -------------------------------------------------------------------------------- /data/FSRD/I.34.8/var_const_gt.txt: -------------------------------------------------------------------------------- 1 | # interest variable 2 | omega 3 | 4 | 5 | # variables 6 | v 7 | p 8 | Dangle 9 | Dp 10 | Dt 11 | B 12 | q 13 | 14 | # constants 15 | F 16 | 17 | # formula ground truth 18 | 19 | (q*v*B)/p -------------------------------------------------------------------------------- /reasoning/test_data/test_keymaera/test.kyx: -------------------------------------------------------------------------------- 1 | ArchiveEntry "test" 2 | 3 | Definitions 4 | Real x; 5 | Real y; 6 | End. 7 | ProgramVariables 8 | End. 9 | Problem 10 | x=1 11 | & y = 1 12 | -> 13 | x+y = 2 14 | End. 15 | 16 | End. -------------------------------------------------------------------------------- /symbolic-regression/run_emf/emf.sh: -------------------------------------------------------------------------------- 1 | dir=$1 2 | 3 | yamlfile="opts-Feynman-dims.yaml" 4 | if [ $# -eq 2 ] 5 | then 6 | yamlfile=$2 7 | fi 8 | echo $yamlfile 9 | 10 | java -jar runnableemf.jar opts-common.yaml $yamlfile $dir/ 11 | 12 | -------------------------------------------------------------------------------- /reasoning/test_data/test_keymaera/test_neg.kyx: -------------------------------------------------------------------------------- 1 | ArchiveEntry "test neg" 2 | 3 | Definitions 4 | Real x; 5 | Real y; 6 | End. 7 | ProgramVariables 8 | End. 9 | Problem 10 | x=1 11 | & y = 1 12 | -> 13 | x+y = 3 14 | End. 15 | 16 | End. -------------------------------------------------------------------------------- /data/FSRD/II.10.9/axioms.txt: -------------------------------------------------------------------------------- 1 | sigmaF>0 2 | sigmaP>0 3 | E>0 4 | N>0 5 | P>0 6 | chi>0 7 | eps>0 8 | q>0 9 | delta>0 10 | 11 | 12 | E = (sigmaF - sigmaP)/eps 13 | 14 | sigmaP = N * q * delta 15 | 16 | P = chi * eps * E 17 | 18 | P = N * q * delta 19 | -------------------------------------------------------------------------------- /symbolic-regression/run_emf/datasets/kepler/solar/input.dat: -------------------------------------------------------------------------------- 1 | ** m d t 2 | 0.0553 0.3870 0.0880 3 | 0.815 0.7233 0.2247 4 | 1 1 0.3652 5 | 0.107 1.5234 0.6870 6 | 317.83 5.2045 4.331 7 | 95.16 9.5822 10.747 8 | 14.54 19.2012 30.589 9 | 17.15 30.0475 59.800 10 | -------------------------------------------------------------------------------- /data/relativistic_time_dilation/relativistic_time_dilation_axioms.txt: -------------------------------------------------------------------------------- 1 | d > 0 2 | L > 0 3 | v > 0 4 | f0 > 0 5 | f > 0 6 | dt0 > 0 7 | dt > 0 8 | df > 0 9 | c = 3*10^8 10 | dt0 = 2*d/c 11 | L^2 = d^2 + (v*dt/2)^2 12 | dt = 2*L/c 13 | f0 = 1/dt0 14 | f = 1/dt 15 | df = f - f0 -------------------------------------------------------------------------------- /data/langmuir/langmuir_constraints_wolfram.txt: -------------------------------------------------------------------------------- 1 | f(x)==0 x->0 2 | And[Limit[D[f(x),x],x->0]0]>0] 3 | And[Limit[f(x),x->Infinity]Infinity]>0] 4 | Resolve[ForAll[x,Implies[x>0,f(x)>0]]] 5 | Resolve[ForAll[x,Implies[x>0,D[f(x),x]>=0]],Reals] -------------------------------------------------------------------------------- /data/FSRD/I.27.6/axioms.txt: -------------------------------------------------------------------------------- 1 | d1>0 2 | d2>0 3 | h>0 4 | VQ>0 5 | r>0 6 | top1>0 7 | 8 | n>1 9 | tvq>0 10 | top2>0 11 | 12 | 13 | tvq = (n-1) * VQ 14 | 15 | top1 = h^2 / (2 * d1) 16 | top2 = (n * h^2) / (2 * d2) 17 | 18 | VQ = h^2 / (2 * r) 19 | 20 | top1 + top2 = tvq 21 | 22 | foc = r/(n-1) -------------------------------------------------------------------------------- /symbolic-regression/run_emf/datasets/kepler/binary/opts.yaml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #max_var_exp: 1 4 | #neg_exps: false 5 | #mms_hack: true 6 | #discard_redundant_exprs: false 7 | #generateAllBNodes: true 8 | 9 | 10 | #pow_values: [0.333] 11 | 12 | max_var_exp: 3 13 | operators: ["*", "/", "+", "sqrt"] 14 | -------------------------------------------------------------------------------- /symbolic-regression/run_emf/datasets/kepler/solar/opts.yaml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #max_var_exp: 1 4 | #neg_exps: false 5 | #mms_hack: true 6 | #discard_redundant_exprs: false 7 | #generateAllBNodes: true 8 | 9 | 10 | #pow_values: [0.333] 11 | 12 | max_var_exp: 3 13 | operators: ["*", "/", "+", "sqrt"] 14 | -------------------------------------------------------------------------------- /data/relativistic_time_dilation/README.md: -------------------------------------------------------------------------------- 1 | # PARAMETERS 2 | 3 | | Entity | Label | Units | 4 | | --- | --- | ---- | 5 | | Velocity | v | m/s 6 | | Time dilation | t | 10^{−15} 7 | 8 | # CORRECT FORMULA 9 | ``` 10 | t = sqrt(1 - v^2 / c^2) - 1 11 | ``` -------------------------------------------------------------------------------- /symbolic-regression/run_emf/datasets/kepler/exoplanet/opts.yaml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #max_var_exp: 1 4 | #neg_exps: false 5 | #mms_hack: true 6 | #discard_redundant_exprs: false 7 | #generateAllBNodes: true 8 | 9 | 10 | #pow_values: [0.333] 11 | 12 | max_var_exp: 3 13 | operators: ["*", "/", "+", "sqrt"] 14 | -------------------------------------------------------------------------------- /data/langmuir/langmuir_sun_et_al.dat: -------------------------------------------------------------------------------- 1 | # p q 2 | 0.07 0.695 3 | 0.11 0.752 4 | 0.2 0.797 5 | 0.31 0.825 6 | 0.56 0.86 7 | 0.8 0.882 8 | 1.07 0.904 9 | 1.46 0.923 10 | 3.51 0.976 11 | 6.96 1.212 12 | 12.06 1.371 13 | 17.26 1.469 14 | 27.56 1.535 15 | 41.42 1.577 16 | 55.2 1.602 17 | 68.95 1.619 18 | 86.17 1.632 19 | -------------------------------------------------------------------------------- /symbolic-regression/run_emf/datasets/relativistic_time_dilation/opts.yaml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #max_var_exp: 1 4 | #neg_exps: false 5 | #mms_hack: true 6 | #discard_redundant_exprs: false 7 | #generateAllBNodes: true 8 | 9 | 10 | #pow_values: [0.333] 11 | 12 | max_var_exp: 2 13 | operators: ["*", "/", "+", "sqrt"] 14 | -------------------------------------------------------------------------------- /symbolic-regression/run_emf/datasets/langmuir/sun_et_al/opts.yaml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #max_var_exp: 1 4 | #neg_exps: false 5 | #mms_hack: true 6 | #discard_redundant_exprs: false 7 | #generateAllBNodes: true 8 | 9 | 10 | #pow_values: [0.333] 11 | 12 | max_var_exp: 2 13 | operators: ["*", "/", "+"] 14 | max_num_consts: 4 15 | -------------------------------------------------------------------------------- /symbolic-regression/run_emf/datasets/langmuir/table_IX/opts.yaml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #max_var_exp: 1 4 | #neg_exps: false 5 | #mms_hack: true 6 | #discard_redundant_exprs: false 7 | #generateAllBNodes: true 8 | 9 | 10 | #pow_values: [0.333] 11 | 12 | max_var_exp: 2 13 | operators: ["*", "/", "+"] 14 | max_num_consts: 4 15 | -------------------------------------------------------------------------------- /data/kepler/KEPLER_solar_system.dat: -------------------------------------------------------------------------------- 1 | p m1 m2 d 2 | 0.0880 1 0.0553 0.3870 # Mercury 3 | 0.2247 1 0.815 0.7233 # Venus 4 | 0.3652 1 1 1 # Earth 5 | 0.6870 1 0.107 1.5234 # Mars 6 | 4.331 1 317.83 5.2045 # Jupiter 7 | 10.747 1 95.16 9.5822 # Saturn 8 | 30.589 1 14.54 19.2012 # Uranus 9 | 59.800 1 17.15 30.0475 # Neptune 10 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/MonoLookupBase.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | public interface MonoLookupBase { 8 | 9 | int lookup(double divlo, double divhi); 10 | } 11 | -------------------------------------------------------------------------------- /symbolic-regression/run_emf/datasets/langmuir/sun_et_al/input.dat: -------------------------------------------------------------------------------- 1 | ** x y 2 | 0.07 0.695 3 | 0.11 0.752 4 | 0.2 0.797 5 | 0.31 0.825 6 | 0.56 0.86 7 | 0.8 0.882 8 | 1.07 0.904 9 | 1.46 0.923 10 | 3.51 0.976 11 | 6.96 1.212 12 | 12.06 1.371 13 | 17.26 1.469 14 | 27.56 1.535 15 | 41.42 1.577 16 | 55.2 1.602 17 | 68.95 1.619 18 | 86.17 1.632 19 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/GetIORec.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | import utils.SimpleRecStore.IORec; 8 | 9 | public interface GetIORec { 10 | IORec getIORec(); 11 | } 12 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/feynman/Feynman_I_27_6.kyx: -------------------------------------------------------------------------------- 1 | Functions 2 | End. 3 | ProgramVariables 4 | Real R; 5 | Real h; 6 | Real f; 7 | Real n; 8 | Real s1; 9 | Real s; 10 | End. 11 | Problem. 12 | (R>0 & n>0 & h>0 & s>0 & s1>0 & f>0 13 | & f = R/(n-1) 14 | & (n-1)/R = (1/s) + (n/s1)) 15 | -> 16 | f = 1/(1/s + n/s1) 17 | End. -------------------------------------------------------------------------------- /symbolic-regression/run_emf/opts-langmuir.yaml: -------------------------------------------------------------------------------- 1 | 2 | use_dimensional_analysis: false 3 | 4 | add_noise_to_input: false 5 | 6 | relative_squared_error: false 7 | prod_exp_limit: 6 8 | max_num_consts: 1 9 | 10 | max_tree_depth: 3 11 | 12 | dimensionUnits: [bar, mm] 13 | 14 | dimensionVars: 15 | # bar mm 16 | x: [1, 0] 17 | y: [0, 3] 18 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/feynman/Feynman_I_15_10.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real c; 3 | End. 4 | Functions 5 | End. 6 | ProgramVariables 7 | Real m0; 8 | Real m; 9 | Real v; 10 | Real p; 11 | End. 12 | Problem. 13 | (m>0 & m0>0 & c=2.99*10^8 14 | & p = m * v 15 | & m = m0 / (1 - v*v/c*c)^(1/2) ) 16 | -> 17 | p = m0 * v / (1 - v*v/c*c)^(1/2) 18 | End. -------------------------------------------------------------------------------- /symbolic-regression/run_emf/opts-relativistic_time_dilation.yaml: -------------------------------------------------------------------------------- 1 | 2 | use_dimensional_analysis: false 3 | 4 | add_noise_to_input: false 5 | 6 | relative_squared_error: false 7 | prod_exp_limit: 6 8 | max_num_consts: 1 9 | 10 | max_tree_depth: 3 11 | 12 | dimensionUnits: [bar, mm] 13 | 14 | dimensionVars: 15 | # bar mm 16 | x: [1, 0] 17 | y: [0, 3] 18 | -------------------------------------------------------------------------------- /data/FSRD/I.34.8/candidates.txt: -------------------------------------------------------------------------------- 1 | # AI-Descartes correct: 2 | q * v * B * p^-1 3 | 4 | # AI-Descartes incorrect: 5 | (( -0.3629486971409909 * v * B^-1 * p^-1 )+( B^-1 * p^-1 )+( q * v * B * p^-1 )) 6 | 7 | # AIFeynman incorrect: 8 | -2.982892131052 * ( v * ( q / (-p) )) 9 | 10 | # PySR incorrect: 11 | (( q / p ) * (( v * ( B - ( v * 0.0074931723 ))) + 0.05855814 )) 12 | 13 | # Bayesian incorrect: 14 | q * B -------------------------------------------------------------------------------- /data/kepler/kepler_exoplanets.dat: -------------------------------------------------------------------------------- 1 | p m1 m2 d 2 | 0.0072004 0.33 0.018 0.0505 3 | 0.02814 0.33 0.012 0.125 4 | 0.06224 0.33 0.008 0.213 5 | 0.039026 0.33 0.008 0.156 6 | 0.2562 0.33 0.014 0.549 7 | 0.0015109 0.08 0.0027 0.0111 8 | 0.0024218 0.08 0.0043 0.0152 9 | 0.0040496 0.08 0.0013 0.0214 10 | 0.0060996 0.08 0.002 0.0282 11 | 0.0092067 0.08 0.0021 0.0371 12 | 0.0123529 0.08 0.0042 0.0451 13 | 0.018767 0.08 0.086 0.063 14 | -------------------------------------------------------------------------------- /data/FSRD/I.34.8/candidates_py.txt: -------------------------------------------------------------------------------- 1 | # AI-Descartes correct: 2 | q * v * B * p**(-1) 3 | 4 | # AI-Descartes incorrect: 5 | ( ( -0.3629486971409909 * v * B**(-1) * p**(-1) ) + ( B**(-1) * p**(-1) ) + ( q * v * B * p**(-1) ) ) 6 | 7 | # AIFeynman incorrect: 8 | -2.982892131052 * ( v * ( q / ( -p ) )) 9 | 10 | # PySR incorrect: 11 | ( ( q / p ) * ( ( v * ( B - ( v * 0.0074931723 ) ) ) + 0.05855814 ) ) 12 | 13 | # Bayesian incorrect: 14 | q * B -------------------------------------------------------------------------------- /data/FSRD/I.43.16/candidates.txt: -------------------------------------------------------------------------------- 1 | # AI-Descartes correct: 2 | 0.9993131785619503 * mu * q * Volt * d^-1 3 | 4 | # AI-Descartes incorrect: 5 | (( -4.356185692492171 * mu^-1 * q^-1 * Volt^-1)+( mu^-1 * q^-1)+( mu * q * Volt * d^-1)) 6 | 7 | # AIFeynman incorrect: 8 | 0.944624825550 * ( q / sin(( d / ( Volt * mu )))) 9 | 10 | # PySR incorrect: 11 | ((((( q * mu) + 0.14453848 ) * Volt ) - 0.5977819 ) / d ) 12 | 13 | # Bayesian incorrect: 14 | q * mu -------------------------------------------------------------------------------- /data/langmuir/README.md: -------------------------------------------------------------------------------- 1 | # PARAMETERS 2 | 3 | ## SUN ET AL. 4 | | Entity | Label | Units | 5 | | --- | --- | ---- | 6 | | pressure | p | kPa | 7 | | loading | q | mol/kg | 8 | 9 | ## TABLE IX 10 | | Entity | Label | Units | 11 | | --- | --- | ---- | 12 | | pressure | p | bars | 13 | | loading | q | mm^3 | 14 | 15 | # CORRECT FORMULA 16 | ``` 17 | q = a * b * p / (1 + a * p) 18 | ``` 19 | -------------------------------------------------------------------------------- /data/kepler/kepler_axioms.txt: -------------------------------------------------------------------------------- 1 | m1>0 2 | m2>0 3 | P>0 4 | d2>0 5 | d1>0 6 | G = (6.674 * 10^(-11)) 7 | pi = (3.14) 8 | m1 * d1 = m2 * d2 9 | d = d1 + d2 10 | Fg = (G * m1 * m2) / d^2 11 | Fc = m2 * d2 * w^2 12 | Fg = Fc 13 | P = (2 * pi )/w 14 | 15 | 16 | # additional axioms for data normalization 17 | 18 | m1N>0 19 | m2N>0 20 | PN>0 21 | convP = (1000 * 24 * 60 * 60 ) 22 | convm1 = (1.9885 * 10^30 ) 23 | convm2 = (5.972 * 10^24) 24 | convD = (1.496 * 10^11) -------------------------------------------------------------------------------- /symbolic-regression/run_emf/opts-common.yaml: -------------------------------------------------------------------------------- 1 | inputSampleSize: 50 2 | 3 | max_num_jobs: 45 4 | 5 | multitask: false 6 | 7 | baron_exec: path_to_baron_executable/baron 8 | LicName: path_to_baron_license_file/baronlice.txt 9 | 10 | baronOpts: 11 | - "MaxTime: 60;" 12 | - "PrTimeFreq: 1;" 13 | - "EpsA: 1e-4;" 14 | - "EpsR: 1e-3;" 15 | 16 | nonconst_plusminus: false 17 | 18 | kill_existing_baron_jobs: true 19 | 20 | printBaronFilesUpfront: true 21 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/NoLookup.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | public class NoLookup implements MonoLookupBase { 8 | 9 | // extends MTable 10 | // public NoLookup(MTable that) { 11 | // super(that); 12 | // } 13 | 14 | public int lookup(double divlo, double divhi) { 15 | return 0; 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /data/FSRD/I.27.6/candidates.txt: -------------------------------------------------------------------------------- 1 | # AI-Descartes correct: 2 | (( 0.9979213120616837 * d1^-1 * n^-2 )/(( d1^-2 * n^-2 )+( d1^-1 * d2^-1 * n^-1 ))) 3 | 4 | # AI-Descartes incorrect: 5 | ((d1)/((0.009721896668029232*d1*n^-2)+(1.0)+(d1*d2^-1*n))) 6 | 7 | # AIFeynman incorrect: 8 | 1.197256026831 * sin(log(d2)) 9 | 10 | # PySR incorrect: 11 | (d2 / (d2 + (n / (d1 - (0.03673146 / n))))) 12 | 13 | # Bayesian incorrect: 14 | ((((-0.029498254935467844*d2^-1*n^-1)+(1.0)))^0.5/((d2^-1*n)+(d1^-1))) -------------------------------------------------------------------------------- /data/FSRD/I.43.16/candidates_py.txt: -------------------------------------------------------------------------------- 1 | # AI-Descartes correct: 2 | 0.9993131785619503 * mu * q * Volt * d**(-1) 3 | 4 | # AI-Descartes incorrect: 5 | ( ( -4.356185692492171 * mu**(-1) * q**(-1) * Volt**(-1) ) + ( mu**(-1) * q**(-1)) + ( mu * q * Volt * d**(-1) ) ) 6 | 7 | # AIFeynman incorrect: 8 | 0.944624825550 * ( q / sin( ( d / ( Volt * mu ) ) ) ) 9 | 10 | # PySR incorrect: 11 | ( ( ( ( ( q * mu) + 0.14453848 ) * Volt ) -0.5977819 ) / d ) 12 | 13 | # Bayesian incorrect: 14 | q * mu -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/RunResultInfeasible.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import utils.UList; 8 | 9 | public class RunResultInfeasible extends RunResult { 10 | public RunResultInfeasible(BaronJob baronJob) { 11 | super(baronJob, UList.empty()); 12 | // printf("RESEULT INFE %s%n", baronJob.expr); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /data/FSRD/II.34.2/candidates.txt: -------------------------------------------------------------------------------- 1 | #II.34.2 2 | # AI-Descartes correct: 3 | 0.5022206207434935 * q * v * r 4 | 5 | # AI-Descartes incorrect: 6 | (( q^2 * v^2 * r )/(( -0.007549568519260945 * r^2 )+( 2.0 * q * v ))) 7 | 8 | # AIFeynman incorrect: 9 | 0.500373697922 * ( r / sin((( v * q ))^( -1 ))) 10 | 11 | # PySR incorrect: 12 | (( r * (( v * (( q * 0.5038236 ) - 0.014363476 )) + 0.11992788 )) - 0.32667777 ) 13 | 14 | # Bayesian incorrect: 15 | (( -1.1888412559044745 * v^-1 * r^-1 )+((( q * v^2 * r )+( 1.0 ))/( 2.0 * v ))) -------------------------------------------------------------------------------- /symbolic-regression/run_emf/Readme.md: -------------------------------------------------------------------------------- 1 | # How to run the code 2 | 3 | To run the code, type: 4 | 5 | ``` 6 | ./emf.sh path_to_dataset yaml_file_name > output_file.log 7 | ``` 8 | 9 | For example: 10 | 11 | ``` 12 | ./emf.sh datasets/kepler/solar opts-kepler.yaml > kepler_solar.log 13 | ``` 14 | ``` 15 | ./emf.sh datasets/langmuir/table_IX opts-langmuir.yaml > langmuir_table_IX.log 16 | ``` 17 | ``` 18 | ./emf.sh datasets/relativistic_time_dilation opts-relativistic_time_dilation.yaml > relativistic_time_dilation.log 19 | ``` 20 | -------------------------------------------------------------------------------- /data/FSRD/II.10.9/candidates.txt: -------------------------------------------------------------------------------- 1 | # AI-Descartes correct: 2 | (( 0.9959918982243473 * sigmaF )/(( eps )+( eps * chi ))) 3 | 4 | # AI-Descartes incorrect: 5 | (( sigmaF )/(( 1.0058306241517636 * eps * chi )-( eps ))) 6 | 7 | # AIFeynman incorrect: 8 | 0.348606811440 * ( sigmaF / ( eps * ( ( chi - 1.0 )^(1/2) ))) 9 | 10 | # PySR incorrect: 11 | ((( sigmaF / eps) + 0.016521687 ) / ( chi + 1.0524766 )) 12 | 13 | # Bayesian correct (changing both constants to 1): 14 | ( sigmaF / (( 1.0132126973528854 * ( 0.9672862986658131 + chi )) * eps)) 15 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.6.2a/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.6.2a exp(-theta**2/2)/sqrt(2*pi) 2 | ** theta f 3 | 2.0311013241696108 0.04987970412830027 4 | 1.6727560328461166 0.09998170264543421 5 | 2.8625996847423414 0.005434606494585103 6 | 1.242002436295575 0.18455402071150287 7 | 2.4218847314761893 0.021702500247622953 8 | 1.727465689646136 0.08844627139853302 9 | 1.3352476507554523 0.16403974476755478 10 | 1.7464670288139756 0.08810329940569207 11 | 1.7008725891364636 0.093222502964667 12 | 1.5865988441368482 0.11290604310559481 13 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/feynman/Feynman_I_16_6.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real c; 3 | End. 4 | Functions 5 | End. 6 | ProgramVariables 7 | Real Vx; 8 | Real Vx1; 9 | Real T; 10 | Real T1; 11 | Real X1; 12 | Real X; 13 | Real U; 14 | End. 15 | Problem. 16 | (T>0 & X1>0 & X>0 & T1>0 & c=3*10^8 17 | & Vx = X / T 18 | & X1 = Vx1 * T1 19 | & X = (X1 + U * T1) / (1-(U^2)/(c^2))^(1/2) 20 | & T = (T1 + (U * X1/(c^2))) / ((1-(U^2/c^2))^(1/2)) ) 21 | -> 22 | Vx = (U + Vx1 ) / ( 1 + ( (U * Vx1) / (c^2))) 23 | End. 24 | -------------------------------------------------------------------------------- /data/FSRD/II.10.9/candidates_py.txt: -------------------------------------------------------------------------------- 1 | # AI-Descartes correct: 2 | ( ( 0.9959918982243473 * sigmaF ) / ( ( eps ) + ( eps * chi ) ) ) 3 | 4 | # AI-Descartes incorrect: 5 | ( ( sigmaF ) / ( ( 1.0058306241517636 * eps * chi ) - ( eps ) ) ) 6 | 7 | # AIFeynman incorrect: 8 | 0.348606811440 * ( sigmaF / ( eps * sqrt( ( chi - 1.0 ) ) ) ) 9 | 10 | # PySR incorrect: 11 | ( ( ( sigmaF / eps) + 0.016521687 ) / ( chi + 1.0524766 ) ) 12 | 13 | # Bayesian correct (changing both constants to 1): 14 | ( sigmaF / ( ( 1.0132126973528854 * ( 0.9672862986658131 + chi ) ) * eps) ) 15 | -------------------------------------------------------------------------------- /data/FSRD/II.34.2/candidates_py.txt: -------------------------------------------------------------------------------- 1 | #II.34.2 2 | # AI-Descartes correct: 3 | 0.5022206207434935 * q * v * r 4 | 5 | # AI-Descartes incorrect: 6 | ( ( q**2 * v**2 * r ) / ( ( -0.007549568519260945 * r**2 ) + ( 2.0 * q * v ) ) ) 7 | 8 | # AIFeynman incorrect: 9 | 0.500373697922 * ( r / sin( ( ( v * q ) )**( -1 ) ) ) 10 | 11 | # PySR incorrect: 12 | ( ( r * ( ( v * ( ( q * 0.5038236 ) - 0.014363476 ) ) + 0.11992788 ) ) - 0.32667777 ) 13 | 14 | # Bayesian incorrect: 15 | ( ( -1.1888412559044745 * v**(-1) * r**(-1) ) + ( ( ( q * v**2 * r ) + ( 1.0 ) ) / ( 2.0 * v ) ) ) -------------------------------------------------------------------------------- /symbolic-regression/run_emf/opts-kepler.yaml: -------------------------------------------------------------------------------- 1 | 2 | use_dimensional_analysis: false 3 | 4 | add_noise_to_input: false 5 | 6 | relative_squared_error: false 7 | prod_exp_limit: 6 8 | max_num_consts: 1 9 | 10 | 11 | max_tree_depth: 3 12 | 13 | dimensionUnits: [m,s,kg,T,V] 14 | 15 | dimensionVars: 16 | # m s kg T V 17 | d: [1, 0, 0, 0, 0] # Length 18 | d1: [1, 0, 0, 0, 0] 19 | 20 | t: [0, 1, 0, 0, 0] # Time 21 | t1: [0, 1, 0, 0, 0] 22 | tsqr: [0, 2, 0, 0, 0] 23 | 24 | m: [0, 0, 1, 0, 0] # Mass 25 | m0: [0, 0, 1, 0, 0] 26 | M: [0, 0, 1, 0, 0] 27 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads; 3 | Real kdes; 4 | Real S0; 5 | End. 6 | ProgramVariables 7 | End. 8 | Problem 9 | ( 10 | \forall Q \forall S \forall Sa \forall P \forall rdes \forall rads( 11 | (S0>0 & Sa>0 & S>0 & P>0 & Q>0 & kads>0 & kdes>0 & rdes>0 & rads>0 12 | & S0 = S + Sa 13 | & rads = kads * P * S 14 | & rdes = kdes * Sa 15 | & rads = rdes 16 | & Q = Sa) 17 | -> 18 | Q = ((S0 * (kads / kdes)) * P) / (1 + ((kads / kdes)*P) ) 19 | ) 20 | ) 21 | End. -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/RunResultError.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import utils.UList; 8 | 9 | public class RunResultError extends RunResult { 10 | public RunResultError(BaronJob baronJob, UList output) { 11 | super(baronJob, output); 12 | } 13 | 14 | public RunResultError(BaronJob baronJob) { 15 | super(baronJob, UList.empty()); 16 | // printf("RESEULT ERR %s%n", baronJob.expr); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /data/FSRD/I.27.6/candidates_py.txt: -------------------------------------------------------------------------------- 1 | # AI-Descartes correct: 2 | ( ( 0.9979213120616837 * d1**(-1) * n**(-2) ) / ( ( d1**(-2) * n**(-2) ) + ( d1**(-1) * d2**(-1) * n**(-1) ) ) ) 3 | 4 | # AI-Descartes incorrect: 5 | ( ( d1 ) / ( ( 0.009721896668029232 * d1 * n**(-2) ) + ( 1.0 ) + ( d1 * d2**(-1) * n ))) 6 | 7 | # AIFeynman incorrect: 8 | 1.197256026831 * sin( log( d2 )) 9 | 10 | # PySR incorrect: 11 | ( d2 / ( d2 + ( n / ( d1 - ( 0.03673146 / n ) ) ) ) ) 12 | 13 | # Bayesian incorrect: 14 | ( sqrt( ( ( -0.029498254935467844 * d2**(-1) * n**(-1) ) + ( 1.0 ) ) ) / ( ( d2**(-1) * n ) + ( d1**(-1) ) ) ) -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_const_9.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads; 3 | Real kdes; 4 | Real S0; 5 | End. 6 | ProgramVariables 7 | End. 8 | Problem 9 | ( 10 | \exists c1 \exists c2 11 | \forall Q \forall S \forall Sa \forall P \forall rdes \forall rads( 12 | (S0>0 & Sa>0 & S>0 & P>0 & Q>0 & kads>0 & kdes>0 & rdes>0 & rads>0 13 | & S0 = S + Sa 14 | & rads = kads * P * S 15 | & rdes = kdes * Sa 16 | & rads = rdes 17 | & Q = Sa) 18 | -> 19 | ( c1>0 & c2>0 & Q = P/(c1*P+c2)) 20 | ) 21 | ) 22 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_const_2.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads; 3 | Real kdes; 4 | Real S0; 5 | End. 6 | ProgramVariables 7 | End. 8 | Problem 9 | ( 10 | \exists c1 \exists c2 11 | \forall Q \forall S \forall Sa \forall P \forall rdes \forall rads( 12 | (S0>0 & Sa>0 & S>0 & P>0 & Q>0 & kads>0 & kdes>0 & rdes>0 & rads>0 13 | & S0 = S + Sa 14 | & rads = kads * P * S 15 | & rdes = kdes * Sa 16 | & rads = rdes 17 | & Q = Sa) 18 | -> 19 | ( c1>0 & c2>0 & Q = P/(c1*P+c2)) 20 | ) 21 | ) 22 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_const_8.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads; 3 | Real kdes; 4 | Real S0; 5 | End. 6 | ProgramVariables 7 | End. 8 | Problem 9 | ( 10 | \exists c1 \exists c2 \exists c3 11 | \forall Q \forall S \forall Sa \forall P \forall rdes \forall rads( 12 | (S0>0 & Sa>0 & S>0 & P>0 & Q>0 & kads>0 & kdes>0 & rdes>0 & rads>0 13 | & S0 = S + Sa 14 | & rads = kads * P * S 15 | & rdes = kdes * Sa 16 | & rads = rdes 17 | & Q = Sa) 18 | -> 19 | ( c1>0 & c2>0 & c3>0 & Q = (P+c1)/(c2*P+c3)) 20 | ) 21 | ) 22 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_const_5.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads; 3 | Real kdes; 4 | Real S0; 5 | End. 6 | ProgramVariables 7 | End. 8 | Problem 9 | ( 10 | \exists c1 \exists c2 \exists c3 11 | \forall Q \forall S \forall Sa \forall P \forall rdes \forall rads( 12 | (S0>0 & Sa>0 & S>0 & P>0 & Q>0 & kads>0 & kdes>0 & rdes>0 & rads>0 13 | & S0 = S + Sa 14 | & rads = kads * P * S 15 | & rdes = kdes * Sa 16 | & rads = rdes 17 | & Q = Sa) 18 | -> 19 | ( c1>0 & c2>0 & c3>0 & Q = (P^2)/(c1*P^2+c2*P-c3)) 20 | ) 21 | ) 22 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_const_7.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads; 3 | Real kdes; 4 | Real S0; 5 | End. 6 | ProgramVariables 7 | End. 8 | Problem 9 | ( 10 | \exists c1 \exists c2 \exists c3 11 | \forall Q \forall S \forall Sa \forall P \forall rdes \forall rads( 12 | (S0>0 & Sa>0 & S>0 & P>0 & Q>0 & kads>0 & kdes>0 & rdes>0 & rads>0 13 | & S0 = S + Sa 14 | & rads = kads * P * S 15 | & rdes = kdes * Sa 16 | & rads = rdes 17 | & Q = Sa) 18 | -> 19 | ( c1>0 & c2>0 & c3>0 & Q = (c1*P^2-P)/(P^2+c2*P-c3)) 20 | ) 21 | ) 22 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_const_6.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads; 3 | Real kdes; 4 | Real S0; 5 | End. 6 | ProgramVariables 7 | End. 8 | Problem 9 | ( 10 | \exists c1 \exists c2 \exists c3 11 | \forall Q \forall S \forall Sa \forall P \forall rdes \forall rads( 12 | (S0>0 & Sa>0 & S>0 & P>0 & Q>0 & kads>0 & kdes>0 & rdes>0 & rads>0 13 | & S0 = S + Sa 14 | & rads = kads * P * S 15 | & rdes = kdes * Sa 16 | & rads = rdes 17 | & Q = Sa) 18 | -> 19 | ( c1>0 & c2>0 & c3>0 & Q = (P^2+P)/(c1*P^2+(c2*P-c3))) 20 | ) 21 | ) 22 | End. -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/SingleAssign.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | public class SingleAssign { 10 | private T x; 11 | 12 | public SingleAssign() { 13 | } 14 | 15 | public T get() { 16 | myassert(this.x != null); 17 | return x; 18 | } 19 | 20 | public void set(T x) { 21 | myassert(this.x == null); 22 | this.x = x; 23 | } 24 | 25 | public boolean isPresent() { 26 | return x != null; 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/kepler/Kepler.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real G; 3 | Real pi; 4 | End. 5 | Functions 6 | End. 7 | ProgramVariables 8 | Real m1; 9 | Real m2; 10 | Real P; 11 | Real d; 12 | Real d1; 13 | Real d2; 14 | Real w; 15 | Real Fg; 16 | Real Fc; 17 | End. 18 | Problem 19 | ( 20 | (m1>0 & m2>0 & P>0 & d2>0 & d1>0 & d>0 & pi = 3.14 & G=6.67408 * 10^(-11) 21 | & m1 * d1 = m2 * d2 22 | & d = d1 + d2 23 | & Fg = (G * m1 * m2) / d^2 24 | & Fc = m2 * d2 * w^2 25 | & Fg = Fc 26 | & P = (2 * pi )/w 27 | ) 28 | -> ( P^2 / d^3 = (4 * (pi^2)) /(G * (m1 + m2)) ) 29 | ) 30 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_const_4.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads; 3 | Real kdes; 4 | Real S0; 5 | End. 6 | ProgramVariables 7 | End. 8 | Problem 9 | ( 10 | \exists c1 \exists c2 \exists c3 \exists c4 11 | \forall Q \forall S \forall Sa \forall P \forall rdes \forall rads( 12 | (S0>0 & Sa>0 & S>0 & P>0 & Q>0 & kads>0 & kdes>0 & rdes>0 & rads>0 13 | & S0 = S + Sa 14 | & rads = kads * P * S 15 | & rdes = kdes * Sa 16 | & rads = rdes 17 | & Q = Sa) 18 | -> 19 | ( c1>0 & c2>0 & c3>0 & c4>0 & Q = (c1*P+c2)/(c3*P+c4)) 20 | ) 21 | ) 22 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_const_1.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads; 3 | Real kdes; 4 | Real S0; 5 | End. 6 | ProgramVariables 7 | End. 8 | Problem 9 | ( 10 | \exists c1 \exists c2 \exists c3 \exists c4 11 | \forall Q \forall S \forall Sa \forall P \forall rdes \forall rads( 12 | (S0>0 & Sa>0 & S>0 & P>0 & Q>0 & kads>0 & kdes>0 & rdes>0 & rads>0 13 | & S0 = S + Sa 14 | & rads = kads * P * S 15 | & rdes = kdes * Sa 16 | & rads = rdes 17 | & Q = Sa) 18 | -> 19 | ( c1>0 & c2>0 & c3>0 & c4>0 & Q = (P^2+c1*P-c4)/(c2*P^2+c3*P)) 20 | ) 21 | ) 22 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_const_12.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads; 3 | Real kdes; 4 | Real S0; 5 | End. 6 | ProgramVariables 7 | End. 8 | Problem 9 | ( 10 | \exists c1 \exists c2 \exists c3 \exists c4 11 | \forall Q \forall S \forall Sa \forall P \forall rdes \forall rads( 12 | (S0>0 & Sa>0 & S>0 & P>0 & Q>0 & kads>0 & kdes>0 & rdes>0 & rads>0 13 | & S0 = S + Sa 14 | & rads = kads * P * S 15 | & rdes = kdes * Sa 16 | & rads = rdes 17 | & Q = Sa) 18 | -> 19 | ( c1>0 & c2>0 & c3>0 & c4>0 & Q = (c1*P^2+c2*P)/(P^2+c3*P+c4)) 20 | ) 21 | ) 22 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_const_3.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads; 3 | Real kdes; 4 | Real S0; 5 | End. 6 | ProgramVariables 7 | End. 8 | Problem 9 | ( 10 | \exists c1 \exists c2 \exists c3 \exists c4 11 | \forall Q \forall S \forall Sa \forall P \forall rdes \forall rads( 12 | (S0>0 & Sa>0 & S>0 & P>0 & Q>0 & kads>0 & kdes>0 & rdes>0 & rads>0 13 | & S0 = S + Sa 14 | & rads = kads * P * S 15 | & rdes = kdes * Sa 16 | & rads = rdes 17 | & Q = Sa) 18 | -> 19 | ( c1>0 & c2>0 & c3>0 & c4>0 & Q = (P^2-c1*P-c2)/(c3*P^2-c4)) 20 | ) 21 | ) 22 | End. -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/Univ.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | public class Univ { 8 | // private LinkedHashMap, T> univ = new LinkedHashMap<>(); 9 | // 10 | // private final Function, T> constructor; 11 | // 12 | // public Univ(Function, T> constructor) { 13 | // this.constructor = constructor; 14 | // } 15 | // 16 | // public T get(K k) { 17 | // return univ.computeIfAbsent(k, k1 -> constructor.apply(k1)); 18 | // } 19 | } 20 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/CompPair.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | public class CompPair, TR extends Comparable> extends Pair 10 | implements Comparable> { 11 | public CompPair(TL left, TR right) { 12 | super(left, right); 13 | } 14 | 15 | @Override 16 | public int compareTo(CompPair that) { 17 | return chainCompare(this.left, that.left, this.right, that.right); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/SingleAssignOList.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | public class SingleAssignOList { 8 | // extends OList { 9 | //} 10 | // 11 | // public SingleAssignOList() { 12 | // super(); 13 | // } 14 | // 15 | // // should do others as well 16 | // // nuts 17 | // public T get(int ind) { 18 | // myassert(isDone()); 19 | // return vals.get(ind); 20 | // } 21 | // 22 | // public void init(UList xs) { 23 | // super.vals.addAll(xs); 24 | // } 25 | } 26 | -------------------------------------------------------------------------------- /symbolic-regression/run_emf/datasets/kepler/exoplanet/input.dat: -------------------------------------------------------------------------------- 1 | ** M m d t1 2 | 1 0.000174 0.3870 0.0880 3 | 1 0.00256 0.7233 0.2247 4 | 1 0.00315 1 0.3652 5 | 1 0.000338 1.5234 0.6870 6 | 1 1 5.2045 4.331 7 | 1 0.299 9.5822 10.747 8 | 1 0.0457 19.2012 30.589 9 | 1 0.0540 30.0475 59.800 10 | 0.33 0.018 0.0505 0.0072004 11 | 0.33 0.012 0.125 0.02814 12 | 0.33 0.008 0.213 0.06224 13 | 0.33 0.008 0.156 0.039026 14 | 0.33 0.014 0.549 0.2562 15 | 0.08 0.0027 0.0111 0.0015109 16 | 0.08 0.0043 0.0152 0.0024218 17 | 0.08 0.0013 0.0214 0.0040496 18 | 0.08 0.002 0.0282 0.0060996 19 | 0.08 0.0021 0.0371 0.0092067 20 | 0.08 0.0042 0.0451 0.0123529 21 | 0.08 0.086 0.063 0.018767 22 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/Univ1.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | import java.util.LinkedHashMap; 8 | import java.util.function.Function; 9 | 10 | public class Univ1 { 11 | private LinkedHashMap univ = new LinkedHashMap<>(); 12 | 13 | private final Function constructor; 14 | 15 | public Univ1(Function constructor) { 16 | this.constructor = constructor; 17 | } 18 | 19 | public T get(K k) { 20 | return univ.computeIfAbsent(k, k1 -> constructor.apply(k1)); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_const_14.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads; 3 | Real kdes; 4 | Real S0; 5 | End. 6 | ProgramVariables 7 | End. 8 | Problem 9 | ( 10 | \exists c1 \exists c2 \exists c3 \exists c4 \exists c5 11 | \forall Q \forall S \forall Sa \forall P \forall rdes \forall rads( 12 | (S0>0 & Sa>0 & S>0 & P>0 & Q>0 & kads>0 & kdes>0 & rdes>0 & rads>0 13 | & S0 = S + Sa 14 | & rads = kads * P * S 15 | & rdes = kdes * Sa 16 | & rads = rdes 17 | & Q = Sa) 18 | -> 19 | ( c1>0 & c2>0 & c3>0 & c4>0 & c5>0 & Q = (c1*P^2+c2*P)/(c3*P^2+c4*P+c5)) 20 | ) 21 | ) 22 | End. -------------------------------------------------------------------------------- /data/FSRD_noise/I.12.1/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.12.1 mu*Nn 2 | ** mu Nn F 3 | 1.1136223150728854 4.237022171434605 4.700159848853945 4 | 1.0664440031996527 3.7226952688233275 3.9357305780148217 5 | 1.1727920424767109 4.935133093874645 5.812063701605447 6 | 1.0216534517671008 3.9923574968124136 4.019623518971065 7 | 2.70951696613775 1.0599482284205295 2.853659251384151 8 | 4.803294418327015 2.2410919087330647 10.748563747395403 9 | 3.3935399962519317 3.3697643619512676 11.438489218802196 10 | 1.1038376639505172 4.473883640332009 4.88704658018726 11 | 1.560992634932603 1.9445633727832328 3.1770905062701855 12 | 3.565157097580731 2.2163727424230935 7.937435273439334 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.12.5/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.12.5 q2*Ef 2 | ** q2 Ef F 3 | 4.230094105945206 4.989988020338535 21.035967021245945 4 | 1.7835543769151454 4.879775762873631 8.638248446462066 5 | 1.5009868841236398 3.956718468320059 5.8589573518985585 6 | 4.20140821606527 1.285142547939738 5.3090582550239045 7 | 3.775127950158875 4.123726342679955 15.64413534987444 8 | 1.5342177805827286 1.7007520793539102 2.500187882685756 9 | 2.6313526043157203 4.4878274973734715 11.738944118322907 10 | 2.852681306110709 1.984883474048214 5.617170485756214 11 | 1.3541112539254394 1.339354261918679 1.9028579909697074 12 | 4.104422036439983 1.3760536017825369 5.599045256698929 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.39.1/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.39.1 3/2*pr*V 2 | ** pr V E_n 3 | 2.35226027971694 2.955388905677463 10.291766014125903 4 | 3.627008717775532 4.661257897765669 25.4086655521892 5 | 3.557061162155107 4.342060388916922 23.00026841852186 6 | 3.7540126154463116 2.2317943526978046 12.465992793377099 7 | 2.3658733911249605 3.961094929103867 14.071772072231443 8 | 1.4909535831726775 1.2930524729564978 2.6648534809697018 9 | 1.1607444733461363 1.290176685430577 2.040391472069001 10 | 4.299227825579135 3.707024499908272 23.956014648925265 11 | 3.0936123857893483 2.693433068446792 12.427704092912771 12 | 3.752121131782741 4.174836168385818 23.435648190332632 13 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_const_10.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads; 3 | Real kdes; 4 | Real S0; 5 | End. 6 | ProgramVariables 7 | End. 8 | Problem 9 | ( 10 | \exists c1 \exists c2 \exists c3 \exists c4 \exists c5 11 | \forall Q \forall S \forall Sa \forall P \forall rdes \forall rads( 12 | (S0>0 & Sa>0 & S>0 & P>0 & Q>0 & kads>0 & kdes>0 & rdes>0 & rads>0 13 | & S0 = S + Sa 14 | & rads = kads * P * S 15 | & rdes = kdes * Sa 16 | & rads = rdes 17 | & Q = Sa) 18 | -> 19 | ( c1>0 & c2>0 & c3>0 & c4>0 & c5>0 & Q = ((c1*P^2+c2)/(c3*P^2+c4))-(c5/P^2)) 20 | ) 21 | ) 22 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_const_11.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads; 3 | Real kdes; 4 | Real S0; 5 | End. 6 | ProgramVariables 7 | End. 8 | Problem 9 | ( 10 | \exists c1 \exists c2 \exists c3 \exists c4 \exists c5 11 | \forall Q \forall S \forall Sa \forall P \forall rdes \forall rads( 12 | (S0>0 & Sa>0 & S>0 & P>0 & Q>0 & kads>0 & kdes>0 & rdes>0 & rads>0 13 | & S0 = S + Sa 14 | & rads = kads * P * S 15 | & rdes = kdes * Sa 16 | & rads = rdes 17 | & Q = Sa) 18 | -> 19 | ( c1>0 & c2>0 & c3>0 & c4>0 & c5>0 & Q = (1/(P^2+c1))+((c2*P-c3)/(c4*P+c5))) 20 | ) 21 | ) 22 | End. -------------------------------------------------------------------------------- /data/FSRD_noise/I.25.13/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.25.13 q/C 2 | ** q C Volt 3 | 3.2327819507891773 2.137775288126694 1.4757872450285725 4 | 2.904728857498917 2.5904928136845635 1.0961419702199195 5 | 1.5081233679369968 3.363578865365973 0.45560165822587995 6 | 4.528914886238114 1.800079161418271 2.519176250710922 7 | 2.3049402175425007 2.6020197462659738 0.9080928980675002 8 | 4.968713454213191 4.754519823795629 1.0372106602923548 9 | 1.871572954759058 2.4583746128877593 0.770246398601017 10 | 3.016395436221343 1.3440912021155706 2.2261503515017744 11 | 1.129522852723945 3.194226952035817 0.3328570370725602 12 | 3.3892922157154417 3.1988022836422956 1.0714441709615865 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.29.4/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.29.4 omega/c 2 | ** omega c k 3 | 3.6966944485468165 8.365268820532078 0.4373798988785889 4 | 7.821465131945753 1.5042798337361116 5.187272186455952 5 | 9.644371257039966 2.6448438077451923 3.6657103186734745 6 | 6.121861939515799 5.799290750893129 1.0476788958537464 7 | 2.479241438712347 5.720310136427876 0.41913657278197464 8 | 1.279158449427531 4.057080221046656 0.3121168484737641 9 | 7.191681885068009 2.4951932929049176 2.9062997329314695 10 | 1.1940453265818327 4.536820924303077 0.2868346285854092 11 | 1.8703653121300563 5.749606552113539 0.2849864339940059 12 | 4.443698267299572 9.962572682691714 0.46044861825554284 13 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_const_13.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads; 3 | Real kdes; 4 | Real S0; 5 | End. 6 | ProgramVariables 7 | End. 8 | Problem 9 | ( 10 | \exists c1 \exists c2 \exists c3 \exists c4 11 | \forall Q \forall S \forall Sa \forall P \forall rdes \forall rads( 12 | (S0>0 & Sa>0 & S>0 & P>0 & Q>0 & kads>0 & kdes>0 & rdes>0 & rads>0 13 | & S0 = S + Sa 14 | & rads = kads * P * S 15 | & rdes = kdes * Sa 16 | & rads = rdes 17 | & Q = Sa) 18 | -> 19 | ( c1>0 & c2>0 & c3>0 & c4>0 & 20 | Q = (c1 * P^2 + c2 * P -c3)/(c4 * P^2 +P) ) 21 | ) 22 | ) 23 | End. -------------------------------------------------------------------------------- /data/FSRD_noise/I.14.4/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.14.4 1/2*k_spring*x**2 2 | ** k_spring x U 3 | 4.227175852873909 1.4623106468919924 4.592262469725143 4 | 1.0203046231693396 4.222930954801781 9.092936842433852 5 | 3.6724546362176556 3.5503431247719104 23.167536022801517 6 | 2.5203380362082526 3.7996498456714174 18.00623275038194 7 | 4.71994698815859 2.8324528606279804 18.796235184528573 8 | 2.235942727443416 2.246822762844178 5.651680407865478 9 | 2.1929107039522138 2.489820770518747 6.602291161303864 10 | 2.51043439712696 4.226986706386635 22.365214794472 11 | 2.026925069392104 1.1804316949703204 1.4443253551611466 12 | 4.801282260653573 1.2126101975283667 3.6266871234029474 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.8.31/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.8.31 epsilon*Ef**2/2 2 | ** epsilon Ef E_den 3 | 3.01614385758075 2.9252478831450257 13.006269079448863 4 | 3.426175729797511 4.80822836543474 39.87505560831559 5 | 3.7556876345093895 2.3115258390964137 10.3333890379505 6 | 3.6773700239576477 2.0616376531498775 7.850294030588204 7 | 1.119066413495967 1.012659756183543 0.46986821881548546 8 | 1.614907250626302 2.6164378813485603 5.479610951757592 9 | 3.185669246403984 4.225897619850289 28.334599665427973 10 | 3.4712217739338165 2.753995997029266 13.079993220130783 11 | 4.409251537021288 3.221437022667167 22.684065006511 12 | 2.7731475668077636 1.1508686109744173 1.5222664460320536 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/III.12.43/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman III.12.43 n*(h/(2*pi)) 2 | ** n h L 3 | 3.2915648395263792 4.222918346469342 2.2036994168785835 4 | 1.11915112627042 3.9193740638005585 0.7113138368273847 5 | 3.027165557887417 4.146449231184503 2.012096480155909 6 | 2.3202575031868093 1.9252871079238973 0.7092424558325269 7 | 3.8262659108638237 1.6463599231848112 1.0167878123077445 8 | 1.2267885635404419 2.451854447673837 0.4810266133204657 9 | 4.703457518778755 2.2515371779479803 1.6954826958538145 10 | 4.026738838917265 3.4872994133127797 2.259285771223447 11 | 3.413725224499884 3.676646947393695 1.9986319912993196 12 | 1.1280163769285942 2.0229675684044093 0.36573625726317166 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.34.27/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.34.27 (h/(2*pi))*omega 2 | ** omega h E_n 3 | 2.7405979981075657 4.062162805344077 1.787187978032657 4 | 3.2962914165528767 3.618313421282251 1.9234999028447453 5 | 3.5948864669400518 4.762464894796192 2.7176294328599284 6 | 4.163477498860295 1.4924486195079378 0.972332012272231 7 | 2.0406365658514924 4.439922287765954 1.4310560351028139 8 | 3.6066535786658744 3.4725082142990646 2.000235515987941 9 | 2.7920571370275984 1.0786908154926307 0.4874798935192366 10 | 3.7411052820940682 4.564278824232227 2.74007539938806 11 | 1.5424573454486596 4.052319354787253 1.0050412720770494 12 | 1.326900076741262 4.974658216457483 1.0494592487779137 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.27.18/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.27.18 epsilon*Ef**2 2 | ** epsilon Ef E_den 3 | 3.5718928534667316 4.2805367070805005 65.11555456704232 4 | 1.68382423349159 3.6902664005170025 22.735549404224777 5 | 2.939527896081522 4.087620275062647 49.009975119197755 6 | 1.7809999493477213 1.6792456457718608 4.197695892040784 7 | 2.4163153772059576 1.4429662684533242 5.8561287438885605 8 | 3.4625378554847708 4.183807596618651 60.05769095521277 9 | 3.801113030780843 1.9666512250294828 14.711702592658755 10 | 2.7160051064253223 2.6294004189495097 18.67241372840337 11 | 4.831196976336576 3.024996431934939 44.1670032031537 12 | 1.5202756898981753 1.6702818387489256 3.83134259193873 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.38.14/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.38.14 Y/(2*(1+sigma)) 2 | ** Y sigma mu_S 3 | 3.359331869243171 4.80025979800206 0.28850556468667177 4 | 3.4032068972605605 3.1666288030028524 0.4202935674414584 5 | 1.1305950769085094 1.8106069342448277 0.19619263403220116 6 | 4.137832287063912 4.544508797962241 0.37440853283106973 7 | 2.545174343743301 2.3877640897642687 0.37844815604864046 8 | 4.747291862075517 1.9889938944680985 0.7945221981212791 9 | 2.906774517667436 2.287562780082636 0.435869633851496 10 | 4.473263468521113 1.3508201023446693 0.9510697842992607 11 | 3.407501899869233 4.199468171456868 0.3333305249344043 12 | 4.008532268576791 3.1519264475951343 0.4868469550610819 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.3.24/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.3.24 Pwr/(4*pi*r**2) 2 | ** Pwr r flux 3 | 2.743142283461401 3.824891688831995 0.014912081429169584 4 | 4.180582621985859 2.831018219042389 0.04141738226648883 5 | 3.799119633927765 3.0817983787041117 0.03235551451402504 6 | 2.86089853697888 2.4165559493105238 0.03893306602237347 7 | 2.9724273110502266 3.661018349143592 0.017471522871489058 8 | 3.9542333276133617 2.5105279129956806 0.04934290753647473 9 | 1.0264304957109718 2.1040363830606816 0.018661300129535523 10 | 2.39141181558755 3.1830265479260658 0.01954936821360973 11 | 2.460555241479979 3.2701351346664844 0.018141148548625252 12 | 1.8847407572245434 3.9950790870361312 0.008994489436340016 13 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/DimUnit.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | import utils.UList; 10 | 11 | public class DimUnit { 12 | public final String nm; 13 | 14 | private DimUnit(String nm) { 15 | this.nm = nm; 16 | } 17 | 18 | private static boolean inited = false; 19 | 20 | public static UList mkUnits(UList nms) { 21 | myassert(!inited); 22 | inited = true; 23 | return nms.map(nm -> new DimUnit(nm)); 24 | } 25 | 26 | public String toString() { 27 | return nm; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/DropConstSplit.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | public class DropConstSplit extends Split { 10 | public DropConstSplit(MLInstance mlsplit) { 11 | super(mlsplit); 12 | } 13 | 14 | public String toString() { 15 | return "drp_" + mlsplit.cnm; 16 | } 17 | 18 | protected int compareToAux(DropConstSplit that) { 19 | //return chainCompare(this.mlsplit.mn.compareTo(that.mlsplit.mn), this.splitPos, that.splitPos); 20 | return chainCompare(this.mlsplit, that.mlsplit); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/Input2.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import utils.UList; 8 | 9 | // This is a kludge for dealing with sampled input 10 | public class Input2 { 11 | public final Input inpx; 12 | public final UList input; 13 | 14 | public Input2(Input inpx, UList input) { 15 | this.inpx = inpx; 16 | this.input = input; 17 | } 18 | 19 | public Input2 input2(int nsamples, int seed) { 20 | // preserve original order 21 | return new Input2(inpx, input.intersection(input.randElems(nsamples, seed))); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.11.28/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.11.28 1+n*alpha/(1-(n*alpha/3)) 2 | ** n alpha theta 3 | 0.635177604714694 0.8425425543109505 1.6578332151831832 4 | 0.32458626435950955 0.2972524380299063 1.0964581351577984 5 | 0.7240765229232629 0.9953152939785029 1.956639323440937 6 | 0.9882865843995291 0.3669709013615269 1.425769419542757 7 | 0.9250596513947723 0.4132746768839176 1.433356405898111 8 | 0.1222603342485088 0.41496870708353073 1.030248573020363 9 | 0.7290573427587248 0.4171214772826114 1.3436847951464892 10 | 0.307901496844619 0.24664395057396704 1.0565306414237348 11 | 0.7229801711955336 0.3051965773671912 1.2430450195823033 12 | 0.05280415332517441 0.02421184058031467 1.0090379758338828 13 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/CPair.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | public class CPair, TR extends Comparable> 12 | extends Pair implements Comparable> { 13 | 14 | public CPair(TL left, TR right) { 15 | super(left, right); 16 | } 17 | 18 | @Override 19 | public int compareTo(CPair that) { 20 | return chainCompare(this.left, that.left, this.right, that.right); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.6.2/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.6.2 exp(-(theta/sigma)**2/2)/(sqrt(2*pi)*sigma) 2 | ** sigma theta f 3 | 2.564830477319424 1.0663712017158176 0.14370945533445356 4 | 2.8932169466669677 2.8713313517397934 0.08485868383387139 5 | 2.3150505694914836 1.6346393044277656 0.13539237417297226 6 | 1.4298257485557877 2.852188446260336 0.03802563978312426 7 | 2.293784737145745 2.82801732058014 0.082216612388479 8 | 1.8318338304277022 2.367015484227646 0.09458252032993471 9 | 2.4725006088910035 2.7550933823781945 0.08713020432966107 10 | 2.9338809269763058 2.0363975519855537 0.10768197450428076 11 | 2.62399963248381 2.989921984861936 0.07947417994764211 12 | 2.574624460107822 1.228026616002313 0.13798893722539657 13 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/InputErrorCode.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | 8 | /** this type exists to make it easier to relate the tests in opti to external tests. 9 | * There are comments in the code where these codes are used. 10 | * I may put comments in here if the code is used in more than one place. 11 | * Some are so obvious they aren't commented. 12 | * 13 | * OptError.nonFatalErrors contains a list of errors that we are temporarily not treating as fatal 14 | * until the data is cleaned up. 15 | * */ 16 | public enum InputErrorCode { 17 | 18 | } 19 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/DelayedInitUMap.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | import java.util.function.Supplier; 8 | 9 | import utils.UMap; 10 | 11 | public class DelayedInitUMap extends UMap { 12 | private final Supplier> supplier; 13 | 14 | public DelayedInitUMap(Supplier> supplier) { 15 | super("howdy"); 16 | this.supplier = supplier; 17 | } 18 | 19 | public void init() { 20 | super.init(supplier.get()); 21 | } 22 | 23 | // public static DelayedInitUList empty() { 24 | // return new DelayedInitUList(() -> UList.empty()); 25 | // } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/time_dilation/time_dilation.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real c; 3 | Real a; 4 | Real eps; 5 | End. 6 | Functions 7 | End. 8 | ProgramVariables 9 | Real v; 10 | Real dt0; 11 | Real dt; 12 | Real d; 13 | Real L; 14 | Real f0; 15 | Real f; 16 | Real df; 17 | End. 18 | Problem( (d > 0 & L > 0 & v>0 & c = 3*10^8 & f0>0 & f>0 & dt0>0 & dt>0 & df>0 & 19 | v > 37 & 20 | v < 115 & 21 | dt0 = 2*d/c & 22 | L^2 = d^2 + (v*dt/2)^2 & 23 | dt = 2*L/c & 24 | f0 = 1/dt0 & 25 | f = 1/dt & 26 | df = f - f0 27 | ) 28 | -> 29 | ( df/f0*10^15 = (1-((v^2)/(c^2)))^(1/2) - 1 ) 30 | ) 31 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/time_dilation/time_dilation_f2_relativistic_A.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real c; 3 | Real a; 4 | Real eps; 5 | End. 6 | Functions 7 | End. 8 | ProgramVariables 9 | Real v; 10 | Real dt0; 11 | Real dt; 12 | Real d; 13 | Real L; 14 | Real f0; 15 | Real f; 16 | Real df; 17 | End. 18 | Problem( (d > 0 & L > 0 & 19 | eps = 1 & 20 | c = 3*10^8 & 21 | v > 37 & 22 | v < 49 & 23 | dt0 = 2*d/c & 24 | L^2 = d^2 + (v*dt/2)^2 & 25 | dt = 2*L/c & 26 | f0 = 1/dt0 & 27 | f = 1/dt & 28 | df = f - f0 29 | ) 30 | -> 31 | ( abs(df/f0*10^15 - (v/(0.00689*v+1) - v)) < eps) 32 | ) 33 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/time_dilation/time_dilation_f1_relativistic_A.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real c; 3 | Real a; 4 | Real eps; 5 | End. 6 | Functions 7 | End. 8 | ProgramVariables 9 | Real v; 10 | Real dt0; 11 | Real dt; 12 | Real d; 13 | Real L; 14 | Real f0; 15 | Real f; 16 | Real df; 17 | End. 18 | Problem( (d > 0 & L > 0 & 19 | eps = 1 & 20 | c = 3*10^8 & 21 | v > 37 & 22 | v < 115 & 23 | dt0 = 2*d/c & 24 | L^2 = d^2 + (v*dt/2)^2 & 25 | dt = 2*L/c & 26 | f0 = 1/dt0 & 27 | f = 1/dt & 28 | df = f - f0 29 | ) 30 | -> 31 | ( abs(df/f0*10^15 + 0.00563*(v^2)) < eps) 32 | ) 33 | End. 34 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/VarExp.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | public class VarExp { 8 | // public final MLInstance inst; 9 | // public final InVar var; 10 | // public final int lbound; 11 | // public final int ubound; 12 | // public final boolean integral; 13 | // 14 | // public final String nm; 15 | // 16 | // public VarExp(MLInstance inst, InVar var, int lbound, int ubound, boolean integral) { 17 | // 18 | // super(); 19 | // this.nm = "exp" + inst.nodeNo + var.nm; 20 | // 21 | // this.inst = inst; 22 | // this.var = var; 23 | // this.lbound = lbound; 24 | // this.ubound = ubound; 25 | // this.integral = integral; 26 | // } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/time_dilation/time_dilation_f3_relativistic_A.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real c; 3 | Real a; 4 | Real eps; 5 | End. 6 | Functions 7 | End. 8 | ProgramVariables 9 | Real v; 10 | Real dt0; 11 | Real dt; 12 | Real d; 13 | Real L; 14 | Real f0; 15 | Real f; 16 | Real df; 17 | End. 18 | Problem( (d > 0 & L > 0 & 19 | eps = 1 & 20 | c = 3*10^8 & 21 | v > 37 & 22 | v < 98 & 23 | dt0 = 2*d/c & 24 | L^2 = d^2 + (v*dt/2)^2 & 25 | dt = 2*L/c & 26 | f0 = 1/dt0 & 27 | f = 1/dt & 28 | df = f - f0 29 | ) 30 | -> 31 | ( abs(df/f0*10^15 - (0.00537*v^2*(v + v^2)^0.5/(1-v))) < eps) 32 | ) 33 | End. -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/ExpSplit.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | public class ExpSplit extends Split { 10 | public final boolean splitGT1; 11 | 12 | public ExpSplit(MLInstance mlsplit, boolean splitPos) { 13 | super(mlsplit); 14 | this.splitGT1 = splitPos; 15 | } 16 | 17 | public String toString() { 18 | return mlsplit.cnm + (splitGT1 ? "ge1" : "le1"); 19 | } 20 | 21 | protected int compareToAux(ExpSplit that) { 22 | //return chainCompare(this.mlsplit.mn.compareTo(that.mlsplit.mn), this.splitPos, that.splitPos); 23 | return chainCompare(this.mlsplit, that.mlsplit, this.splitGT1, that.splitGT1); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/time_dilation/time_dilation_f1_relativistic_R.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real c; 3 | Real a; 4 | Real eps; 5 | End. 6 | Functions 7 | End. 8 | ProgramVariables 9 | Real v; 10 | Real dt0; 11 | Real dt; 12 | Real d; 13 | Real L; 14 | Real f0; 15 | Real f; 16 | Real df; 17 | End. 18 | Problem( (d > 0 & L > 0 & 19 | eps = 0.02 & 20 | c = 3*10^8 & 21 | v > 37 & 22 | v < 10^8 & 23 | dt0 = 2*d/c & 24 | L^2 = d^2 + (v*dt/2)^2 & 25 | dt = 2*L/c & 26 | f0 = 1/dt0 & 27 | f = 1/dt & 28 | df = f - f0 29 | ) 30 | -> 31 | ( abs(df/f0*10^15 + 0.00563*(v^2))/(df/f0*10^15) < eps) 32 | ) 33 | End. 34 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/MalformedInputErrorCode.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | /** These differ from InputErrorCode, in that these are really never ever supposed to happen. They are RuntimeErrors, and so are not annotated. */ 8 | public enum MalformedInputErrorCode { 9 | /** used any time "" is used an id for an entity (Node, Seg, etc) */ 10 | EMPTY_STRING_AS_ID, 11 | 12 | REFERENTIAL_INTEGRITY_FAILURE, 13 | 14 | INVALID_COMMODITY_TYPE, 15 | 16 | NEGATIVE_VALUE, 17 | 18 | /** used for any input that is supposed to represent a 1-1 mapping */ 19 | BAD_MAP, 20 | 21 | /** catch-all for any value that isn't in an accepted set */ 22 | INVALID_VALUE, 23 | } 24 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.14.3/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.14.3 m*g*z 2 | ** m g z U 3 | 2.5238690452034542 4.049215387445753 4.487261334519768 45.98443597392103 4 | 2.846019777084987 4.8832832252571805 2.521482596821277 35.2224660640021 5 | 1.286129626814863 2.335287683636114 2.6467057497255224 8.410524581856652 6 | 1.3964363897411132 3.038297721943805 4.3512144971918385 18.17520781223919 7 | 3.029507088753866 1.3054953610324942 1.2253308821834867 5.442963229694206 8 | 4.735766231319934 3.624686912327759 2.0187874324222426 34.41130135587806 9 | 4.418179432319663 2.8112588082687004 4.573788307518447 57.3151976214735 10 | 4.000446785037204 3.4166283719811292 3.6315407741081716 48.94175864052217 11 | 3.5065174545570863 2.0835237202018235 4.885942048412595 36.15472303313161 12 | 2.603162985095605 2.672880467390982 4.307467804566785 29.921648862377875 13 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/time_dilation/time_dilation_f2_relativistic_R.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real c; 3 | Real a; 4 | Real eps; 5 | End. 6 | Functions 7 | End. 8 | ProgramVariables 9 | Real v; 10 | Real dt0; 11 | Real dt; 12 | Real d; 13 | Real L; 14 | Real f0; 15 | Real f; 16 | Real df; 17 | End. 18 | Problem( (d > 0 & L > 0 & 19 | eps = 0.02 & 20 | c = 3*10^8 & 21 | v > 37 & 22 | v < 38 & 23 | dt0 = 2*d/c & 24 | L^2 = d^2 + (v*dt/2)^2 & 25 | dt = 2*L/c & 26 | f0 = 1/dt0 & 27 | f = 1/dt & 28 | df = f - f0 29 | ) 30 | -> 31 | ( abs(df/f0*10^15 - (0.00537*v^2*(v + v^2)^0.5/(1-v)))/(df/f0*10^15) < eps) 32 | ) 33 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/time_dilation/time_dilation_f3_relativistic_R.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real c; 3 | Real a; 4 | Real eps; 5 | End. 6 | Functions 7 | End. 8 | ProgramVariables 9 | Real v; 10 | Real dt0; 11 | Real dt; 12 | Real d; 13 | Real L; 14 | Real f0; 15 | Real f; 16 | Real df; 17 | End. 18 | Problem( (d > 0 & L > 0 & 19 | eps = 0.02 & 20 | c = 3*10^8 & 21 | v > 37 & 22 | v < 109 & 23 | dt0 = 2*d/c & 24 | L^2 = d^2 + (v*dt/2)^2 & 25 | dt = 2*L/c & 26 | f0 = 1/dt0 & 27 | f = 1/dt & 28 | df = f - f0 29 | ) 30 | -> 31 | ( abs(df/f0*10^15 - (0.00537*v^2*(v + v^2)^0.5/(1-v)))/(df/f0*10^15) < eps) 32 | ) 33 | End. -------------------------------------------------------------------------------- /data/FSRD_noise/I.43.31/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.43.31 mob*kb*T 2 | ** mob T kb D 3 | 4.444129459002728 3.7061579833638087 3.7279492064228825 61.70748640716642 4 | 2.747842365518424 1.8422512882731397 1.9966505632963 9.7647292018352 5 | 3.164445740240691 2.4400388858599773 3.6434651230191597 27.842234598849856 6 | 2.6317335019732884 2.7340480650788965 1.9170912821463726 13.32909306684673 7 | 4.909346393185246 4.195122049746109 2.710161056864073 55.97753560247171 8 | 3.2992534058386402 1.459364403231382 4.493783019253745 21.09273142501734 9 | 2.2041780940262887 3.6926783286969065 3.2464794046165073 26.458555747248408 10 | 2.21827911716899 3.6889052770445687 4.719896079637627 39.01979734585574 11 | 2.0614272308522708 4.436304020780238 3.5787431268916494 32.956751022390854 12 | 2.881178166126351 2.0650210348033426 1.3393972250831858 8.882514276390408 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.34.2/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.34.2 q*v*r/2 2 | ** q v r mom 3 | 4.909420700982304 1.6328072517031305 4.583077161829755 18.61806781420384 4 | 3.1680773508439772 4.374369118883754 3.8321132435607828 26.867938709852456 5 | 4.1687005900304275 4.521784133831449 1.7436698426216912 16.403155131634936 6 | 4.7039054632307895 1.8299881560259226 2.5602279290882706 10.939717097047179 7 | 1.3745606420990826 2.2144683369074856 4.489609710307741 7.050651725248936 8 | 3.9633766900427285 4.285512315816855 4.267916928561488 36.434039521491044 9 | 1.4218469237163762 2.604921983988694 2.300429215008697 4.146662991984351 10 | 2.322491166687168 3.0919754889910176 4.00644421106238 14.51167146854892 11 | 2.5132249060467897 4.068865295026482 4.0148250933562615 20.325506567604187 12 | 4.644268920935202 3.3519556608410963 3.1085253165026856 24.23054732178945 13 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/ConstSplit.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | public class ConstSplit extends Split { 10 | public final boolean splitPositive; 11 | 12 | public ConstSplit(MLInstance mlsplit, boolean splitPos) { 13 | super(mlsplit); 14 | this.splitPositive = splitPos; 15 | } 16 | 17 | public String toString() { 18 | return mlsplit.cnm + (splitPositive ? "pos" : "neg"); 19 | } 20 | 21 | protected int compareToAux(ConstSplit that) { 22 | //return chainCompare(this.mlsplit.mn.compareTo(that.mlsplit.mn), this.splitPos, that.splitPos); 23 | return chainCompare(this.mlsplit, that.mlsplit, this.splitPositive, that.splitPositive); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.15.10/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.15.10 m_0*v/sqrt(1-v**2/c**2) 2 | ** m_0 v c p 3 | 4.3297485120004655 1.856238646202245 4.374684574711845 8.839451482599998 4 | 4.916935153326957 1.5554145109587183 3.1421474606040958 8.79359332548566 5 | 4.45845396074238 1.958024416877052 9.502753728339306 8.941364087129527 6 | 4.455764510784553 1.926762678662352 5.719753916472399 9.11440836428692 7 | 1.4651382522141145 1.837778801333927 7.705169318660131 2.8357671173490737 8 | 3.2354056377392264 1.2291129737976734 8.040966492833311 4.075658336664496 9 | 1.0676959985144507 1.7254577635994601 7.610776456850593 1.882968025498227 10 | 2.16317358016493 1.8706686021375836 6.9903591515037515 4.290257866641236 11 | 3.7128239017539517 1.463370009816764 3.3920154149872275 5.84503935633811 12 | 2.583695124700177 1.0167453770272434 7.459289240777223 2.4858238137750233 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.16.6/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.16.6 (u+v)/(1+u*v/c**2) 2 | ** c v u v1 3 | 1.6617103498768002 1.5749395311313963 2.1096611689571954 1.6422144847866007 4 | 4.348893628625015 2.7692196087650736 3.4806376645991017 4.123176546387768 5 | 4.082795740557 2.654948030410544 1.6230930470956348 3.3488930339203895 6 | 4.329118002047711 3.3192089768311295 1.1336094143475806 3.6833866109924456 7 | 4.588671820626571 2.2085871429453805 3.2606756841186586 4.014065023049467 8 | 3.8178636613893278 3.0188809754745884 4.126457638417616 3.8907485126264927 9 | 1.8321602029748512 2.464595626717189 2.0322581327644262 1.8247111837635999 10 | 4.348061267535476 3.6306792243612866 4.4733419620749935 4.35486982391 11 | 1.2608893879087986 4.195553183440447 4.342432358844913 0.6293010598813226 12 | 3.036926929407531 4.977816475269023 3.7192676016648005 2.930210275188948 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.34.2a/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.34.2a q*v/(2*pi*r) 2 | ** q v r I 3 | 1.2797573997646334 4.407584865084525 1.6983101137046628 0.5296683144774467 4 | 4.510935441908675 2.9706267286766965 3.370806579201412 0.6336307164392133 5 | 1.8828747771258074 4.442784572648865 3.501825742649541 0.3870107459059008 6 | 2.54286513450471 4.29016604401879 4.669646585341909 0.3595320353382831 7 | 1.5797429564974665 1.512447906100073 4.360204785423378 0.07939919752493303 8 | 2.89299943665663 4.0115480866790865 3.5896050761077016 0.510601700096178 9 | 2.349667794602015 2.4874835466356555 1.8787152402248282 0.49945568134644436 10 | 4.163341327926295 3.1352119556006968 4.81437407731252 0.4206727507314754 11 | 4.340787880629642 4.896155794744807 4.978472193886333 0.6856704308493716 12 | 4.936533000254321 1.796185861269287 1.7894242357371777 0.7926518371990563 13 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/time_dilation/time_dilation_f4_relativistic_A.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real c; 3 | Real a; 4 | Real eps; 5 | End. 6 | Functions 7 | End. 8 | ProgramVariables 9 | Real v; 10 | Real dt0; 11 | Real dt; 12 | Real d; 13 | Real L; 14 | Real f0; 15 | Real f; 16 | Real df; 17 | End. 18 | Problem( (d > 0 & L > 0 & 19 | eps = 1 & 20 | c = 3*10^8 & 21 | v > 37 & 22 | v < 126 & 23 | dt0 = 2*d/c & 24 | L^2 = d^2 + (v*dt/2)^2 & 25 | dt = 2*L/c & 26 | f0 = 1/dt0 & 27 | f = 1/dt & 28 | df = f - f0 29 | ) 30 | -> 31 | ( abs(df/f0*10^15 + (0.00545*v^4/((v^2 +v^(-2))^0.5*(v-1)))) < eps) 32 | 33 | ) 34 | End. 35 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.27.6/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.27.6 1/(1/d1+n/d2) 2 | ** d1 d2 n foc 3 | 2.538494602064988 3.0388510570665277 2.9553839838348104 0.7371898726212733 4 | 4.32171498113177 2.6987821938438024 2.066586599097662 1.0027730110362996 5 | 4.399012911253667 1.411948814644115 3.2266876496759713 0.40655200106932765 6 | 2.8050739633715627 1.4346769388703664 2.7083802869762277 0.4409595683524544 7 | 1.6825965488715857 3.390604300379706 4.6340157935517 0.5053849001969059 8 | 1.5727973174583294 1.7094883790396969 1.5149775947176036 0.662714968136362 9 | 1.3019310789764709 4.238701319341123 4.874912851864801 0.5278523552992396 10 | 2.6754393007368136 2.040566140116022 3.9894828957016006 0.4214891739436496 11 | 2.989643729820184 4.131409742848891 1.628525994258292 1.3745252282455669 12 | 2.2076291206630954 3.1287675818526655 1.1353470407464905 1.206992373108616 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.34.1/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.34.1 omega_0/(1-v/c) 2 | ** c v omega_0 omega 3 | 7.4237613007551015 1.111684694688123 2.241586764094636 2.553400051893499 4 | 7.113963150438648 1.0048003937513514 4.773595449225803 5.549763021568445 5 | 5.05417376880951 1.46821784989941 4.496989149082639 6.270805338311695 6 | 3.524841509901264 1.4540640954226647 4.832162399818056 8.169542575097434 7 | 6.910664870404286 1.3296304855024181 4.072985001964528 5.040974810241533 8 | 6.937630248872582 1.6163239066239012 3.2783353761418925 4.358709263764786 9 | 3.596001319918126 1.3244737370203805 1.1066642917686935 1.7271489937187896 10 | 3.8865049283992903 1.8660173551175583 1.5990770567602115 3.0345956184091176 11 | 3.5946722854994837 1.9971689087955324 2.4291303369492057 5.427860083723876 12 | 8.93643263749654 1.5900582503643597 4.394857431601518 5.308755927074001 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.37.1/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.37.1 mom*(1+chi)*B 2 | ** mom B chi E_n 3 | 3.3181263024909766 1.6058783064508813 1.3061542336549068 12.820381334192186 4 | 3.080250887963166 3.939028007519739 4.850713972249833 71.84970893444218 5 | 1.4687302293687243 1.8688390328885047 4.066457688010802 14.321521845137983 6 | 4.249335530308743 4.539501884408299 1.0213987068785797 39.259652686166746 7 | 1.8188431099819833 2.8689835437895623 3.0382066938575534 21.47225242976028 8 | 2.7245492960987043 2.1930904754765015 1.794649601823782 16.7576697371565 9 | 3.039804122591014 2.2183994508203324 2.8216796339316503 25.297097144748367 10 | 4.122818060722612 3.9408078927793437 4.74880429235268 93.03058403955848 11 | 4.221765564223292 4.857189715376549 4.535007372764148 114.5406150924721 12 | 2.2924023312974593 1.0548303507158203 4.371078625237558 13.113197490717333 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.10.7/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.10.7 m_0/sqrt(1-v**2/c**2) 2 | ** m_0 v c m 3 | 1.6464076172823914 1.5889609877804642 5.755668082254919 1.705421902561314 4 | 2.858229839418881 1.6432269505518824 8.635739042169742 2.901622735338245 5 | 3.1701583880598925 1.0408725806201948 6.7694936011309625 3.1966640732673497 6 | 4.1871364530723785 1.2014883476049827 3.6390030799594877 4.428461400597435 7 | 1.5461305862521866 1.2104726582878558 6.645762190833596 1.5593557710664163 8 | 2.7333114763990025 1.5650413771412068 8.321502428792495 2.7731743089839545 9 | 2.6196001588534505 1.5187227486371275 8.40424058308895 2.666012854428904 10 | 4.474399640608235 1.1678913223362766 8.472221479131807 4.532040097339724 11 | 1.922261607082746 1.1967083517472619 7.040499002015596 1.9560610167755732 12 | 2.82523547719835 1.6083737510561176 7.340715333452344 2.8576379632067312 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.39.11/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.39.11 1/(gamma-1)*pr*V 2 | ** gamma pr V E_n 3 | 2.341570201354442 1.3764070568129698 4.655304380518784 4.820024173460846 4 | 3.3023847865124987 2.803788322876389 2.5731786931515925 3.1411998588083403 5 | 2.641846956678157 4.234030429370946 3.989186491246636 10.305206007143047 6 | 3.224802286173178 2.3217605289347154 1.5005278137072633 1.532726151996773 7 | 3.1979892335471303 4.7331337464599015 4.3274161867913365 9.288802667752744 8 | 2.0751166812828545 1.8561675737828045 2.4001199795915724 4.104918012579775 9 | 2.085156659280066 2.2663921509235525 3.1286487342348113 6.592086744824124 10 | 3.1003935954766257 1.6013614328108265 3.4653950193285348 2.602349755514825 11 | 4.25915057506122 3.8156016046517203 3.1694664406479034 3.795384559588977 12 | 2.028314052122572 2.722391183704432 4.048510633405419 10.714246689225474 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.47.23/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.47.23 sqrt(gamma*pr/rho) 2 | ** gamma pr rho c 3 | 4.078210325911662 3.550499740192749 4.997743873670108 1.7450116338960195 4 | 4.563097294044304 2.6901131847923523 3.5780100416693883 1.8442731561809291 5 | 2.3060099819353583 4.13209207563524 3.130880587477444 1.749226879865669 6 | 4.327808924102337 4.730624494377283 3.070276407583045 2.5594902177499805 7 | 1.1036597634954552 1.6341717088528527 2.8796123284502553 0.8116277895313757 8 | 1.7816153023353634 4.485072818548179 4.1668861853566295 1.356359050214028 9 | 4.983854062359015 3.7284427388437704 2.9094586527122113 2.534643123136322 10 | 3.47081247349296 4.059654368838123 1.5656346865334836 2.9536519436052684 11 | 1.779893424417307 1.5314529965317534 2.2505965554970078 1.0912434290164554 12 | 3.6462897228116122 3.062771562771169 1.9791785982132462 2.3739603068734 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.27.16/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.27.16 epsilon*c*Ef**2 2 | ** epsilon c Ef flux 3 | 4.0963892046913095 1.5249189930948361 2.561970198039069 41.73665589683515 4 | 1.5734166062331751 2.2481167390011976 3.372698818327638 40.6276852335248 5 | 1.6852602653710234 1.7420268419820513 1.902842099692322 10.89986351654462 6 | 2.6909301274188366 1.5574933052049014 1.1184511224769356 5.234315965107925 7 | 3.776254801897161 4.3654143913521875 2.0301356052513033 69.36428108518929 8 | 4.398051091655192 1.1853418652317953 4.044448150644223 85.83801482263539 9 | 4.560571292334101 3.7132890625120676 3.001596321551464 152.26553582183126 10 | 1.0169115714041879 3.621470991181272 3.654813946113461 48.91535225928989 11 | 4.749722670270902 4.698434528580734 2.2599373060199706 114.01690247126936 12 | 4.319241866246177 3.679561440076584 3.169874182798783 159.1266565708737 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/III.7.38/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman III.7.38 2*mom*B/(h/(2*pi)) 2 | ** mom B h omega 3 | 1.3023403644560734 3.196448862699348 1.8727056265742559 29.36837323320705 4 | 4.607420764573607 1.4944600148454965 2.276941322470723 37.01630224006049 5 | 4.245122494748003 4.481779190614063 3.0385935598462837 78.92758147632429 6 | 4.443575321533831 2.7359418289538113 1.4591466670806512 105.0310355809565 7 | 1.3944946866456456 1.4903385130107685 2.6611856298202388 9.372702894627677 8 | 4.870625179266824 2.4198535447320935 1.3067205999461144 113.35956914275975 9 | 3.110963937856496 3.815517568577214 2.808896517943055 52.166418176956086 10 | 3.5557290854964947 1.6572450348615568 1.7222311539480395 43.102432673915054 11 | 4.620988468231001 1.804807054724059 3.7512106748019023 26.69213856453343 12 | 3.7418857953497757 4.188041955762964 3.629008998941308 53.40923711564559 13 | -------------------------------------------------------------------------------- /symbolic-regression/emf/Readme.md: -------------------------------------------------------------------------------- 1 | # How to modify the code and compile 2 | 3 | One way to modify the code and create a new executable, 4 | is to use Eclipse. 5 | Eclipse can be downloaded [here](https://www.eclipse.org/). 6 | 7 | The steps to modify the code and create a new executable in Eclipse are: 8 | 1. Install Eclipse. 9 | 2. Import the project emf into Eclipse. 10 | 3. Modify the code. 11 | 4. Create a new runnable JAR file in Eclipse by doing: 12 | * From the menu bar's File menu, select Export. 13 | * Expand the Java node and select Runnable JAR file. Click Next. 14 | * In the Runnable JAR File Specification page, select a `Java Application` launch configuration to use to create a runnable JAR. 15 | * In the Export destination field, either type or click Browse to select a location for the JAR file. 16 | * Select an appropriate library handling strategy. 17 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/IntList.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | public class IntList extends UList implements Comparable { 8 | 9 | public IntList() { 10 | 11 | } 12 | 13 | // public IntList subList(int fromIndex) { 14 | // //return new UList<>(this, fromIndex, toIndex); 15 | // return super.subList(fromIndex); 16 | // } 17 | 18 | // modified from OList 19 | @Override 20 | public int compareTo(IntList x) { 21 | if (size() < x.size()) 22 | return -1; 23 | if (size() > x.size()) 24 | return 1; 25 | for (int i = 0; i < size(); ++i) { 26 | int cmp = get(i).compareTo(x.get(i)); 27 | if (cmp != 0) 28 | return cmp; 29 | } 30 | return 0; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.48.20/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.48.20 m*c**2/sqrt(1-v**2/c**2) 2 | ** m v c E_n 3 | 3.6193911192018797 1.0389197502571466 6.52125834182574 156.02231842165298 4 | 2.264209651594326 1.3089961672456685 4.752236421907147 52.103469398437134 5 | 3.851997559682511 1.5345993119941528 7.008884778975209 195.8657733302238 6 | 2.7428673486583692 1.1368000827138673 6.440813737110764 115.56120441458944 7 | 4.908773961935397 1.8174538706762902 3.3619599815348113 67.49344758419281 8 | 1.6271357527201458 1.6639421530246707 7.613208321563217 98.08817778665534 9 | 2.1606500425342086 1.4865851483096106 8.358422347313857 153.39025177927854 10 | 2.632080315011535 1.1163284615302698 6.133763126099915 100.77511852901523 11 | 4.192718451816921 1.6940392251737566 5.313917921624222 124.29358179755626 12 | 3.189837911618594 1.2829569549916102 7.377059750760367 176.83710259216852 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.13.23/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.13.23 rho_c_0/sqrt(1-v**2/c**2) 2 | ** rho_c_0 v c rho_c 3 | 4.297200726726704 1.1729668013317687 7.7604583376915475 4.347236466347749 4 | 1.1949268630585448 1.6973960216787862 8.72595185764694 1.263278585660427 5 | 3.91209800842402 1.6879479086212137 6.779594793244802 3.999902690467875 6 | 3.119026802927873 1.9357495025482683 3.914114732048093 3.583616852591935 7 | 1.015303520581099 1.2605754451418538 3.674676043066011 1.0873193778262453 8 | 4.568960350550554 1.228951389481719 9.766422059993165 4.593955226028038 9 | 3.18292126115563 1.7252102096308657 5.924901728911818 3.304231390251438 10 | 3.6694993930658044 1.5642163679486496 3.8810768902191284 4.04148858081156 11 | 4.961318615265013 1.5150862830878054 4.738727811410449 5.1803857489365095 12 | 2.20335209552624 1.2781207073680456 9.965484380385432 2.230125443808078 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.13.34/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.13.34 rho_c_0*v/sqrt(1-v**2/c**2) 2 | ** rho_c_0 v c j 3 | 3.0113500444117656 1.2383858016479072 7.362980153325305 3.8014101667857294 4 | 4.22507389345502 1.2572135146426624 5.770657366386987 5.4741744420487555 5 | 4.964093410866422 1.5563808164468287 8.95768656231602 7.840511407557928 6 | 3.198585629125339 1.9166668776319145 6.432370145186012 6.37593109246906 7 | 4.5844685738487065 1.2316982538497667 9.804195204342895 5.698910410537263 8 | 1.8250126116306276 1.5360404366226987 6.836182594962191 2.886094603765764 9 | 1.9985646964919397 1.5940785950175749 5.354476003874543 3.343262813673902 10 | 4.833949615634067 1.7302752416965892 7.796431989721551 8.592367084569485 11 | 1.603934143275985 1.5684443653709064 9.277497354948768 2.597888398420089 12 | 3.5592280144978066 1.8123500814775158 9.10528333153843 6.5007435345139655 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/III.15.27/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman III.15.27 2*pi*alpha/(n*d) 2 | ** alpha n d k 3 | 1.3921548379114053 4.776146281102531 1.4207456247194865 1.268860865496817 4 | 1.5996464324523605 3.9739587352479813 4.138491302266858 0.599637450411538 5 | 3.9991453425780286 1.3214327603542482 1.5545105053758435 12.213401530918839 6 | 3.5552612909274677 4.333343728922685 3.299383575186917 1.5935289450576953 7 | 1.0629586420359005 3.673363528111116 1.068568384158778 1.6874853776388266 8 | 1.113851698824893 4.743385613992375 3.678754563930946 0.33881627052001795 9 | 3.939375205965111 3.787349725620946 2.5899294170048 2.550949913724631 10 | 3.1900011892965665 3.6417831647754992 4.5368945312553866 1.1437615010418443 11 | 4.6401288784089445 2.010626616047225 2.8707905584500106 4.931681861832085 12 | 1.7010491776762584 3.7375669776697187 3.6468675116707843 0.8100693288541829 13 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/MBucket.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | public class MBucket { 8 | // public final int ptind; 9 | // public final int ind; 10 | // public final UList members; 11 | // public final DRange rng; 12 | // // public final GrowList partners = new GrowList<>(); 13 | // 14 | // public String toString() { 15 | // return "BKT(" + ptind + ":" + ind + ":" + rng + ")"; 16 | // } 17 | // 18 | // public Bucket(int ptind, int ind, UList members, DRange rng) { 19 | // this.ptind = ptind; 20 | // this.ind = ind; 21 | // this.members = members; 22 | // this.rng = rng; 23 | // myassert(!rng.nullset, this); 24 | // myassert(members.isNotEmpty()); 25 | // } 26 | } 27 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.24.17/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.24.17 sqrt(omega**2/c**2-pi**2/d**2) 2 | ** omega c d k 3 | 4.991098189413103 1.6978823448405886 2.363301314747068 2.68510166789138 4 | 5.23839140220358 1.9674528442441965 3.4158319490703932 2.5349750538898843 5 | 5.948582179594973 1.9967849152446544 3.967237442444892 2.8767619156632165 6 | 4.433516685890001 1.1263661613411609 2.983407097045878 3.763291909419804 7 | 5.335314796531001 1.120785502577337 2.0517028523436283 4.543251806073864 8 | 5.412071826481805 1.3274935483240762 3.7814352250081606 3.979168504564922 9 | 4.8526166197433245 1.5186924332460845 2.175715693586408 2.885440102484369 10 | 5.173808736691751 1.8125453538929266 3.476710672004965 2.7024509981728673 11 | 5.868170093385879 1.0376518395841317 3.726434657333261 5.615087210723676 12 | 4.689448826269011 1.5131902828246941 3.346321481664881 2.9326595546606122 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.34.29a/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.34.29a q*h/(4*pi*m) 2 | ** q h m mom 3 | 2.2688216707968563 3.313477205364477 4.5728411172021906 0.13103356185810497 4 | 4.439157148998062 4.073163541707233 4.161658658742665 0.35008470072433173 5 | 3.4118702306074535 3.7949940915347433 3.628733213136906 0.28215403818914986 6 | 4.645409039838469 4.814683713601909 4.421399360887525 0.402262832268755 7 | 4.613435862921518 3.6975476859431318 3.5854460135644213 0.37634475239193355 8 | 4.915862440597536 1.7160659946206214 2.2990095136431727 0.2881412544896692 9 | 2.6541153423989914 4.593854907740537 4.704742260834532 0.20405375679073093 10 | 3.3486627236895714 1.8773268591417929 4.863280599008959 0.10552928801228012 11 | 1.1480159325572492 4.360072755180472 1.6547995794792536 0.23964795400577646 12 | 2.3127575371570037 3.9256084730110845 3.4716727262326397 0.20597733935201465 13 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/time_dilation/time_dilation_f4_relativistic_R.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real c; 3 | Real a; 4 | Real eps; 5 | End. 6 | Functions 7 | End. 8 | ProgramVariables 9 | Real v; 10 | Real dt0; 11 | Real dt; 12 | Real d; 13 | Real L; 14 | Real f0; 15 | Real f; 16 | Real df; 17 | End. 18 | Problem( (d > 0 & L > 0 & 19 | eps = 0.02 & 20 | c = 3*10^8 & 21 | v > 37 & 22 | v < 10^7 & 23 | dt0 = 2*d/c & 24 | L^2 = d^2 + (v*dt/2)^2 & 25 | dt = 2*L/c & 26 | f0 = 1/dt0 & 27 | f = 1/dt & 28 | df = f - f0 29 | ) 30 | -> 31 | ( abs(df/f0*10^15 + (0.00545*v^4/((v^2 +v^(-2))^0.5*(v-1))))/(df/f0*10^15) < eps) 32 | 33 | ) 34 | End. 35 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/InVar.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | public class InVar implements Comparable { 10 | public final String nm; 11 | public final int pos; 12 | // public final UList vals; 13 | 14 | public InVar(String nm, int pos //, UList vals 15 | ) { 16 | // this.nm = nm.replaceAll(" ", "_"); 17 | this.nm = nm; 18 | if (nm.contains(" ")) 19 | die("'%s' is not a legal variable name.", nm); 20 | this.pos = pos; 21 | // this.vals = vals; 22 | } 23 | 24 | public String toString() { 25 | return nm; 26 | } 27 | 28 | @Override 29 | public int compareTo(InVar that) { 30 | return chainCompare(this.pos, that.pos); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.34.14/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.34.14 (1+v/c)/sqrt(1-v**2/c**2)*omega_0 2 | ** c v omega_0 omega 3 | 8.63973052468171 1.680536980333886 3.275817674114984 3.9310754075890433 4 | 8.480279664977367 1.7929564488962924 1.9069846415195495 2.3897253301221073 5 | 6.435129067992438 1.2898145306679778 2.4622221474493045 3.0021703001999307 6 | 7.168838616645167 1.007269330443454 2.9244140320825087 3.3635761597285354 7 | 6.47615055633748 1.7764761527078368 2.890588632897758 3.829231588523521 8 | 8.949430558106037 1.3413465255703882 4.311642120385068 4.963847734354631 9 | 3.894559065277245 1.2176889764920866 3.7388454485396294 5.219958798121103 10 | 4.549535009608739 1.8602616477920018 4.166954895885339 6.35802407356545 11 | 3.4774719663116995 1.4058778898561617 1.6019178962587812 2.4611144839165555 12 | 3.786763792963867 1.6050185112924598 2.8490353513530877 4.486833213402566 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.4.23/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.4.23 q/(4*pi*epsilon*r) 2 | ** q epsilon r Volt 3 | 2.6128467147495367 4.065148435890081 2.481838051804482 0.020058193569861212 4 | 3.1607139679744005 3.36758498803905 3.0240731237737903 0.024699886672119625 5 | 3.0372537550298135 1.4955650484521077 4.632448743444133 0.034270951058263416 6 | 2.231758118138961 4.971404519369718 2.393832378326145 0.014508750143338286 7 | 4.500772045769805 2.86167319181154 2.9146715623089645 0.04274255955465067 8 | 1.3153548518645763 2.359839987178363 2.91262596352698 0.014979234436940329 9 | 3.002987146402113 1.7106482785189092 4.268864872725903 0.03236007077058701 10 | 4.810560227716495 3.4801361861126745 3.5014354706388815 0.03149695933383331 11 | 4.281435868480214 3.5378104659833274 2.159155285894319 0.04517843692834186 12 | 2.4475788801439 4.975689092809315 4.688435620157306 0.008258483650686498 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.8.7/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.8.7 3/5*q**2/(4*pi*epsilon*d) 2 | ** q epsilon d E_n 3 | 1.3242413550172345 4.857646344032251 3.2174187399259306 0.004899948788445636 4 | 4.193056946085282 3.034023385590932 3.7719777125693104 0.0736614971726183 5 | 2.715588961975306 1.9682860050574367 2.3986757766622153 0.0737388598581198 6 | 2.833006335613649 2.905416688418176 4.728838483813252 0.029706814252805098 7 | 4.107092607399087 4.9938732321860835 3.235837433864629 0.04828051245803893 8 | 4.150760772414738 4.168903092563253 2.1262459614253455 0.09264646346644836 9 | 4.318217224665501 1.327989925078719 4.607334745214359 0.14617618435167018 10 | 1.4036755255560935 4.150266059214513 2.370382603962594 0.009640636951470072 11 | 4.646905272583025 3.3021861448997245 1.8052175615710238 0.17301234561306458 12 | 4.7377918131630805 2.353843435161671 3.080616882258281 0.1479402361040629 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.10.9/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.10.9 sigma_den/epsilon*1/(1+chi) 2 | ** sigma_den epsilon chi Ef 3 | 3.4633003568279266 2.9683827000377696 1.438796916970412 0.47880003030620777 4 | 1.167309566569442 1.8952171643934572 2.392852136471483 0.1822944543670163 5 | 1.8662460093293483 2.929319254238505 2.7222842550263264 0.1692332281488308 6 | 4.100735515183274 3.694135471981096 2.283750656119303 0.3358561272234821 7 | 4.9685680211933985 2.201833821974467 3.108690675684407 0.5496235978691052 8 | 1.4228395780553806 2.0621116952865735 3.1893989290977798 0.1682205569393429 9 | 2.8356871657961924 1.5507304720011343 3.9744539823268363 0.3601499012030072 10 | 4.467316556502963 2.0962199653826348 3.175096644913329 0.5042462298616045 11 | 1.3547248813135884 4.05661043762783 4.0876788107408775 0.07278786611538951 12 | 2.211621212393237 2.564143527883184 4.6780430698545095 0.1567192792899023 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.12.4/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.12.4 q1*r/(4*pi*epsilon*r**3) 2 | ** q1 epsilon r Ef 3 | 4.656572574329887 3.0369064789727407 2.3062220308568735 0.023028754159364923 4 | 3.3846309806328145 3.6702930210850186 3.9661312542775 0.0048021942446095835 5 | 3.5418161718500816 1.1021174440904202 2.6516114377192395 0.03637300444402302 6 | 1.3507178272456626 1.4343408326981244 2.0569578616364392 0.01757035724899575 7 | 1.9080653214270433 2.236690599239824 4.829608691026532 0.0027424232138467705 8 | 3.2458820505184254 3.4502200925464934 4.595127822834545 0.003350885407030428 9 | 2.2868729725462327 4.399532983931687 3.9914498836678303 0.0024177387103936463 10 | 3.8064389444761453 3.269602296000935 2.828857217465858 0.011597860984135221 11 | 1.8519300421297777 4.959977791188182 2.3463354824024485 0.005184118400370813 12 | 1.8158332462443307 2.2735008179740177 2.3476696060350326 0.01134228128066587 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/III.15.14/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman III.15.14 (h/(2*pi))**2/(2*E_n*d**2) 2 | ** h E_n d m 3 | 1.506030225984646 2.9251847898185934 1.3333104654040726 0.005501716563253125 4 | 2.0015055028530293 1.8354627513367965 3.845537643900392 0.0017159735815943057 5 | 1.035702406179701 4.129404752123179 3.416867331341604 0.0003673922086499374 6 | 3.639230798448607 3.1787708267672277 1.2622448530293453 0.03313092970028753 7 | 2.1852809049004853 3.9180834435053677 2.1110694909636054 0.003399274963212797 8 | 3.5476063583928172 2.6339111521634173 3.9156359803183833 0.0039526690884738695 9 | 3.2681053154300654 3.834297383119153 3.504179281878952 0.0029764800390017633 10 | 3.3016660433715477 4.2249386895672085 2.211802004462831 0.0065170094245906056 11 | 1.9222249275746477 3.725715615235094 1.204902521386619 0.008526840733929182 12 | 1.8039289703576267 1.3358572698302673 1.6641613792590118 0.01108828196618254 13 | -------------------------------------------------------------------------------- /data/README.md: -------------------------------------------------------------------------------- 1 | # DATA 2 | 3 | This folder contains the data used for the paper: 4 | 5 | | Folder | Content | 6 | | --- | --- | 7 | | FSRD | background theory for 7 FSRD problems | 8 | | FSRD_noise | data points for the 81 FSRD real-world problems generated from the FSRD dataset by adding noise and limiting the number of points to 10 (to resemble real data)| 9 | | kepler | data points (`.dat` files) and background theory for Kepler's problem | 10 | | langmuir | data points (`.dat` files) and background theory for Langmuir's problem | 11 | | relativistic_time_dilation | data points (`.dat` files) and background theory for the Time-Dilation problem| 12 | 13 | The original data points for FSRD (Feynman Symbolic Regression Database) 14 | can be found here: https://space.mit.edu/home/tegmark/aifeynman.html 15 | 16 | The background theory for each problem is the minimal set necessary to prove the corresponding formula. 17 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.6.2b/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.6.2b exp(-((theta-theta1)/sigma)**2/2)/(sqrt(2*pi)*sigma) 2 | ** sigma theta theta1 f 3 | 1.8547592328120188 1.3610841601860153 1.0778380005811916 0.21401061045469413 4 | 1.7231622089170506 2.0460754187957164 2.4594959649767336 0.2279919132936593 5 | 1.025156431266614 2.802708133309703 1.6239005213547997 0.19751361667100403 6 | 1.4368468463389041 2.8755409357962707 2.712541021004113 0.2746759386224656 7 | 2.5659490816311212 1.4226177598895804 2.631366878656811 0.13790672210408356 8 | 1.5518426336486777 2.5716023060211795 1.404383459686419 0.19343469622680454 9 | 2.270386552906417 2.6655072201492063 1.113756145295009 0.14051560297778962 10 | 1.3772958379106042 2.726700093203772 2.771714041508372 0.2890788388185903 11 | 2.990792737298962 1.8215925293931703 2.1886463421731555 0.13638567948243338 12 | 2.0984130901690943 2.411417751938884 1.980846730887931 0.18634720189762224 13 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/ExpPower.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | public class ExpPower { 10 | public final boolean isLiteral; 11 | public final int index; 12 | private final Double litval_dont_use; 13 | 14 | public ExpPower(int index, double lit) { 15 | this.isLiteral = true; 16 | this.index = index; 17 | this.litval_dont_use = lit; 18 | } 19 | 20 | public ExpPower(int index) { 21 | this.isLiteral = false; 22 | this.index = index; 23 | this.litval_dont_use = -666666.0; 24 | } 25 | 26 | public double litval() { 27 | myassert(isLiteral); 28 | return litval_dont_use; 29 | } 30 | 31 | public String toString() { 32 | if (isLiteral) 33 | return "" + litval_dont_use; 34 | return "ContEx"; 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/IntRange.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | /** inclusive bounds */ 10 | public class IntRange extends Pair { 11 | public int lbound; 12 | public int ubound; 13 | 14 | public boolean sameBound; 15 | 16 | public IntRange(int lb, int ub) { 17 | super(lb, ub); 18 | this.lbound = lb; 19 | this.ubound = ub; 20 | this.sameBound = (lb == ub); 21 | myassert(lb <= ub); 22 | } 23 | 24 | public int size() { 25 | return ubound - lbound + 1; 26 | } 27 | 28 | // not bothering with iterable interface 29 | public UList elems() { 30 | return UList.rangeClosed(lbound, ubound); 31 | } 32 | 33 | public String toString() { 34 | return lbound + "," + ubound; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.6.2a/input_original.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.6.2a exp(-theta**2/2)/sqrt(2*pi) 2 | ** theta f 3 | 2.0311013241696108 0.05071037127202593 4 | 1.6727560328461166 0.09847083107122498 5 | 2.8625996847423414 0.006629824068894383 6 | 1.242002436295575 0.18447827758739502 7 | 2.4218847314761893 0.02124356273794299 8 | 1.727465689646136 0.08972486131141143 9 | 1.3352476507554523 0.16359168559872236 10 | 1.7464670288139756 0.08681185619183654 11 | 1.7008725891364636 0.09390963250488102 12 | 1.5865988441368482 0.1133146882162891 13 | 1.7943223153849481 0.07975986715023399 14 | 1.0454033478984677 0.23099190482931597 15 | 1.2676510442950415 0.1786354542404867 16 | 2.0998011940999612 0.044001961761176975 17 | 2.7736822622004143 0.0085178171073333 18 | 2.5229486420735836 0.01654661948951824 19 | 1.8642568381996183 0.0701818665486202 20 | 1.0403352516928195 0.23221601272887205 21 | 1.8449780174239216 0.07273660776408575 22 | 1.1987914611235693 0.19446773494900751 23 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/RunResultLBound.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | import utils.UList; 10 | 11 | public class RunResultLBound extends RunResult { 12 | 13 | public final double lbound; 14 | 15 | public RunResultLBound(BaronJob baronJob, UList output, UList timout) { 16 | super(baronJob, output); 17 | 18 | myassert(heuristic_completion); 19 | if (timout.isEmpty()) { 20 | printf("BAD TIMOUT FILE! %s%n", timout); 21 | this.lbound = 0; 22 | } else { 23 | //[problem, 0, 6, 1291, 54, 0.00000000000, 72.5299661210, 12, 4, 0, 1350, 862, 430, 4.03, 4.15] 24 | // printf("TIMFILE: %s%n", split(timout.first(), " +")); 25 | UList info = split(timout.first(), " +"); 26 | this.lbound = toDouble(info.get(5)); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/SingleAssignUList.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | public class SingleAssignUList extends UList { 8 | // private Supplier> constructor; 9 | // 10 | // public LazyUList(Supplier> constructor) { 11 | // super("howdy"); 12 | // 13 | // myassert(constructor != null); 14 | // this.constructor = constructor; 15 | // } 16 | // 17 | // private void construct 18 | // 19 | // public T get(int ind) { 20 | // if (constructor != null) { 21 | // myassert(vals.isEmpty()); 22 | // vals.addAll(constructor.get().vals); 23 | // constructor = null; 24 | // } 25 | // 26 | // return vals.get(ind); 27 | // } 28 | 29 | public SingleAssignUList() { 30 | super("howdy"); 31 | } 32 | 33 | public void init(UList vals) { 34 | super.init(vals); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/Globals.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | public class Globals { 10 | 11 | // public final int M_complexity; 12 | // public final int addsub_complexity; 13 | // public final int mul_complexity; 14 | // public final int div_complexity; 15 | 16 | public static void makeGlobals(Input inpx) { 17 | myassert(!alreadyCalled); 18 | alreadyCalled = true; 19 | myassert(gx == null); 20 | gx = new Globals(inpx); 21 | } 22 | 23 | private Globals(Input inpx) { 24 | // this.M_complexity = inpx.M_complexity; 25 | // this.mul_complexity = inpx.mul_complexity; 26 | // this.addsub_complexity = inpx.addsub_complexity; 27 | // this.div_complexity = inpx.div_complexity; 28 | } 29 | 30 | public static Globals gx; 31 | 32 | private static boolean alreadyCalled; 33 | } 34 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_2sites_const_9.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads_1; 3 | Real kdes_1; 4 | Real S0_1; 5 | Real kads_2; 6 | Real kdes_2; 7 | Real S0_2; 8 | End. 9 | ProgramVariables 10 | End. 11 | Problem 12 | ( 13 | \exists c1 \exists c2 14 | \forall Q \forall S_1 \forall S_2 \forall Sa_1 \forall Sa_2 \forall P \forall rdes_1 \forall rads_1 \forall rdes_2 \forall rads_2 ( 15 | ( S0_1>0 & S_1>0 & Sa_1>0 & rads_1>0 & rdes_1>0 & kads_1>0 & kdes_1>0 16 | & S0_2>0 & S_2>0 & Sa_2>0 & rads_2>0 & rdes_2>0 & kads_2>0 & kdes_2>0 17 | & Q>=0 & P>0 18 | & S0_1 = S_1 + Sa_1 19 | & rads_1 = kads_1 * P * S_1 20 | & rdes_1 = kdes_1 * Sa_1 21 | & rads_1 = rdes_1 22 | & S0_2 = S_2 + Sa_2 23 | & rads_2 = kads_2 * P * S_2 24 | & rdes_2 = kdes_2 * Sa_2 25 | & rads_2 = rdes_2 26 | & Q = Sa_1 + Sa_2 27 | ) 28 | -> 29 | ( c1>0 & c2>0 & Q = P/(c1*P+c2)) 30 | ) 31 | ) 32 | End. -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/UListInt.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | public interface UListInt> { 8 | // List vals(); 9 | 10 | // default boolean isEmpty() { 11 | // return vals().isEmpty(); 12 | // } 13 | 14 | public TL construct(UList x); 15 | 16 | public UList getThis(); 17 | 18 | default TL diff(TL x) { 19 | UList that = getThis(); 20 | return construct(that.diff(x)); 21 | } 22 | 23 | default TL concat(TL x) { 24 | UList that = getThis(); 25 | return construct(that.concat(x)); 26 | } 27 | 28 | // default UListInt concat(UListInt x) { 29 | // if (vals().isEmpty()) 30 | // return x; 31 | // if (x.isEmpty()) 32 | // return this; 33 | // ArrayList union = new ArrayList(vals()); 34 | // union.addAll(x.vals()); 35 | // return new UList<>(union); 36 | // } 37 | } 38 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_2sites_const_2.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads_1; 3 | Real kdes_1; 4 | Real S0_1; 5 | Real kads_2; 6 | Real kdes_2; 7 | Real S0_2; 8 | End. 9 | ProgramVariables 10 | End. 11 | Problem 12 | ( 13 | \exists c1 \exists c2 14 | \forall Q \forall S_1 \forall S_2 \forall Sa_1 \forall Sa_2 \forall P \forall rdes_1 \forall rads_1 \forall rdes_2 \forall rads_2 ( 15 | ( S0_1>0 & S_1>0 & Sa_1>0 & rads_1>0 & rdes_1>0 & kads_1>0 & kdes_1>0 16 | & S0_2>0 & S_2>0 & Sa_2>0 & rads_2>0 & rdes_2>0 & kads_2>0 & kdes_2>0 17 | & Q>=0 & P>0 18 | & S0_1 = S_1 + Sa_1 19 | & rads_1 = kads_1 * P * S_1 20 | & rdes_1 = kdes_1 * Sa_1 21 | & rads_1 = rdes_1 22 | & S0_2 = S_2 + Sa_2 23 | & rads_2 = kads_2 * P * S_2 24 | & rdes_2 = kdes_2 * Sa_2 25 | & rads_2 = rdes_2 26 | & Q = Sa_1 + Sa_2 27 | ) 28 | -> 29 | ( c1>0 & c2>0 & Q = P/(c1*P+c2)) 30 | ) 31 | ) 32 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_2sites_const_8.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads_1; 3 | Real kdes_1; 4 | Real S0_1; 5 | Real kads_2; 6 | Real kdes_2; 7 | Real S0_2; 8 | End. 9 | ProgramVariables 10 | End. 11 | Problem 12 | ( 13 | \exists c1 \exists c2 \exists c3 14 | \forall Q \forall S_1 \forall S_2 \forall Sa_1 \forall Sa_2 \forall P \forall rdes_1 \forall rads_1 \forall rdes_2 \forall rads_2 ( 15 | ( S0_1>0 & S_1>0 & Sa_1>0 & rads_1>0 & rdes_1>0 & kads_1>0 & kdes_1>0 16 | & S0_2>0 & S_2>0 & Sa_2>0 & rads_2>0 & rdes_2>0 & kads_2>0 & kdes_2>0 17 | & Q>=0 & P>0 18 | & S0_1 = S_1 + Sa_1 19 | & rads_1 = kads_1 * P * S_1 20 | & rdes_1 = kdes_1 * Sa_1 21 | & rads_1 = rdes_1 22 | & S0_2 = S_2 + Sa_2 23 | & rads_2 = kads_2 * P * S_2 24 | & rdes_2 = kdes_2 * Sa_2 25 | & rads_2 = rdes_2 26 | & Q = Sa_1 + Sa_2 27 | ) 28 | -> 29 | ( c1>0 & c2>0 & c3>0 & Q = (P+c1)/(c2*P+c3)) 30 | ) 31 | ) 32 | End. -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/ComputeMap.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | import utils.UMap; 8 | 9 | /** this is not actually immutable... but only increases. */ 10 | public class ComputeMap extends UMap { 11 | // public Function constructor; 12 | // 13 | // private boolean done = false; 14 | // 15 | // public void done() { 16 | // done = true; 17 | // } 18 | // 19 | // public ComputeMap(Function constructor) { 20 | // super("", new LinkedHashMap<>()); 21 | // this.constructor = constructor; 22 | // } 23 | // 24 | // public V getOrCompute(K x) { 25 | // myassert(x != null); 26 | // if (done) 27 | // return get(x); 28 | // return map.computeIfAbsent(x, constructor); 29 | // } 30 | 31 | public ComputeMap() { 32 | super("howdy"); 33 | } 34 | 35 | public void init(UMap map) { 36 | super.init(map); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.34.8/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.34.8 q*v*B/p 2 | ** q v B p omega 3 | 4.737031226213802 4.42860880285707 2.831665604019374 4.74951378504359 12.43664728639098 4 | 2.4340471012648046 1.3428680658593364 2.7490979596490552 3.386823211532145 2.608071045758415 5 | 1.9141481408736238 1.0748099451520394 4.1211498891987794 1.2431120315523643 6.882494991317691 6 | 2.059783532722249 3.2011848493495223 1.9782280552050673 4.720013044884205 2.7420340669879137 7 | 3.553676765560779 4.406092344430742 1.5734000886068782 2.344441432681509 10.310000339625073 8 | 4.719878170920513 2.0587053568448033 3.4708094802633656 3.515328286341664 9.55026075678719 9 | 3.844395561388855 2.681002817402515 2.9533242271037854 2.100800379810997 14.634507067507313 10 | 3.216501066384274 1.386522379085057 1.5808539687095116 4.078110581670909 1.8141760062409955 11 | 3.176504186471683 1.368183390243566 4.513339445920562 1.158830974004477 17.03412838525742 12 | 1.779380020066629 4.288022541929648 2.9712792875010203 3.994604369320229 5.6959755130129475 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.38.3/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.38.3 Y*A*x/d 2 | ** Y A d x F 3 | 4.2597390798643255 1.8218431743874732 3.2473008523292335 3.1251131655681768 7.427151798443907 4 | 3.507460146218924 1.7505338516013556 4.63093115065089 1.3879363016150816 1.6072433055047979 5 | 1.7096387389323753 4.72153878424409 4.1102787286785265 4.904885894134062 9.746271627638915 6 | 1.7978881174858707 2.5683811293380803 2.676652816315967 3.902752532485254 6.62275747995486 7 | 4.328244768776189 2.6947157156140853 2.176328246246774 2.202468958580087 11.987248321091824 8 | 3.742155653699532 3.8341750274768986 2.7079933322132135 2.891160238855391 15.271318645440825 9 | 1.388470493061408 3.8146511149610385 4.096044575853024 3.509330754154239 4.498972818982163 10 | 3.570621975070298 1.8821201544731596 1.3771056727433035 4.610452566752549 21.99998798076209 11 | 2.6657243305607787 3.0566151029888897 1.9926794654746658 4.0458651156658 16.36215890131251 12 | 4.721850683023707 2.957788417708581 2.0242445774314355 4.956260130525164 34.34696803453577 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.39.22/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.39.22 n*kb*T/V 2 | ** n T V kb pr 3 | 2.356953193678541 1.9175240051958409 4.773774655843928 4.100052737287458 3.792596215822222 4 | 1.4655954915950873 3.830915227585954 1.2537744229652823 3.370181540196215 15.060203629350429 5 | 1.9960807802841556 2.6251822947459353 3.544941475034031 2.5264742804705653 3.9890844118073745 6 | 1.2072555710766277 2.7422712993158123 1.1119949309293657 3.3199000740281996 9.755420270603926 7 | 4.612048341996078 2.7789872638705684 2.1900259958199397 2.608409980269557 15.296900586649109 8 | 4.257040092759812 4.337407746648493 3.55617302974325 2.91641685141933 15.020563319774 9 | 4.525439434331831 1.9706543924488837 3.9457808125527474 2.21638921342555 5.118668488432508 10 | 2.4598227065878393 1.9784880684056119 3.570496066236447 2.2455570940027467 3.121811054356842 11 | 3.5630321252876564 2.0449730232159298 2.2626828119535567 2.5609172889197853 8.224996972326753 12 | 4.39855235789827 3.483431169074659 3.2323288274310653 2.8402744824879385 13.63238030388671 13 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_2sites_const_7.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads_1; 3 | Real kdes_1; 4 | Real S0_1; 5 | Real kads_2; 6 | Real kdes_2; 7 | Real S0_2; 8 | End. 9 | ProgramVariables 10 | End. 11 | Problem 12 | ( 13 | \exists c1 \exists c2 \exists c3 14 | \forall Q \forall S_1 \forall S_2 \forall Sa_1 \forall Sa_2 \forall P \forall rdes_1 \forall rads_1 \forall rdes_2 \forall rads_2 ( 15 | ( S0_1>0 & S_1>0 & Sa_1>0 & rads_1>0 & rdes_1>0 & kads_1>0 & kdes_1>0 16 | & S0_2>0 & S_2>0 & Sa_2>0 & rads_2>0 & rdes_2>0 & kads_2>0 & kdes_2>0 17 | & Q>=0 & P>0 18 | & S0_1 = S_1 + Sa_1 19 | & rads_1 = kads_1 * P * S_1 20 | & rdes_1 = kdes_1 * Sa_1 21 | & rads_1 = rdes_1 22 | & S0_2 = S_2 + Sa_2 23 | & rads_2 = kads_2 * P * S_2 24 | & rdes_2 = kdes_2 * Sa_2 25 | & rads_2 = rdes_2 26 | & Q = Sa_1 + Sa_2 27 | ) 28 | -> 29 | ( c1>0 & c2>0 & c3>0 & Q = (c1*P^2-P)/(P^2+c2*P-c3)) 30 | ) 31 | ) 32 | End. -------------------------------------------------------------------------------- /data/FSRD_noise/II.34.11/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.34.11 g_*q*B/(2*m) 2 | ** g_ q B m omega 3 | 4.98724576847303 1.0397431507847221 2.27290248154609 1.0224393986823515 5.787692968791553 4 | 2.327000411760546 1.934440885075535 1.5030416194890117 3.3158597677099744 1.0382417675979063 5 | 4.795221350238471 2.220739460882562 1.7984208112553794 4.238263331033888 2.272838816012831 6 | 4.503637631501832 4.927822694445595 2.6219699198446276 2.7233936897956217 10.723639898019178 7 | 3.8502675242625624 2.746453938673388 2.9304123126613963 2.9961237676205523 5.15968508678723 8 | 2.110850262749813 4.70237522492641 2.9479582445953 2.0765460507571762 6.9981412066837 9 | 2.344904140114453 1.9772531988675457 2.873339408616132 4.849806250901056 1.3631926395646592 10 | 1.7501632072216107 4.103349761463305 2.1473214110783396 1.9603801670873136 3.968349897739219 11 | 2.2086039008177925 3.735287399425062 3.378755134867636 3.3389878083749687 4.1104630744679085 12 | 1.0051974821914715 4.127386446502537 4.5658272584241075 4.312895287642274 2.1798025597714963 13 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_2sites_const_5.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads_1; 3 | Real kdes_1; 4 | Real S0_1; 5 | Real kads_2; 6 | Real kdes_2; 7 | Real S0_2; 8 | End. 9 | ProgramVariables 10 | End. 11 | Problem 12 | ( 13 | \exists c1 \exists c2 \exists c3 14 | \forall Q \forall S_1 \forall S_2 \forall Sa_1 \forall Sa_2 \forall P \forall rdes_1 \forall rads_1 \forall rdes_2 \forall rads_2 ( 15 | ( S0_1>0 & S_1>0 & Sa_1>0 & rads_1>0 & rdes_1>0 & kads_1>0 & kdes_1>0 16 | & S0_2>0 & S_2>0 & Sa_2>0 & rads_2>0 & rdes_2>0 & kads_2>0 & kdes_2>0 17 | & Q>=0 & P>0 18 | & S0_1 = S_1 + Sa_1 19 | & rads_1 = kads_1 * P * S_1 20 | & rdes_1 = kdes_1 * Sa_1 21 | & rads_1 = rdes_1 22 | & S0_2 = S_2 + Sa_2 23 | & rads_2 = kads_2 * P * S_2 24 | & rdes_2 = kdes_2 * Sa_2 25 | & rads_2 = rdes_2 26 | & Q = Sa_1 + Sa_2 27 | ) 28 | -> 29 | ( c1>0 & c2>0 & c3>0 & Q = (P^2)/(c1*P^2+c2*P-c3)) 30 | ) 31 | ) 32 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_2sites_const_6.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads_1; 3 | Real kdes_1; 4 | Real S0_1; 5 | Real kads_2; 6 | Real kdes_2; 7 | Real S0_2; 8 | End. 9 | ProgramVariables 10 | End. 11 | Problem 12 | ( 13 | \exists c1 \exists c2 \exists c3 14 | \forall Q \forall S_1 \forall S_2 \forall Sa_1 \forall Sa_2 \forall P \forall rdes_1 \forall rads_1 \forall rdes_2 \forall rads_2 ( 15 | ( S0_1>0 & S_1>0 & Sa_1>0 & rads_1>0 & rdes_1>0 & kads_1>0 & kdes_1>0 16 | & S0_2>0 & S_2>0 & Sa_2>0 & rads_2>0 & rdes_2>0 & kads_2>0 & kdes_2>0 17 | & Q>=0 & P>0 18 | & S0_1 = S_1 + Sa_1 19 | & rads_1 = kads_1 * P * S_1 20 | & rdes_1 = kdes_1 * Sa_1 21 | & rads_1 = rdes_1 22 | & S0_2 = S_2 + Sa_2 23 | & rads_2 = kads_2 * P * S_2 24 | & rdes_2 = kdes_2 * Sa_2 25 | & rads_2 = rdes_2 26 | & Q = Sa_1 + Sa_2 27 | ) 28 | -> 29 | ( c1>0 & c2>0 & c3>0 & Q = (P^2+P)/(c1*P^2+(c2*P-c3))) 30 | ) 31 | ) 32 | End. -------------------------------------------------------------------------------- /data/FSRD_noise/I.13.4/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.13.4 1/2*m*(v**2+u**2+w**2) 2 | ** m v u w K 3 | 4.586393644647947 3.077313301270053 3.419005085594904 4.348710620443847 92.2262526349227 4 | 2.8852576544759643 4.532616952163156 2.7024978155756565 3.0610161360600463 53.764576449853585 5 | 2.553522033024683 1.3542908605633008 1.427942490481564 1.2951121476303218 7.288033755888148 6 | 2.3461313463220024 4.073508509447193 2.2762777665909 2.7854677495481104 35.31633608930517 7 | 2.1033437795815515 4.05763266076462 2.5460348761460105 3.9583733462893567 39.91941007712646 8 | 3.439719870075011 3.1774507041420907 2.7033540773345344 3.000203551293699 45.58897972461208 9 | 2.1846024558152695 2.8034556748050035 2.4824563775001747 4.132310288923858 34.47691599067779 10 | 2.1086726825932995 2.6857093474014717 3.4495336828961776 1.7143297086802716 24.373998519868064 11 | 4.098238954741592 2.012700896903629 4.23167412705709 3.035500487725847 63.36763092363339 12 | 2.0335671180379515 1.1966569470361699 2.3412298324330867 1.918175476440326 10.697811600442748 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.8.14/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.8.14 sqrt((x2-x1)**2+(y2-y1)**2) 2 | ** x1 x2 y1 y2 d 3 | 3.2412105153450965 4.843829879715587 1.635064966006107 2.9595833196549854 2.1628720759751157 4 | 1.7372841951284599 3.644458051483195 3.15267852561 1.9522176260155488 2.2912743702238307 5 | 4.432476916961909 2.2883164376685663 3.5224900316837204 1.9599905293442346 2.6920716022980082 6 | 1.751581033456632 2.769621799871217 3.06236393211425 2.2897627293344702 1.2679882893617065 7 | 2.142910213831923 4.753128164514201 3.5965960338916263 3.89874521836593 2.559304310020356 8 | 2.495513196908508 4.195568912485201 4.909539232224081 1.1469599522776677 4.163837604202561 9 | 3.24929051932258 4.8011132290756535 2.005208090261163 2.309076009006331 1.6063614692922696 10 | 1.314685745964101 1.7911132163224557 2.4273367851620824 4.910823137798677 2.504937152928609 11 | 2.96142310830877 3.8587629219412842 1.8516793569477077 2.320165928966733 1.003121722634525 12 | 2.607130376444209 1.718189983511163 2.7303557818340813 1.1792686347376287 1.7939899467824625 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.15.3x/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.15.3x (x-u*t)/sqrt(1-u**2/c**2) 2 | ** x u c t x1 3 | 7.167410272781309 1.8220427303520037 13.871431110203321 1.4696556948110144 4.533989444984817 4 | 5.516883225041597 1.7758156719311788 15.672429618998676 1.7374018138743974 2.3846631946020103 5 | 6.387227830200562 1.9120813895458655 3.641677099808661 1.9979214240245158 2.940277680869157 6 | 7.650669834933234 1.4422007879738064 4.5884672690811 1.877973783735349 5.248649566420217 7 | 8.49762588704359 1.6990303136716092 18.167477827525953 1.7393676889440917 5.61599233397726 8 | 6.667190257173849 1.3935386855182594 15.346675937819935 1.926428680654618 4.013063946537201 9 | 9.85782415783078 1.4415130031393941 13.33147665347855 1.3266803884957035 8.020860708102092 10 | 8.707616096544685 1.8891798422739488 5.473603525419158 1.6046481281824931 6.055876979102932 11 | 6.650746500658732 1.7337147650081035 6.541247172275628 1.723530761476718 3.8248561711322258 12 | 7.3428661812866025 1.494053275810069 14.035581913652075 1.0713879372326025 5.759809593826445 13 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_2sites_const_4.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads_1; 3 | Real kdes_1; 4 | Real S0_1; 5 | Real kads_2; 6 | Real kdes_2; 7 | Real S0_2; 8 | End. 9 | ProgramVariables 10 | End. 11 | Problem 12 | ( 13 | \exists c1 \exists c2 \exists c3 \exists c4 14 | \forall Q \forall S_1 \forall S_2 \forall Sa_1 \forall Sa_2 \forall P \forall rdes_1 \forall rads_1 \forall rdes_2 \forall rads_2 ( 15 | ( S0_1>0 & S_1>0 & Sa_1>0 & rads_1>0 & rdes_1>0 & kads_1>0 & kdes_1>0 16 | & S0_2>0 & S_2>0 & Sa_2>0 & rads_2>0 & rdes_2>0 & kads_2>0 & kdes_2>0 17 | & Q>=0 & P>0 18 | & S0_1 = S_1 + Sa_1 19 | & rads_1 = kads_1 * P * S_1 20 | & rdes_1 = kdes_1 * Sa_1 21 | & rads_1 = rdes_1 22 | & S0_2 = S_2 + Sa_2 23 | & rads_2 = kads_2 * P * S_2 24 | & rdes_2 = kdes_2 * Sa_2 25 | & rads_2 = rdes_2 26 | & Q = Sa_1 + Sa_2 27 | ) 28 | -> 29 | ( c1>0 & c2>0 & c3>0 & c4>0 & Q = (c1*P+c2)/(c3*P+c4)) 30 | ) 31 | ) 32 | End. -------------------------------------------------------------------------------- /data/FSRD_noise/I.15.3t/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.15.3t (t-u*x/c**2)/sqrt(1-u**2/c**2) 2 | ** x c u t t1 3 | 4.813773858425064 4.220697847321895 1.46319667562592 3.778465105978385 3.639492910212112 4 | 3.3619543170597446 5.671033320690178 1.7658313518003514 4.721791747865572 4.753421390637313 5 | 2.3044287037602293 8.826125033223903 1.5919567353941568 4.183903508663667 4.201699963020689 6 | 2.3784693123392673 9.474789932245367 1.1300020444451508 4.9432048458123585 4.939487375257217 7 | 1.71282544589813 8.130457117798052 1.6750740997297142 3.590166393857927 3.6226338851178927 8 | 2.9218543293957544 3.7151822542270923 1.574070108221249 3.273010191526333 3.241883248459602 9 | 1.753997582852489 4.280743225641145 1.2623218881955844 3.9411275510695187 3.992123178282577 10 | 2.789966446224346 5.949102262559181 1.0796247064488205 2.422779304909245 2.366855720065122 11 | 3.6609798918136445 5.305547779904029 1.3983074170667524 1.0018721371149786 0.7772611561946693 12 | 2.4492014112586022 9.844717820288912 1.0616871774600645 3.9282155350116157 3.973195090087946 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.18.4/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.18.4 (m1*r1+m2*r2)/(m1+m2) 2 | ** m1 m2 r1 r2 r 3 | 2.0811081119217434 2.1055099910836925 2.157906142429368 4.87445638798886 3.547190416427053 4 | 3.417592066888256 1.963586347513941 1.3104148343029474 2.782150033844216 1.8744618532563961 5 | 3.0189545268071094 2.698816107208843 2.8886985576128867 2.5489056011116316 2.750738841113907 6 | 3.3632339792273145 4.804909052032807 2.6017988922670923 3.8105003362781042 3.3374860710594896 7 | 4.934144196938522 4.656337281764657 2.4303602014028365 2.4188939641693943 2.3697113184947596 8 | 1.959172823930099 2.6913638725182625 4.1175465164376845 4.639537261796745 4.4019319918347035 9 | 1.4153683606738734 4.330927502784865 1.667175286551081 2.2437994416382443 2.1775376863762395 10 | 3.724322154032496 2.486686690144343 1.2503909169399123 3.8061225666304033 2.232925559382508 11 | 1.2017034267702273 2.764940994034774 1.6668442448190612 3.7241396224059735 3.1660214046119353 12 | 1.215986827771046 1.1469795369171791 2.644649615641669 1.6311386328542192 2.153125659132259 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.43.16/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.43.16 mu_drift*q*Volt/d 2 | ** mu_drift q Volt d v 3 | 2.973766438250424 1.0914324647515148 4.124751099113569 4.980311675974512 2.6081890230137454 4 | 2.6466766354014077 2.6853201320131688 3.036739369302626 2.465919219783889 8.761473165243974 5 | 1.3742218084256335 1.099790573589639 4.603073865959148 3.453029752017981 2.020686202796354 6 | 4.3068011157124815 2.667481028891129 2.8031194616867037 3.2315926241249553 10.018181380934982 7 | 1.6225760117054127 2.5464699409552747 4.3465914055469685 4.811465705291639 3.815060329128248 8 | 3.1687846343241604 1.9315584827422319 2.340545918222602 2.455289299201732 5.612699484489181 9 | 4.154886289623631 1.5853962311761687 3.9738664286256555 4.094975576031324 6.481843556863634 10 | 2.7505788431502296 3.807089417518989 4.104042721507508 2.0085773846990116 21.402664674541498 11 | 1.0391095484967963 4.7285312989036985 3.6085568880381467 3.225918270591662 5.342778709287209 12 | 1.044546507394247 3.2983054161049603 4.0698349415777155 4.356200156809187 3.2767230174707604 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.43.43/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.43.43 1/(gamma-1)*kb*v/A 2 | ** gamma kb A v kappa 3 | 3.297960319802523 4.121355875544733 4.846450511774599 1.044076543395977 0.4006240208566681 4 | 2.668778109314553 2.864824867202256 4.664783239615813 1.7552532548427107 0.6788082202288389 5 | 3.294146400649455 3.0374690550117123 1.7547520280356381 2.5218531104556505 1.887766356752589 6 | 3.531153522251911 4.462982989126738 2.6755474426906978 3.5263955217335465 2.3066306513118096 7 | 2.592358821238605 4.369378304766357 4.842199099214939 2.1565226880760195 1.206498444478246 8 | 3.3674484809177927 4.685340781081329 3.498156686029037 4.24560471036668 2.377082287416476 9 | 2.1957768699785074 1.4122198163114565 3.6429017690749985 4.7593563235890155 1.5404625848475084 10 | 2.0773053729034223 2.9266800910840685 3.0603627018592348 1.712278199009102 1.5140839358237017 11 | 3.6164599212636652 3.828691529638086 4.21751736200884 1.2953863173787474 0.4575697217288222 12 | 4.630241075861969 4.462455319985639 1.9190129516360739 1.929092677824539 1.2373159151983288 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/III.13.18/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman III.13.18 2*E_n*d**2*k/(h/(2*pi)) 2 | ** E_n d k h v 3 | 4.898358103200884 3.0813857565441958 2.0457142748149657 3.5141058706702832 338.03505126531064 4 | 4.777355119234741 3.442126981286179 1.9267698060421359 4.867735333228556 278.74042453715333 5 | 4.901209609818611 1.9029729257172803 2.341805370772171 2.013309624740792 258.78765893899316 6 | 1.9980333750037613 1.6089805380971427 2.8093957461734056 1.2174242078303799 156.21295361534885 7 | 4.310340722688034 3.0732163503778067 3.9911868323702375 4.327860888261249 477.22472508691106 8 | 3.7698369695185012 3.544387178564395 1.5863201256030073 3.987587974637292 233.8007815158067 9 | 1.1770595232366605 2.0677266150144105 2.9334895358612707 4.644044759820659 37.6148086145452 10 | 2.600352665428786 4.650148513318287 4.398018238411487 3.565734425812208 866.9029637880423 11 | 2.2891246157827334 2.478648699760454 3.2579533368241846 1.761738415326005 325.0705523072842 12 | 4.6440830346109685 2.7399197520962133 2.070101385546807 3.3428015753934104 269.2164898468067 13 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_2sites_const_1.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads_1; 3 | Real kdes_1; 4 | Real S0_1; 5 | Real kads_2; 6 | Real kdes_2; 7 | Real S0_2; 8 | End. 9 | ProgramVariables 10 | End. 11 | Problem 12 | ( 13 | \exists c1 \exists c2 \exists c3 \exists c4 14 | \forall Q \forall S_1 \forall S_2 \forall Sa_1 \forall Sa_2 \forall P \forall rdes_1 \forall rads_1 \forall rdes_2 \forall rads_2 ( 15 | ( S0_1>0 & S_1>0 & Sa_1>0 & rads_1>0 & rdes_1>0 & kads_1>0 & kdes_1>0 16 | & S0_2>0 & S_2>0 & Sa_2>0 & rads_2>0 & rdes_2>0 & kads_2>0 & kdes_2>0 17 | & Q>=0 & P>0 18 | & S0_1 = S_1 + Sa_1 19 | & rads_1 = kads_1 * P * S_1 20 | & rdes_1 = kdes_1 * Sa_1 21 | & rads_1 = rdes_1 22 | & S0_2 = S_2 + Sa_2 23 | & rads_2 = kads_2 * P * S_2 24 | & rdes_2 = kdes_2 * Sa_2 25 | & rads_2 = rdes_2 26 | & Q = Sa_1 + Sa_2 27 | ) 28 | -> 29 | ( c1>0 & c2>0 & c3>0 & c4>0 & Q = (P^2+c1*P-c4)/(c2*P^2+c3*P)) 30 | ) 31 | ) 32 | End. -------------------------------------------------------------------------------- /data/FSRD_noise/III.21.20/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman III.21.20 -rho_c_0*q*A_vec/m 2 | ** rho_c_0 q A_vec m j 3 | 2.855853226245398 2.4989290326487827 1.730685694556625 4.363919239551995 -2.704792126732889 4 | 3.13013605579504 3.782330456523689 2.085158770316406 1.211507887754455 -20.111400375234428 5 | 2.76638408031134 1.608202785661733 1.4798453279141435 4.409910826054551 -1.3186632986668765 6 | 1.5543070208668501 4.4433432915750615 2.4482901149277763 3.956737267929476 -4.295157468169277 7 | 4.469960100885833 3.847513362847426 4.5084813132529264 2.895146571233444 -26.68883620582592 8 | 1.0943159726268883 2.726120246538669 4.249231587404866 3.9154048525830745 -3.033515747445263 9 | 1.4797037676381377 2.36542316001598 3.3875463819441043 1.2200449081897418 -9.702429512355879 10 | 3.0188251341239525 1.5229765473111843 1.487766731129434 3.4775928775747857 -1.732269405788864 11 | 2.35561437904949 3.3181730020699534 4.7075354455076335 1.3905488783663826 -26.126052996363644 12 | 2.4032622253848 4.936354066724902 2.2750216669918224 1.4211695620653928 -19.270991372669716 13 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_2sites_const_3.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads_1; 3 | Real kdes_1; 4 | Real S0_1; 5 | Real kads_2; 6 | Real kdes_2; 7 | Real S0_2; 8 | End. 9 | ProgramVariables 10 | End. 11 | Problem 12 | ( 13 | \exists c1 \exists c2 \exists c3 \exists c4 14 | \forall Q \forall S_1 \forall S_2 \forall Sa_1 \forall Sa_2 \forall P \forall rdes_1 \forall rads_1 \forall rdes_2 \forall rads_2 ( 15 | ( S0_1>0 & S_1>0 & Sa_1>0 & rads_1>0 & rdes_1>0 & kads_1>0 & kdes_1>0 16 | & S0_2>0 & S_2>0 & Sa_2>0 & rads_2>0 & rdes_2>0 & kads_2>0 & kdes_2>0 17 | & Q>=0 & P>0 18 | & S0_1 = S_1 + Sa_1 19 | & rads_1 = kads_1 * P * S_1 20 | & rdes_1 = kdes_1 * Sa_1 21 | & rads_1 = rdes_1 22 | & S0_2 = S_2 + Sa_2 23 | & rads_2 = kads_2 * P * S_2 24 | & rdes_2 = kdes_2 * Sa_2 25 | & rads_2 = rdes_2 26 | & Q = Sa_1 + Sa_2 27 | ) 28 | -> 29 | ( c1>0 & c2>0 & c3>0 & c4>0 & Q = (P^2-c1*P-c2)/(c3*P^2-c4)) 30 | ) 31 | ) 32 | End. -------------------------------------------------------------------------------- /data/FSRD_noise/III.4.32/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman III.4.32 1/(exp((h/(2*pi))*omega/(kb*T))-1) 2 | ** h omega kb T n 3 | 4.262802960384464 4.22406002717004 2.961732406986837 2.5588367951802686 2.3252091464404514 4 | 2.7031988772996747 1.7439243932420294 3.3717048790943496 3.217065216549309 14.004638875907041 5 | 4.5060842137393955 3.31015379828117 4.4073730101375155 2.2035842615108123 3.5268738740694032 6 | 3.501682321689668 1.468440554221222 3.865378041430619 3.7778687592304823 17.250833285111693 7 | 2.6182788375521646 1.6621200141913617 4.0277638010762455 4.692213663195851 26.815935599269316 8 | 4.439637190093155 4.373881230738597 2.420668093362492 2.34211084647167 1.2760832407675924 9 | 1.2263972347316985 1.820293795226552 1.2423847750694819 1.542989605296171 5.045865155449266 10 | 1.3084946834127384 2.19341261443173 2.5481975371226984 1.3419016119596012 7.139453620066216 11 | 1.8452863669480108 1.581636049600002 1.157573498780819 3.364830546502412 7.771729859273792 12 | 3.0741888214780806 1.6671554926647394 1.5163499234651168 2.6059074190054803 4.341911234077993 13 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_2sites_const_12.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads_1; 3 | Real kdes_1; 4 | Real S0_1; 5 | Real kads_2; 6 | Real kdes_2; 7 | Real S0_2; 8 | End. 9 | ProgramVariables 10 | End. 11 | Problem 12 | ( 13 | \exists c1 \exists c2 \exists c3 \exists c4 14 | \forall Q \forall S_1 \forall S_2 \forall Sa_1 \forall Sa_2 \forall P \forall rdes_1 \forall rads_1 \forall rdes_2 \forall rads_2 ( 15 | ( S0_1>0 & S_1>0 & Sa_1>0 & rads_1>0 & rdes_1>0 & kads_1>0 & kdes_1>0 16 | & S0_2>0 & S_2>0 & Sa_2>0 & rads_2>0 & rdes_2>0 & kads_2>0 & kdes_2>0 17 | & Q>=0 & P>0 18 | & S0_1 = S_1 + Sa_1 19 | & rads_1 = kads_1 * P * S_1 20 | & rdes_1 = kdes_1 * Sa_1 21 | & rads_1 = rdes_1 22 | & S0_2 = S_2 + Sa_2 23 | & rads_2 = kads_2 * P * S_2 24 | & rdes_2 = kdes_2 * Sa_2 25 | & rads_2 = rdes_2 26 | & Q = Sa_1 + Sa_2 27 | ) 28 | -> 29 | ( c1>0 & c2>0 & c3>0 & c4>0 & Q = (c1*P^2+c2*P)/(P^2+c3*P+c4)) 30 | ) 31 | ) 32 | End. -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/ObjId.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | import static utils.OptError.malformedInputError; 8 | 9 | import java.util.Comparator; 10 | 11 | public interface ObjId { 12 | String id(); 13 | 14 | //void dump(PrintStream out, String fmt, Object... s); 15 | 16 | final public static Comparator compareIds = new Comparator() { 17 | @Override 18 | public int compare(ObjId x, ObjId y) { 19 | return x.id().compareTo(y.id()); 20 | } 21 | }; 22 | 23 | final public static Comparator idComparator = compareIds; 24 | 25 | public static class ObjIdSuperClass implements ObjId { 26 | public final String id; 27 | public String id() { return id; } 28 | 29 | public ObjIdSuperClass(String id) { 30 | this.id = id; 31 | if (id.equals("")) 32 | malformedInputError(MalformedInputErrorCode.EMPTY_STRING_AS_ID, "empty string"); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /data/FSRD_noise/III.10.19/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman III.10.19 mom*sqrt(Bx**2+By**2+Bz**2) 2 | ** mom Bx By Bz E_n 3 | 4.752031409264202 2.2457171416483295 1.8738212163673467 3.1247223228650065 20.44562828609508 4 | 2.135121266101024 3.271804304424029 1.6192139401248982 4.334842245806952 11.968353266332143 5 | 1.7313907216052518 4.966067609318866 3.287814156790887 1.2883075039890373 10.614207963271232 6 | 4.5514700522137685 1.5515083272197518 4.3642559072905085 3.7387327386501767 27.406113044909016 7 | 3.9816327591650125 1.767536505614677 1.3019160307207827 1.8728224483178688 11.606398834458364 8 | 2.5582327454496547 3.1746429368485365 1.6406729707890122 2.3411665881793793 10.919918013106745 9 | 4.631894448399308 4.92984142054342 2.475507142272822 4.489802141833199 32.95741103320246 10 | 1.184242764556981 4.26186796287865 1.7343166306305715 1.8585539750167817 6.296283169251633 11 | 2.3014195325366704 1.962119335636085 2.448228303240036 4.73183555936435 13.139546673272575 12 | 3.5098622353407816 2.6858269095039833 4.949660458842732 2.4661098385001075 21.778873997977847 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/III.4.33/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman III.4.33 (h/(2*pi))*omega/(exp((h/(2*pi))*omega/(kb*T))-1) 2 | ** h omega kb T E_n 3 | 4.2057348926256815 2.526904729961146 2.8159803625282103 2.3911890105307947 6.032521534016793 4 | 1.9225135590739155 4.097863213317322 3.988993906615644 4.268410192244847 16.36605699837581 5 | 2.687456103775 4.065328412993407 3.232789152293126 2.7901706920238474 8.261632069370856 6 | 1.0035474909854805 4.514146867550768 1.386792208590475 1.2347587020244344 1.3669311347156492 7 | 4.098320943650707 2.4036128328752824 3.24291829946855 2.239939058365549 6.557588342546612 8 | 1.2269874093980007 3.385625301753198 1.705844726453996 1.0633596294086072 1.4367527456694296 9 | 4.232731481042438 1.37708241605882 4.130436382946426 4.204844487206172 16.957829284206397 10 | 3.9253910226530278 4.740305794424603 1.36171158259403 4.423905450762801 4.786077495717052 11 | 4.353342372534353 2.064359471597436 2.12440453535374 3.257549994699742 6.196513506503476 12 | 3.892230841068358 1.1695485674536452 3.571416022583207 2.156065270876125 7.324668160265706 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.12.2/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.12.2 q1*q2*r/(4*pi*epsilon*r**3) 2 | ** q1 q2 epsilon r F 3 | 3.5129800991097357 4.924224713199264 4.091140875912957 3.845476280858356 0.021800320391588218 4 | 2.0376285237739697 3.2216975220861084 3.650772583177736 4.766697355018907 0.0056844570396593205 5 | 3.66625558066635 1.9070637988590495 4.626407332445996 3.119762589905943 0.012838511020336582 6 | 1.1167471862902043 4.66822228682722 2.4836015869902486 4.065908806654473 0.010186347898401435 7 | 2.413786040606162 4.162172699934608 4.602295140790098 2.6880188496026567 0.024355821398642116 8 | 4.154428646804666 4.774576980279005 4.28581664402344 4.948051891762464 0.015303019353136191 9 | 4.877968558676855 4.618389496123296 3.738317474458793 3.0825607548467913 0.050765031078442914 10 | 4.167980135359184 3.9100799311234633 1.167095883349326 3.052861439224274 0.11928021451929388 11 | 3.482979174212187 1.840826037321054 4.190969892283155 3.9530560048495262 0.007850785882111164 12 | 1.2028323002090482 4.6588475565860925 4.032475956670256 3.2321721652021065 0.010674140658351962 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.24.6/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.24.6 1/2*m*(omega**2+omega_0**2)*1/2*x**2 2 | ** m omega omega_0 x E_n 3 | 2.2873597877454994 2.74176770729592 2.245353183404199 2.4543740267435092 43.04861291083632 4 | 2.302995649411355 2.408994193896328 1.963606805803281 2.54769506419398 35.75646639011793 5 | 1.2156219136342636 2.0749640090611026 1.5018565498314527 2.7810908315832 15.191204430888005 6 | 1.7511967602315301 1.1135988353666333 2.1479529406639495 1.566623853121454 6.202174855170561 7 | 1.8228797993817585 1.7011939208076539 2.663308999232057 1.5347544733957408 10.44582288501367 8 | 1.2151034427638576 1.8224649705607987 2.4474012774964797 1.02481686361624 2.981169219921272 9 | 1.0762744728504625 2.7346218300874536 2.196011969525613 1.7918819037399745 10.58101184163919 10 | 1.2509490127011134 2.3702714726631795 2.1056605386776734 1.9052268516586996 11.730500614887951 11 | 2.9551918180584265 1.8137417704952155 1.6597770180775469 1.7428372670717256 13.425039191156017 12 | 1.2932725608765867 1.1647175582858724 1.164982358600632 1.5883635308974287 2.3009471494733065 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.38.12/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.38.12 4*pi*epsilon*(h/(2*pi))**2/(m*q**2) 2 | ** m q h epsilon r 3 | 1.2212956190146915 1.402368776066659 2.093758382688662 3.152769671541487 1.8163435010401123 4 | 3.494631697818979 3.532209790148045 4.027890993610589 1.0070309649646467 0.12106800884831677 5 | 1.288946967585094 4.918216166405534 3.142426217248694 1.0247071327621158 0.10742271863855533 6 | 2.7032189884400295 2.6684535999537338 4.497075030885895 2.5948515541825317 0.8778612584100041 7 | 2.2228822847954715 3.9342383313728546 2.975676581848666 2.699571396580897 0.20752895613381678 8 | 1.234038090945322 4.356207163114837 4.7977227645778 4.744711143858563 1.4754394670832738 9 | 1.4701237502703286 1.5407954394766668 3.4129497263437165 3.2704883519149344 3.4980175386714496 10 | 2.788023273820889 1.5578305290979562 1.1704969800370844 3.7806331888125313 0.2558801017095943 11 | 1.7336065667889993 4.650307822540501 4.410913943092403 4.70466306129889 0.7944147122866889 12 | 3.0080937239210233 3.505875530925599 1.2423644307393467 4.983420503946071 0.05572886126496619 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.32.5/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.32.5 q**2*a**2/(6*pi*epsilon*c**3) 2 | ** q a epsilon c Pwr 3 | 2.022743634788513 4.4643072215840025 4.662655016672343 3.1509402127107764 0.02576828333046349 4 | 3.8942498033595854 1.654834348920951 3.2540437779022606 4.39441457562857 0.00590422263476458 5 | 3.5276612704691463 2.981643127975203 1.8323766759518554 1.0423332777222751 2.825884011230415 6 | 4.341250644851938 2.5805550695533617 2.7231559748836265 2.3284959313603353 0.19722551339309605 7 | 1.7644769637498845 1.0388905690865742 4.566244338468421 4.373823491178772 0.004824523288872855 8 | 2.0309717055291805 4.679343784083685 4.708655501382735 2.7769454804488305 0.04702231926211404 9 | 3.595081770748425 3.5568175240806084 2.8007445740676453 3.831176278784338 0.05817788879397082 10 | 2.0628190774745585 2.734513044046407 2.1059961006019265 2.904384923911657 0.03311946383303401 11 | 2.5772548034425324 4.840874408474388 4.852580619424569 1.717596258626561 0.33185348682131915 12 | 3.0129302366275406 3.2718772897598662 1.3578553410486234 4.753209491089532 0.03274382757587304 13 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_2sites_const_14.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads_1; 3 | Real kdes_1; 4 | Real S0_1; 5 | Real kads_2; 6 | Real kdes_2; 7 | Real S0_2; 8 | End. 9 | ProgramVariables 10 | End. 11 | Problem 12 | ( 13 | \exists c1 \exists c2 \exists c3 \exists c4 \exists c5 14 | \forall Q \forall S_1 \forall S_2 \forall Sa_1 \forall Sa_2 \forall P \forall rdes_1 \forall rads_1 \forall rdes_2 \forall rads_2 ( 15 | ( S0_1>0 & S_1>0 & Sa_1>0 & rads_1>0 & rdes_1>0 & kads_1>0 & kdes_1>0 16 | & S0_2>0 & S_2>0 & Sa_2>0 & rads_2>0 & rdes_2>0 & kads_2>0 & kdes_2>0 17 | & Q>=0 & P>0 18 | & S0_1 = S_1 + Sa_1 19 | & rads_1 = kads_1 * P * S_1 20 | & rdes_1 = kdes_1 * Sa_1 21 | & rads_1 = rdes_1 22 | & S0_2 = S_2 + Sa_2 23 | & rads_2 = kads_2 * P * S_2 24 | & rdes_2 = kdes_2 * Sa_2 25 | & rads_2 = rdes_2 26 | & Q = Sa_1 + Sa_2 27 | ) 28 | -> 29 | ( c1>0 & c2>0 & c3>0 & c4>0 & c5>0 & Q = (c1*P^2+c2*P)/(c3*P^2+c4*P+c5)) 30 | ) 31 | ) 32 | End. -------------------------------------------------------------------------------- /data/FSRD_noise/II.13.17/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.13.17 1/(4*pi*epsilon*c**2)*2*I/r 2 | ** epsilon c I r B 3 | 2.200311501413008 3.546312887057085 1.7955653641307587 1.0817794868434811 0.00992432050874395 4 | 4.4166653749367395 4.873935762341331 1.58477224169439 4.350484395531705 3.163374814656454e-05 5 | 4.5670877729962704 4.23451608816415 1.784460929502159 2.414704114331912 0.0016329685437987578 6 | 3.7736263750441084 4.005898777093838 3.7143969612605305 1.6280037416212547 0.006480753277018897 7 | 4.1684843427487355 1.7290935484716998 1.298079061299577 3.064317370673612 0.0056054449313561894 8 | 2.5292079057718087 1.8556359406929337 4.643211925305133 1.0803000679929102 0.07872904652651637 9 | 4.100476201316161 1.381109848125302 3.870327936350688 3.994300919304009 0.01947312374448409 10 | 1.3383916093022186 2.1150629087045 3.6757476597628576 3.3453093961989815 0.028699142212592853 11 | 3.7916378934409223 1.9026383971270637 2.1546359485209443 1.2732642491303152 0.019213147640603792 12 | 2.127916897348721 3.858066516561238 3.4703744521845032 1.4508005861422508 0.012287180366801471 13 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_2sites_const_10.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads_1; 3 | Real kdes_1; 4 | Real S0_1; 5 | Real kads_2; 6 | Real kdes_2; 7 | Real S0_2; 8 | End. 9 | ProgramVariables 10 | End. 11 | Problem 12 | ( 13 | \exists c1 \exists c2 \exists c3 \exists c4 \exists c5 14 | \forall Q \forall S_1 \forall S_2 \forall Sa_1 \forall Sa_2 \forall P \forall rdes_1 \forall rads_1 \forall rdes_2 \forall rads_2 ( 15 | ( S0_1>0 & S_1>0 & Sa_1>0 & rads_1>0 & rdes_1>0 & kads_1>0 & kdes_1>0 16 | & S0_2>0 & S_2>0 & Sa_2>0 & rads_2>0 & rdes_2>0 & kads_2>0 & kdes_2>0 17 | & Q>=0 & P>0 18 | & S0_1 = S_1 + Sa_1 19 | & rads_1 = kads_1 * P * S_1 20 | & rdes_1 = kdes_1 * Sa_1 21 | & rads_1 = rdes_1 22 | & S0_2 = S_2 + Sa_2 23 | & rads_2 = kads_2 * P * S_2 24 | & rdes_2 = kdes_2 * Sa_2 25 | & rads_2 = rdes_2 26 | & Q = Sa_1 + Sa_2 27 | ) 28 | -> 29 | ( c1>0 & c2>0 & c3>0 & c4>0 & c5>0 & Q = ((c1*P^2+c2)/(c3*P^2+c4))-(c5/P^2)) 30 | ) 31 | ) 32 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_2sites_const_11.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads_1; 3 | Real kdes_1; 4 | Real S0_1; 5 | Real kads_2; 6 | Real kdes_2; 7 | Real S0_2; 8 | End. 9 | ProgramVariables 10 | End. 11 | Problem 12 | ( 13 | \exists c1 \exists c2 \exists c3 \exists c4 \exists c5 14 | \forall Q \forall S_1 \forall S_2 \forall Sa_1 \forall Sa_2 \forall P \forall rdes_1 \forall rads_1 \forall rdes_2 \forall rads_2 ( 15 | ( S0_1>0 & S_1>0 & Sa_1>0 & rads_1>0 & rdes_1>0 & kads_1>0 & kdes_1>0 16 | & S0_2>0 & S_2>0 & Sa_2>0 & rads_2>0 & rdes_2>0 & kads_2>0 & kdes_2>0 17 | & Q>=0 & P>0 18 | & S0_1 = S_1 + Sa_1 19 | & rads_1 = kads_1 * P * S_1 20 | & rdes_1 = kdes_1 * Sa_1 21 | & rads_1 = rdes_1 22 | & S0_2 = S_2 + Sa_2 23 | & rads_2 = kads_2 * P * S_2 24 | & rdes_2 = kdes_2 * Sa_2 25 | & rads_2 = rdes_2 26 | & Q = Sa_1 + Sa_2 27 | ) 28 | -> 29 | ( c1>0 & c2>0 & c3>0 & c4>0 & c5>0 & Q = (1/(P^2+c1))+((c2*P-c3)/(c4*P+c5))) 30 | ) 31 | ) 32 | End. -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_2sites_const_13.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads_1; 3 | Real kdes_1; 4 | Real S0_1; 5 | Real kads_2; 6 | Real kdes_2; 7 | Real S0_2; 8 | End. 9 | ProgramVariables 10 | End. 11 | Problem 12 | ( 13 | \exists c1 \exists c2 \exists c3 \exists c4 14 | \forall Q \forall S_1 \forall S_2 \forall Sa_1 \forall Sa_2 \forall P \forall rdes_1 \forall rads_1 \forall rdes_2 \forall rads_2 ( 15 | ( S0_1>0 & S_1>0 & Sa_1>0 & rads_1>0 & rdes_1>0 & kads_1>0 & kdes_1>0 16 | & S0_2>0 & S_2>0 & Sa_2>0 & rads_2>0 & rdes_2>0 & kads_2>0 & kdes_2>0 17 | & Q>=0 & P>0 18 | & S0_1 = S_1 + Sa_1 19 | & rads_1 = kads_1 * P * S_1 20 | & rdes_1 = kdes_1 * Sa_1 21 | & rads_1 = rdes_1 22 | & S0_2 = S_2 + Sa_2 23 | & rads_2 = kads_2 * P * S_2 24 | & rdes_2 = kdes_2 * Sa_2 25 | & rads_2 = rdes_2 26 | & Q = Sa_1 + Sa_2 27 | ) 28 | -> 29 | ( c1>0 & c2>0 & c3>0 & c4>0 & 30 | Q = (c1 * P^2 + c2 * P -c3)/(c4 * P^2 +P) ) 31 | ) 32 | ) 33 | End. -------------------------------------------------------------------------------- /data/FSRD_noise/II.11.27/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.11.27 n*alpha/(1-(n*alpha/3))*epsilon*Ef 2 | ** n alpha epsilon Ef Pol 3 | 0.8248307665705054 0.6406773553294156 1.4786729674568588 1.1755663081526002 1.111035526450596 4 | 0.374148478518744 0.30881246610838176 1.0014455698685523 1.5417409390905334 0.1843099720309341 5 | 0.7127943676149692 0.33588699999690286 1.7657446213579546 1.72426959017606 0.7849020823156021 6 | 0.7912677186445624 0.1452204353933324 1.6803200460409982 1.5480180295831008 0.3011819919786339 7 | 0.9448218222352788 0.40728710914732813 1.9047694810223206 1.7656837828731047 1.499822369366379 8 | 0.2580542560502008 0.975444261712956 1.048771492297549 1.8339915397071804 0.5243291065516709 9 | 0.656123007673209 0.5934823555276638 1.8774529999513212 1.053342317384086 0.8866143526793842 10 | 0.6292407584503176 0.7082475939393937 1.9944495150700434 1.5941514394853729 1.6532183733001957 11 | 0.9589562968734409 0.08829671901990266 1.000953761254625 1.2947989004939253 0.11192097870515502 12 | 0.49906475272609796 0.45415953336355386 1.4901907971852104 1.5480816402025632 0.5715560300250333 13 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/IntExpSplit.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | public class IntExpSplit extends Split { 10 | public final int expval; 11 | public final VarExp vexp; 12 | //public final String varnm; 13 | public final InVar var; 14 | 15 | public IntExpSplit(VarExp vexp, int expval) { 16 | // super(vexp.inst); 17 | super(null); 18 | die(); 19 | this.expval = expval; 20 | this.vexp = vexp; 21 | //this.varnm = vexp.var.nm; 22 | 23 | die(); 24 | // this.var = vexp.var; 25 | this.var = null; 26 | } 27 | 28 | public String toString() { 29 | return "exp" + mlsplit.nodeNo + var + "=" + expval; 30 | } 31 | 32 | protected int compareToAux(IntExpSplit that) { 33 | //return chainCompare(this.mlsplit.mn.compareTo(that.mlsplit.mn), this.splitPos, that.splitPos); 34 | return chainCompare(this.mlsplit, that.mlsplit, this.var, that.var, this.expval, that.expval); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/Univ2.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | import java.util.function.BiFunction; 8 | 9 | public class Univ2 { 10 | private final Univ1, T> univ; 11 | 12 | public Univ2(BiFunction constructor) { 13 | this.univ = new Univ1<>(k1k2 -> constructor.apply(k1k2.left, k1k2.right)); 14 | } 15 | 16 | public T get(K1 k1, K2 k2) { 17 | return univ.get(new Pair<>(k1, k2)); 18 | } 19 | 20 | // private LinkedHashMap> univ = new LinkedHashMap<>(); 21 | // 22 | // private final BiFunction constructor; 23 | // 24 | // public Univ2(BiFunction constructor) { 25 | // this.constructor = constructor; 26 | // } 27 | // 28 | // public T get(K1 k1, K2 k2) { 29 | // LinkedHashMap u = univ.computeIfAbsent(k1, k-> new LinkedHashMap<>()); 30 | // 31 | // (Function) op2 -> new NormNode(op2, inst)); 32 | // } 33 | } 34 | -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/kepler/Kepler_const.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real G; 3 | Real pi; 4 | Real convP; 5 | Real convm2; 6 | Real convm1; 7 | Real convD; 8 | End. 9 | Problem 10 | ( 11 | \exists c1 12 | \forall m1 13 | \forall m2 14 | \forall d 15 | \forall m1N 16 | \forall m2N 17 | \forall dN 18 | \forall PN 19 | \forall P 20 | \forall d1 21 | \forall d2 22 | \forall w 23 | \forall Fg 24 | \forall Fc 25 | ( 26 | ( 27 | m1>0 & m2>0 & P>0 & d2>0 & d1>0 & m1N>0 & m2N>0 & PN>0 28 | & G = (6.674 * 10^(-11)) & pi = (3.14) 29 | & ( m1 * d1 = m2 * d2 ) 30 | & ( d = d1 + d2 ) 31 | & ( Fg = (G * m1 * m2) / d^2 ) 32 | & ( Fc = m2 * d2 * w^2 ) 33 | & ( Fg = Fc ) 34 | & ( P = (2 * pi )/w ) 35 | & convP = (365 * 24 * 60 * 60 ) 36 | & convm1 = ( 1.9885 * 10^30 ) 37 | & convm2 = ( 1.9885 * 10^30 ) 38 | & convD = (1.496 * 10^11 ) 39 | & m1N = m1 / convm1 40 | & m2N = m2 / convm2 41 | & dN = d / convD 42 | & PN = P / convP 43 | ) 44 | -> 45 | ( PN = ( (c1 * dN^3) / (m1N + m2N ) )^(1/2) ) 46 | ) 47 | ) 48 | End. -------------------------------------------------------------------------------- /data/FSRD/problems_used.txt: -------------------------------------------------------------------------------- 1 | # Volume I 2 | I.6.20a 3 | I.6.20 4 | I.6.20b 5 | I.8.14 6 | I.9.18 7 | I.10.7 8 | I.11.19 9 | I.12.1 10 | I.12.2 11 | I.12.4 12 | I.12.5 13 | I.13.4 14 | I.13.12 15 | I.14.3 16 | I.14.4 17 | I.15.3x 18 | I.15.3t 19 | I.15.10 20 | I.16.6 21 | I.18.4 22 | I.24.6 23 | I.25.13 24 | I.27.6 25 | I.29.4 26 | I.32.5 27 | I.32.17 28 | I.34.8 29 | I.34.10 30 | I.34.14 31 | I.34.27 32 | I.38.12 33 | I.39.10 34 | I.39.11 35 | I.39.22 36 | I.40.1 37 | I.41.16 38 | I.43.16 39 | I.43.31 40 | I.43.43 41 | I.44.4 42 | I.47.23 43 | I.48.20 44 | 45 | # Volume II 46 | II.2.42 47 | II.3.24 48 | II.4.23 49 | II.6.15a 50 | II.8.7 51 | II.8.31 52 | II.10.9 53 | II.11.3 54 | II.11.20 55 | II.11.27 56 | II.11.28 57 | II.13.17 58 | II.13.23 59 | II.13.34 60 | II.21.32 61 | II.24.17 62 | II.27.16 63 | II.27.18 64 | II.34.2a 65 | II.34.2 66 | II.34.11 67 | II.34.29a 68 | II.34.29b 69 | II.35.18 70 | II.36.38 71 | II.37.1 72 | II.38.3 73 | II.38.14 74 | 75 | # Volume III 76 | III.4.32 77 | III.4.33 78 | III.7.38 79 | III.10.19 80 | III.12.43 81 | III.13.18 82 | III.14.14 83 | III.15.14 84 | III.15.27 85 | III.19.51 86 | III.21.20 87 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/PrintProb0.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import java.io.PrintStream; 8 | 9 | import utils.UList; 10 | 11 | public class PrintProb0 { 12 | public final Input inpx; 13 | public final UList input; 14 | // public final int numInVars; 15 | 16 | public final NormNode node0; 17 | public final INode nodeInstance; 18 | public final UList splits; 19 | public final PrintStream out; 20 | public final int redo; // really just for obj_variations 21 | 22 | public PrintProb0(Input2 inpx, NormNode node, INode nodeInstance, UList splits, int redo, PrintStream out) { 23 | super(); 24 | // this.inpx = inpx2.inpx; 25 | this.inpx = inpx.inpx; 26 | this.input = inpx.input; 27 | // this.numInVars = inpx.numInVars; 28 | 29 | this.node0 = node; 30 | this.nodeInstance = this.inpx.using_expn_op ? nodeInstance : nodeInstance.tightedPsumBndst(); 31 | this.splits = splits; 32 | this.redo = redo; 33 | this.out = out; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 International Business Machines 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/DelayedInitUList.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | import java.util.function.Supplier; 10 | 11 | import utils.UList; 12 | 13 | public class DelayedInitUList extends UList { 14 | private final Supplier> supplier; 15 | private final String nm; 16 | 17 | public DelayedInitUList(Supplier> supplier) { 18 | this(supplier, "NONAME"); 19 | } 20 | 21 | public DelayedInitUList(Supplier> supplier, String nm) { 22 | super(nm); 23 | this.supplier = supplier; 24 | this.nm = nm; 25 | } 26 | 27 | public DelayedInitUList() { 28 | super("howdy"); 29 | this.supplier = null; 30 | this.nm = "NONAME"; 31 | } 32 | 33 | public void init() { 34 | printf("INITING ULIST %s%n", nm); 35 | super.init(supplier.get()); 36 | } 37 | 38 | public void init(UList initval) { 39 | super.init(initval); 40 | } 41 | 42 | public static DelayedInitUList empty() { 43 | return new DelayedInitUList(() -> UList.empty()); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/Utils.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | //import System.out; 8 | 9 | public class Utils { 10 | // public static UList rangeClosed(int start, int last) { 11 | // return IntUList.rangeClosed(start, last).boxed(); 12 | // } 13 | 14 | // 15 | // public static UList filterActive(UList xs, Predicate filter, 16 | // String nm) { 17 | // final AtomicInteger nskipped = new AtomicInteger(0); 18 | // UList ys = xs.filter(x -> { 19 | // if (filter.test(x)) 20 | // return true; 21 | // else { 22 | // nskipped.incrementAndGet(); 23 | // return false; 24 | // } 25 | // }); 26 | // if (nskipped.get() > 0) 27 | // printf("SKIPPED %s non-Active %s ENTRIES%n", nskipped, nm); 28 | // return ys; 29 | // } 30 | // 31 | // public static Predicate testActive = x -> { 32 | // if (x.Active.trim().equals("1")) 33 | // return true; 34 | // if (!x.Active.trim().equals("0")) 35 | // printf("SAW UNUSUAL VALUE OF 'Active': %s%n", x.Active); 36 | // return false; 37 | // }; 38 | 39 | } 40 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.44.4/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.44.4 n*kb*T*ln(V2/V1) 2 | ** n kb T V1 V2 E_n 3 | 4.420473428891203 3.8458584058480487 1.9460242915675998 3.630353666644168 3.764595067048002 1.2661375647672957 4 | 4.670881670251858 2.5838224002795442 2.0374909055502464 3.855706329418281 1.7211045951924473 -19.830062016453674 5 | 1.0182181384099138 1.3948870464153185 3.3641669358580764 2.4193758742256657 4.496200760882457 2.963192664939222 6 | 2.178750666050813 1.996821784640233 1.6839154753849481 2.897500877749249 2.0975218638150124 -2.374526043935936 7 | 4.579356574210165 3.164651690174654 1.5275645193462624 3.9449491670465027 3.3324578148252826 -3.97522564627815 8 | 2.1796212030548623 4.491938440479556 2.6551332987450746 1.337863066268536 3.5021371700570643 24.767011705761906 9 | 1.0728359314774432 2.483044146967619 4.170757156173554 2.9332737695381867 2.666058977391971 -1.1683596869830555 10 | 3.1981193577564757 2.769036077043744 2.8294363510333134 2.229605962833012 2.07008494974818 -1.996105118602227 11 | 4.746767701635898 2.3298742909905372 3.051380485575969 4.62594644422226 2.794527835389654 -17.115793422492796 12 | 4.195235004967016 3.296087811102989 4.077862219443061 1.1523594222067368 1.9655858899511855 30.036939272364993 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.34.29b/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.34.29b g_*mom*B*Jz/(h/(2*pi)) 2 | ** g_ h Jz mom B E_n 3 | 4.338649940341847 3.2196426067993285 3.4655283803657455 4.894444648090042 3.9970046687936738 571.0914264716313 4 | 4.928160065388796 4.869697407103513 4.212386733676757 1.068649991304254 1.0429312862187228 28.52101504535161 5 | 4.7836577221725936 4.995592038157723 1.9004847637747146 3.063205749982947 2.8755251359780565 100.45171905673125 6 | 2.886948242614697 4.811773926015544 1.4742345810589348 4.7842445666987405 1.4837161108175256 40.041446471366775 7 | 3.6123449903413687 3.77661345192243 4.650560062046305 2.0172351449509933 2.82701035826762 156.15468029470006 8 | 1.962908264295447 2.8018672781490372 3.4614762798712975 4.068758926950082 4.7349681816282825 290.0780212020899 9 | 4.544422475919248 2.2209495657560447 3.8704368161795615 3.7651292623788044 2.5960341358435306 484.71862525382915 10 | 1.7114828072614454 4.201909754070458 4.203426566165082 3.3311442620389586 3.8248243207886574 140.59970881294984 11 | 1.30569577812618 3.2600538418147553 3.732916034183941 3.846663234066565 1.2891782703953316 44.50096726224888 12 | 1.2046506362273632 3.08376371852079 2.3614308726863253 1.3161437906702873 2.910058776989612 24.540151735427468 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.13.12/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.13.12 G*m1*m2*(1/r2-1/r1) 2 | ** m1 m2 r1 r2 G U 3 | 1.9834407066521367 2.4874015759745487 1.492982922165012 1.5172544096250054 1.8514300378204598 -0.1014158630008692 4 | 1.308402975455909 3.1804091323656825 3.6088464790203965 4.437934790196374 2.9397367109511645 -0.6488794816368846 5 | 1.3684435235385548 2.518865076621567 3.217947977730384 4.206874812010664 2.306523930044408 -0.5315484909345515 6 | 1.0758273469870119 4.965883190778307 2.0849552076902413 2.136287375709019 2.0328498923187412 -0.05839779885192739 7 | 2.7070328482432626 3.7760643525978845 1.5838439026596514 1.3696808751086391 1.017009573130005 1.0243147328500757 8 | 3.1672160952792794 3.905867515795735 3.9664248832722615 2.65809787951427 1.7312890307467064 2.662062415063315 9 | 4.439451831202996 1.2890000589542785 1.0732309001091993 4.070036792186336 3.1120666075867303 -12.200461931335962 10 | 1.621327975379867 2.543993217642344 3.4834131997436595 3.701760186918954 4.727955743894402 -0.23366197237813963 11 | 2.048248685867266 1.2864791379396032 2.0393730199340494 1.818634688759782 3.457599868303835 0.5440157314870193 12 | 1.8753928833939497 3.056276516778575 1.7900418968624288 1.5022868181261715 2.592060802643743 1.6165369017730435 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.11.20/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.11.20 n_rho*p_d**2*Ef/(3*kb*T) 2 | ** n_rho p_d Ef kb T Pol 3 | 2.8555520116174775 1.6464787489956656 1.4899324837182442 1.2813577902694124 3.399783509968554 0.8096446286115001 4 | 2.7680208970284275 1.7311616314988418 4.379060783001282 2.058981309512715 1.9586817644802306 3.0104431211874987 5 | 4.702020871758223 2.49420273338252 1.1553085207057383 2.6556033175800517 1.2825804706852435 3.3240352907710133 6 | 1.9162950016455986 3.797902475899995 1.735855167519889 1.6812762723592667 1.0655189410095716 8.810229382158816 7 | 4.651772143582605 1.4627080246187472 2.202338324302954 4.714634312339644 2.7280465562902427 0.5777092330207855 8 | 1.1180657672721552 3.2244281327469193 2.256857964577884 3.0935875645403343 4.1899031102987365 0.7003105481977117 9 | 2.287668712924684 4.966412475887857 1.8816865650054053 1.409812435130454 3.8723968854972566 6.506905290918515 10 | 1.9600651471546646 3.408051027458833 4.874208868994772 2.6452642435164737 4.705156000045823 2.9707629591640874 11 | 1.1495904675464463 1.638679085053953 4.41761607726286 2.1301285793982534 4.440185721107281 0.5291381334821403 12 | 1.5762822518723931 4.981209457937885 4.153163437596423 4.704118906734051 2.3675178628359776 4.919515384143549 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.2.42/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.2.42 kappa*(T2-T1)*A/d 2 | ** kappa T1 T2 A d Pwr 3 | 1.4265502764184697 2.8945515045588985 3.427262583427706 1.2122662536509234 1.1259149177783758 0.6559916087750102 4 | 3.275663077154715 4.5302655425978955 1.9000633313679778 3.80604554619804 2.5987858602669895 -12.681830880466563 5 | 3.128571339938525 1.1117443546064019 3.6968264485914544 3.1208592944745246 3.312825681710042 7.623015358906987 6 | 4.8670195430304934 2.7055785170876083 1.005716772366755 4.151991955218207 1.434537731134148 -23.955105970936156 7 | 4.267585320308191 4.739029240792606 2.1804534586647333 2.2492961390918964 3.122851107331386 -7.9258486443485685 8 | 1.6477807637762738 1.5580356740067156 1.2749270182194055 2.2976263366245604 1.2601968302984337 -0.7399751540521063 9 | 3.342706896990832 4.185961905532382 3.083906927646528 1.4578307296262611 4.700461311110859 -1.1551307975849159 10 | 4.601578936829647 3.9731405656982406 3.536055209194275 3.6412717467803692 3.9023617405220077 -1.828021888159797 11 | 4.517982452203363 1.5311914263898174 3.1124958133918366 3.707080351218011 3.971077076555105 6.623893229048517 12 | 3.2200885921161957 1.3876121135968642 2.2436936501523856 3.9722862443112885 1.4695768857237366 7.438668462268859 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/III.14.14/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman III.14.14 I_0*(exp(q*Volt/(kb*T))-1) 2 | ** I_0 q Volt kb T I 3 | 3.8001690109867545 1.8987529540050239 1.0650579189504126 1.0643202520426847 1.0115137028343144 20.973150643220674 4 | 4.042420547794761 1.859430623220685 1.9061206666814825 1.0273689917706768 1.539633588785722 33.80941321579509 5 | 3.025049111670439 1.6263363692625505 1.7096105663949026 1.9202448319967809 1.6324916041683637 4.195175685827696 6 | 3.239224470439015 1.0705417654961686 1.8688143491806006 1.629798048655278 1.9250601975278365 3.029944384640852 7 | 1.2495798012053796 1.382284313197192 1.6989958173664563 1.7904434091991066 1.0605779028304818 3.2334280831778504 8 | 3.302369391360152 1.477822458076825 1.4214469522111395 1.255544321016824 1.9391830294199537 4.8045552404558 9 | 3.8943406808742913 1.6958246689953693 1.8388834330525918 1.8665498992657592 1.425616498645975 8.758287650927208 10 | 1.330512630667597 1.299498096494578 1.991442106885203 1.0972271738716501 1.6723807673917186 4.092945899002141 11 | 1.8073427723586621 1.2926553350281786 1.2138571553086779 1.521686965448499 1.906094420654143 0.9931738368612323 12 | 2.0803895120051776 1.7471295438317065 1.2215392012018562 1.3955813522786995 1.4939177194538424 3.569102554912346 13 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/Split.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | public abstract class Split implements Comparable { 10 | public final MLInstance mlsplit; 11 | 12 | protected Split(MLInstance mlsplit) { 13 | this.mlsplit = mlsplit; 14 | } 15 | 16 | @Override 17 | public int compareTo(Split that) { 18 | if (this instanceof ConstSplit) { 19 | if (that instanceof ConstSplit) 20 | return ((ConstSplit) this).compareToAux((ConstSplit) that); 21 | } else if (this instanceof ExpSplit) { 22 | if (that instanceof ExpSplit) 23 | return ((ExpSplit) this).compareToAux((ExpSplit) that); 24 | } else if (this instanceof IntExpSplit) { 25 | if (that instanceof IntExpSplit) 26 | return ((IntExpSplit) this).compareToAux((IntExpSplit) that); 27 | } else if (this instanceof DropConstSplit) { 28 | if (that instanceof DropConstSplit) 29 | return ((DropConstSplit) this).compareToAux((DropConstSplit) that); 30 | } else { 31 | die(); 32 | } 33 | return this.getClass().getName().compareTo(that.getClass().getName()); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.11.3/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.11.3 q*Ef/(m*(omega_0**2-omega**2)) 2 | ** q Ef m omega_0 omega x 3 | 2.4031255339746345 2.3208052597173903 1.5191868610873618 4.499831721145445 1.516507663451709 0.20992786940500038 4 | 2.3740569539898604 2.0163042301660967 2.4898636337355478 3.5929605937902993 1.630700579491822 0.1883781572420575 5 | 1.8300058559203543 2.739820849205061 2.7344234885288605 4.891712034920527 1.6641419400744906 0.08755426794151829 6 | 2.7511724012255856 1.1856203663622464 2.0017959477574827 3.1242884315742323 1.6159733616695382 0.22894794063092824 7 | 1.1129806335456216 1.023232949191358 2.793781221766661 4.170916412429518 1.905517995321203 0.0291253192909404 8 | 2.331385734520535 1.7724994254026925 2.321049904106 3.7678444877897457 1.4425534664661637 0.1474574486311384 9 | 2.801084810065749 1.4613031373409575 2.9105710777611424 3.003329934885682 1.5618227553440638 0.20926811851136481 10 | 1.0191636724438837 2.776698661066762 1.4427076634671263 4.210762828958005 1.219696259926885 0.12300099483643342 11 | 1.301304750084131 1.3599634588241507 1.305934146434219 4.873374898083914 1.7541645166939375 0.05927064496715825 12 | 2.6758517982545786 2.2674278903627343 1.2960777786367268 3.7001758561899925 1.7817812759797407 0.44454778990923455 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.21.32/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.21.32 q/(4*pi*epsilon*r*(1-v/c)) 2 | ** q epsilon r v c Volt 3 | 1.936893593615037 2.188164388507754 3.221770292784064 1.6302873607405863 6.70440681080121 0.02833338755957227 4 | 3.658505587127593 1.4774248600327122 1.50766607495861 1.8017218075658459 8.011820708079702 0.16867542307893107 5 | 2.4575754400123127 1.5673554719542993 4.028452983934869 1.2328101119008146 9.611732713309294 0.03597260361399561 6 | 1.0016696556626488 2.985999436125576 2.0392306498367048 1.1585492705370324 8.946619188771123 0.01492060229059245 7 | 3.860366809557817 4.309703327135102 1.4084579426090875 1.4287168608559102 6.7237761640118805 0.06431946720171158 8 | 4.366388565056392 2.5695595542016734 2.2634949615790827 1.6398737768838862 3.8699509978450406 0.10436635905218983 9 | 1.7252586543877682 3.8204066282587075 3.9437806594087292 1.451053437629212 4.760883856436171 0.012400886449338304 10 | 3.863786277622553 1.3044083571633327 3.6853541816964186 1.9068165987494288 8.443931143498007 0.08307832905081126 11 | 1.0899884553722874 1.4380420804743355 4.568236147720331 1.2372037516775973 7.253999521544035 0.01576323656126471 12 | 1.2667212754658697 3.4104105575567365 4.615709401241377 1.9484420188078926 3.463729223997449 0.014311632717458386 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.35.18/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.35.18 n_0/(exp(mom*B/(kb*T))+exp(-mom*B/(kb*T))) 2 | ** n_0 kb T mom B n 3 | 1.7134299126033825 2.433928172088275 1.009471371983261 1.9201476223990013 2.142338992115634 0.3041634921779937 4 | 1.6530990233911835 1.11786333149947 2.5987297646202485 2.387463824826143 1.0815215383859238 0.5843098003824136 5 | 1.9332198537875687 1.5845668160520738 1.828184625719356 2.2344648435562657 1.1577586378179316 0.6790054054391218 6 | 2.845893744420162 1.141032695628894 1.5422850103359946 1.0421291257692162 2.3688558800669 0.6712566255085624 7 | 1.755514841537368 1.0705189589038475 2.7729637810390786 2.1278297763253393 1.0883190279866868 0.6702174317340701 8 | 2.4113068400004645 1.9622582673448508 1.3800288603049506 1.7063600955109681 2.5685751063576365 0.4567283811258286 9 | 1.0520456836340664 1.898063923805733 1.2790745863543065 1.4511371563749016 2.142053230203721 0.26893997275328063 10 | 2.7561628408042007 2.0531289343024604 2.9906511622222025 1.7618294638876122 2.6494982175671504 1.0484591239379726 11 | 2.536389185630139 2.554156013406913 1.7305941911157008 1.5066382730297339 2.8305029475301806 0.8428443853928832 12 | 1.2289049189949726 1.7338466896344045 2.701082789919681 1.2375692904112505 2.9850910353842224 0.4558985726945062 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.39.1/input_original.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.39.1 3/2*pr*V 2 | ** pr V E_n 3 | 2.35226027971694 2.955388905677463 10.427765900911815 4 | 3.627008717775532 4.661257897765669 25.359634546494195 5 | 3.557061162155107 4.342060388916922 23.16746155972272 6 | 3.7540126154463116 2.2317943526978046 12.56727623266409 7 | 2.3658733911249605 3.961094929103867 14.057173638730276 8 | 1.4909535831726775 1.2930524729564978 2.891821826677173 9 | 1.1607444733461363 1.290176685430577 2.246348185880368 10 | 4.299227825579135 3.707024499908272 23.906014320163834 11 | 3.0936123857893483 2.693433068446792 12.498656851262407 12 | 3.752121131782741 4.174836168385818 23.49673651369698 13 | 2.0745002614630366 4.303501172081987 13.391421460035849 14 | 1.8972548457679999 4.543761107213303 12.931009168008917 15 | 2.0998056155750544 1.421508054724709 4.477335893844174 16 | 2.325050011274089 3.0411280343524187 10.606162155835559 17 | 4.0915144382619 2.7400063937389176 16.81616358136905 18 | 2.9566885585625537 4.309339198895845 19.1120608565107 19 | 4.2043476695057445 1.2532205758018056 7.903462510873453 20 | 2.8724781624000104 1.0779051285726937 4.644388414446057 21 | 4.399629206759828 3.8951814486894323 25.706031100924626 22 | 4.273016421845081 3.224151395970987 20.66527779224815 23 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.12.1/input_original.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.12.1 mu*Nn 2 | ** mu Nn F 3 | 1.1136223150728854 4.237022171434605 4.718442439568149 4 | 1.0664440031996527 3.7226952688233275 3.970046045176357 5 | 1.1727920424767109 4.935133093874645 5.787884821059655 6 | 1.0216534517671008 3.9923574968124136 4.078805817306664 7 | 2.70951696613775 1.0599482284205295 2.8719477081330758 8 | 4.803294418327015 2.2410919087330647 10.764624256175367 9 | 3.3935399962519317 3.3697643619512676 11.435430140225998 10 | 1.1038376639505172 4.473883640332009 4.93844126633052 11 | 1.560992634932603 1.9445633727832328 3.0354491030743285 12 | 3.565157097580731 2.2163727424230935 7.901717013534161 13 | 2.9816116342172942 3.124063012764457 9.314742624886437 14 | 4.159666002781874 3.6389784418468105 15.136934909406333 15 | 1.2117551412950651 1.1197339997927966 1.3568434311318087 16 | 4.335863778804274 2.0387911663910625 8.839920770901125 17 | 4.501355193747891 1.1556085525420792 5.201804559924771 18 | 1.5625338726574922 2.8669136335663445 4.479649662430983 19 | 3.239759758335932 3.2081375605622555 10.3935949679156 20 | 1.2275684671637714 2.401750860416191 2.9483136222303727 21 | 1.6796267795911493 1.204894181281706 2.023772533454306 22 | 4.122050381845769 1.1688120462492129 4.817902141547503 23 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.12.5/input_original.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.12.5 q2*Ef 2 | ** q2 Ef F 3 | 4.230094105945206 4.989988020338535 21.10811891357122 4 | 1.7835543769151454 4.879775762873631 8.703345420237708 5 | 1.5009868841236398 3.956718468320059 5.9389825251181865 6 | 4.20140821606527 1.285142547939738 5.399408459729071 7 | 3.775127950158875 4.123726342679955 15.567594575057534 8 | 1.5342177805827286 1.7007520793539102 2.609324080507817 9 | 2.6313526043157203 4.4878274973734715 11.809056572933386 10 | 2.852681306110709 1.984883474048214 5.6622399812254205 11 | 1.3541112539254394 1.339354261918679 1.8136346790570836 12 | 4.104422036439983 1.3760536017825369 5.6479047264788536 13 | 2.7629876660533443 2.0745862511530158 5.732056224099629 14 | 2.1645687357976686 1.7703530260712466 3.832050811558615 15 | 4.509355560378019 3.7963085935859473 17.118905265397647 16 | 4.971475802033975 4.011979854464756 19.945460764719325 17 | 2.1817045822462373 4.792663319269382 10.456175524813471 18 | 3.1254712184886624 2.0421512023801003 6.382684806841019 19 | 1.0109588712233402 3.959067782163451 4.002454696152655 20 | 1.1965103853956318 2.2801711959723563 2.7282485164609027 21 | 3.1213622468863047 4.642595706328265 14.491222965289504 22 | 1.0962859050961944 1.3258708820016034 1.4535335599158175 23 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.25.13/input_original.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.25.13 q/C 2 | ** q C Volt 3 | 3.2327819507891773 2.137775288126694 1.5122178503719275 4 | 2.904728857498917 2.5904928136845635 1.1213035767381276 5 | 1.5081233679369968 3.363578865365973 0.4483686657285813 6 | 4.528914886238114 1.800079161418271 2.5159531776757036 7 | 2.3049402175425007 2.6020197462659738 0.885827335034718 8 | 4.968713454213191 4.754519823795629 1.0450505284141536 9 | 1.871572954759058 2.4583746128877593 0.7613050285125554 10 | 3.016395436221343 1.3440912021155706 2.2441895546028436 11 | 1.129522852723945 3.194226952035817 0.3536138382415351 12 | 3.3892922157154417 3.1988022836422956 1.0595503926726744 13 | 1.4753777832540411 4.5257258558217535 0.3259980454530097 14 | 2.7969508286609073 1.1353955137604692 2.4634154308020024 15 | 3.4141327570735003 1.2301753159126152 2.77532211296298 16 | 4.702678692224723 3.554374248136153 1.3230679618756294 17 | 2.2738282881421146 4.563951507865636 0.4982148220074946 18 | 4.377204793808458 2.391819821505828 1.8300729655516788 19 | 4.95155065795038 4.407485814649891 1.1234410877721013 20 | 3.8465489914415567 3.559559081676964 1.0806251288936009 21 | 2.072620281387012 4.224298753715968 0.49064244794802936 22 | 4.15552642105388 2.7193190258210738 1.528149651289685 23 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.29.4/input_original.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.29.4 omega/c 2 | ** omega c k 3 | 3.6966944485468165 8.365268820532078 0.44190982117316896 4 | 7.821465131945753 1.5042798337361116 5.199474829440434 5 | 9.644371257039966 2.6448438077451923 3.6464804571057368 6 | 6.121861939515799 5.799290750893129 1.0556225239393269 7 | 2.479241438712347 5.720310136427876 0.43341031859865947 8 | 1.279158449427531 4.057080221046656 0.31529040091239074 9 | 7.191681885068009 2.4951932929049176 2.8822143380705443 10 | 1.1940453265818327 4.536820924303077 0.2631898738135131 11 | 1.8703653121300563 5.749606552113539 0.3253031829530171 12 | 4.443698267299572 9.962572682691714 0.4460392319164453 13 | 9.618717175571387 5.0154590375377675 1.9178139236271166 14 | 8.568965349102974 3.960107256042286 2.163821531860923 15 | 6.2410928962831385 5.198852686410659 1.2004750418485224 16 | 4.101377358125071 9.312793329250937 0.4404024886113263 17 | 2.310644980093276 9.72551112750424 0.23758596846994032 18 | 6.0205496336825775 1.8124812481658337 3.3217169224648027 19 | 6.5760960118537435 9.120929232692946 0.7209896978788594 20 | 1.5456651135655766 2.591718202355319 0.5963862553270246 21 | 1.989921717559429 1.9519984519627773 1.0194279178646475 22 | 8.994544662744952 5.6726137355992226 1.5856085187500994 23 | -------------------------------------------------------------------------------- /data/FSRD_noise/III.12.43/input_original.dat: -------------------------------------------------------------------------------- 1 | # Feynman III.12.43 n*(h/(2*pi)) 2 | ** n h L 3 | 3.2915648395263792 4.222918346469342 2.212255228816232 4 | 1.11915112627042 3.9193740638005585 0.6981127697706618 5 | 3.027165557887417 4.146449231184503 1.9977109836037699 6 | 2.3202575031868093 1.9252871079238973 0.7109708912841992 7 | 3.8262659108638237 1.6463599231848112 1.0025823755184013 8 | 1.2267885635404419 2.451854447673837 0.4787232667537268 9 | 4.703457518778755 2.2515371779479803 1.6854523542905024 10 | 4.026738838917265 3.4872994133127797 2.2349243741823326 11 | 3.413725224499884 3.676646947393695 1.9975636261366783 12 | 1.1280163769285942 2.0229675684044093 0.36318211792163646 13 | 2.98334347124799 1.873614917261834 0.8896183317494781 14 | 4.167476533108416 1.2168256710440142 0.8070894269448431 15 | 3.496306723308466 4.201913375059261 2.3381735959931573 16 | 4.311400053468631 1.89060323584226 1.2972953197455823 17 | 4.923525626300197 1.6239276738953978 1.2725153129808104 18 | 3.852633691941324 4.043294869383691 2.479209712698017 19 | 3.7637586518836175 3.428352748794046 2.053654585873535 20 | 4.376870555125498 3.883119266906834 2.7049831495411047 21 | 4.292645477326662 2.620261378734383 1.7901514290825273 22 | 4.747048521801844 2.2595140343249316 1.7070995414342498 23 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.14.4/input_original.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.14.4 1/2*k_spring*x**2 2 | ** k_spring x U 3 | 4.227175852873909 1.4623106468919924 4.519595874316855 4 | 1.0203046231693396 4.222930954801781 9.097620577705683 5 | 3.6724546362176556 3.5503431247719104 23.14552838371989 6 | 2.5203380362082526 3.7996498456714174 18.19348724829355 7 | 4.71994698815859 2.8324528606279804 18.933569878709353 8 | 2.235942727443416 2.246822762844178 5.6437570438768265 9 | 2.1929107039522138 2.489820770518747 6.797154207731442 10 | 2.51043439712696 4.226986706386635 22.427488630263593 11 | 2.026925069392104 1.1804316949703204 1.4121779379422694 12 | 4.801282260653573 1.2126101975283667 3.5299591118528784 13 | 3.991132714943572 2.132231480399606 9.072665010472525 14 | 3.9845358490317246 3.4245488068635246 23.36439087894742 15 | 2.5226156061693428 1.2444413603241085 1.9533045258131332 16 | 3.4543065692815653 3.9525742560713453 26.98304503424752 17 | 3.4149899740704814 1.7796712638004162 5.408029018577419 18 | 2.100890733167008 4.947946985266679 25.717191882042403 19 | 4.008622625334445 4.8996443260348155 48.11652863344335 20 | 3.5137055503870314 1.8374324837843656 5.93141278451502 21 | 2.8790345973517253 3.6329194874747666 18.99889902128435 22 | 3.5028948696234026 1.2295463419200567 2.647810571214627 23 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.41.16/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.41.16 h/(2*pi)*omega**3/(pi**2*c**2*(exp((h/(2*pi))*omega/(kb*T))-1)) 2 | ** omega T h kb c L_rad 3 | 4.896351688637736 1.3495966424346846 2.581215301793217 2.634789428715752 4.742020103642573 0.2838537249164182 4 | 2.794734799852152 2.2347338489036344 4.533722977028978 1.0087728639393125 3.960541400649183 0.06673927636230245 5 | 2.1080619738335207 4.042848423494994 4.634157064814613 2.827126411997422 3.554011870412752 0.3709368972661371 6 | 1.4081779546240862 3.080980235484714 2.6099976181701257 3.6809760154102924 2.0654339444056045 0.5255378921291682 7 | 3.395968053952934 1.4194995780365982 3.6781597508065693 2.2698530175246474 3.6130814837258387 0.20861074052977224 8 | 2.7557684169919328 4.295126249563207 2.937884741439158 2.1642202920858864 3.0685767882525448 0.7094369107397727 9 | 1.2307816420015278 1.4903157944262073 2.6568744950800114 1.4570744735531078 2.703312438771441 0.044635504619340086 10 | 2.2416968175340295 2.573181374321672 3.9355618703980366 4.597179201716981 2.0595200723002676 1.3369301115841137 11 | 4.9535399333968995 1.4111710968139386 1.7177047454363605 2.6753901622085143 3.19181555444645 0.7678118024242634 12 | 1.1466746544392676 4.873399242717257 1.8711119979966364 4.407093384005199 4.306702445592638 0.14733792013928174 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/III.19.51/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman III.19.51 -m*q**4/(2*(4*pi*epsilon)**2*(h/(2*pi))**2)*(1/n**2) 2 | ** m q h n epsilon E_n 3 | 3.0979598957037005 1.303731485854482 4.303607029467075 2.8716601000233393 3.7430247852134637 -0.0004960479641618123 4 | 1.4760387215921336 4.041136033152004 2.382799669983797 3.8831524028309565 4.4169225582021925 -0.030232779184065466 5 | 3.393252916080387 4.76108508330192 3.977058672681891 4.884615878302822 1.4774380947129186 -0.2668641712052492 6 | 1.7358503369649676 2.3030892013714284 1.3180847102467208 1.8036462779047482 4.448613404470642 -0.05615564715212845 7 | 2.8624241144008145 4.400920345490604 2.1503260798032193 4.387321365941187 3.407496597646199 -0.1314674663699125 8 | 3.500953274147879 1.7318310453162757 3.9314295627835807 2.0908642192763107 4.527909516415111 -0.003698947166572281 9 | 4.951216906447967 4.868576036943997 3.255582087025176 3.545984811428716 1.6134757366928136 -1.000412168768715 10 | 4.4468476659699405 3.169053627329134 3.190244150793754 2.176983208689414 4.583827361405152 -0.0604983682878781 11 | 4.50482112032644 1.4620387607084484 2.5622472728512324 4.998590294641419 1.777087794471497 0.0017974594098248706 12 | 4.088148891991333 1.3026801025797625 1.1173244312504438 4.575164381984156 2.471888419859487 -0.008099908829282257 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.27.18/input_original.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.27.18 epsilon*Ef**2 2 | ** epsilon Ef E_den 3 | 3.5718928534667316 4.2805367070805005 65.44777311103046 4 | 1.68382423349159 3.6902664005170025 22.930429723894573 5 | 2.939527896081522 4.087620275062647 49.11551195433692 6 | 1.7809999493477213 1.6792456457718608 5.02218109424809 7 | 2.4163153772059576 1.4429662684533242 5.031135054146526 8 | 3.4625378554847708 4.183807596618651 60.60911442584471 9 | 3.801113030780843 1.9666512250294828 14.701629643575991 10 | 2.7160051064253223 2.6294004189495097 18.777770970105287 11 | 4.831196976336576 3.024996431934939 44.20836754159933 12 | 1.5202756898981753 1.6702818387489256 4.241328090796068 13 | 4.6399987536670135 2.618192469403414 31.806875040213434 14 | 1.258675171530005 4.249433327923412 22.728758013320807 15 | 4.200173899321259 4.185048606568165 73.56449950780913 16 | 3.1214831868623785 2.755507695739346 23.70086827800931 17 | 1.5597684527904287 4.715073145784261 34.67663930352115 18 | 1.9912398091795156 1.7048674152337333 5.787683673782967 19 | 3.503417612521622 3.2084080550885203 36.06376836871588 20 | 3.0808377486997314 1.7342893978980358 9.266419671028416 21 | 2.911468109267282 2.688048156269476 21.03711238569818 22 | 3.9389396031753456 1.9422337955867803 14.858752034500258 23 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.8.31/input_original.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.8.31 epsilon*Ef**2/2 2 | ** epsilon Ef E_den 3 | 3.01614385758075 2.9252478831450257 12.904684868256126 4 | 3.426175729797511 4.80822836543474 39.60498115814279 5 | 3.7556876345093895 2.3115258390964137 10.033604393532054 6 | 3.6773700239576477 2.0616376531498775 7.815054496619262 7 | 1.119066413495967 1.012659756183543 0.5737899907622586 8 | 1.614907250626302 2.6164378813485603 5.52762338408472 9 | 3.185669246403984 4.225897619850289 28.445176300973316 10 | 3.4712217739338165 2.753995997029266 13.163730274623997 11 | 4.409251537021288 3.221437022667167 22.87884891683394 12 | 2.7731475668077636 1.1508686109744173 1.8365149790725281 13 | 2.5487198722458904 2.250387520502254 6.453669650707013 14 | 3.6496260493926234 2.7036859369925956 13.339232929680264 15 | 4.5212655231948595 4.008040217892491 36.315678164223485 16 | 4.6335788217382055 4.806058689177407 53.513665456996144 17 | 1.9520320777274374 4.733936219335137 21.87266791101936 18 | 2.2292640232403653 1.2062747135251275 1.6218995737991133 19 | 3.7095929143274216 1.7224977217444941 5.503178123354885 20 | 2.515800762070731 3.0051285006698127 11.359843371689397 21 | 2.570336560594721 3.5305731404225194 16.019554114273955 22 | 4.182215255199461 4.104235433055937 35.22418205233736 23 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.34.27/input_original.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.34.27 (h/(2*pi))*omega 2 | ** omega h E_n 3 | 2.7405979981075657 4.062162805344077 1.771833028637873 4 | 3.2962914165528767 3.618313421282251 1.898243468856816 5 | 3.5948864669400518 4.762464894796192 2.7248154817297627 6 | 4.163477498860295 1.4924486195079378 0.9889532047425267 7 | 2.0406365658514924 4.439922287765954 1.4419864013243973 8 | 3.6066535786658744 3.4725082142990646 1.9932778623825491 9 | 2.7920571370275984 1.0786908154926307 0.4793375084132685 10 | 3.7411052820940682 4.564278824232227 2.7176418939568348 11 | 1.5424573454486596 4.052319354787253 0.9948027074345713 12 | 1.326900076741262 4.974658216457483 1.0505617845834316 13 | 1.8979381788406617 1.737796912423006 0.5249297841638167 14 | 1.6644025555561317 1.7708029834567678 0.469081981027052 15 | 4.302595109045867 1.2974023717934853 0.8884342616737033 16 | 1.363623930884898 3.1964318322906595 0.6937135747012316 17 | 4.985633530158679 1.2517783668259566 0.9932713890904159 18 | 3.633564598959208 2.5971523984044973 1.5019326267779063 19 | 3.109450023454878 4.814990843652712 2.38286357313431 20 | 3.1164056918672336 2.9026770318270496 1.4397027592520046 21 | 1.0118944707805388 4.769647971611597 0.7681422995002939 22 | 1.5202961435260636 2.585603708693587 0.6256195153948203 23 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/Soln.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import static utils.VRAUtils.*; 8 | 9 | import utils.UList; 10 | 11 | public class Soln { 12 | public final int fno; 13 | public final int caseno; 14 | public final UList monoinds; 15 | public final double C0; 16 | 17 | public final double sqerr; 18 | 19 | public final Dumb dx; 20 | 21 | public Soln(Dumb dx, int fno, int caseno, double C0, double sqerr, Integer... monoinds) { 22 | this(dx, fno, caseno, C0, sqerr, UList.mkUList(monoinds)); 23 | } 24 | 25 | public Soln(Dumb dx, int fno, int caseno, double C0, double sqerr, UList monoinds) { 26 | this.dx = dx; 27 | this.fno = fno; 28 | this.caseno = caseno; 29 | this.monoinds = monoinds; 30 | this.C0 = C0; 31 | this.sqerr = sqerr; 32 | monoinds.forEach(ind -> myassert(ind >= 0)); 33 | monoinds.forEach(mind -> myassert(dx.monoInd(dx.monoList(mind)) == mind)); 34 | } 35 | 36 | public String toString() { 37 | return String.format("{%s %s %s %s %s %s %s}", sqerr, fno, caseno, FormCode.formStrs[fno], C0, 38 | monoinds.map(mind -> dx.monoList(mind)), dx.inpx.invarnms); 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.38.14/input_original.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.38.14 Y/(2*(1+sigma)) 2 | ** Y sigma mu_S 3 | 3.359331869243171 4.80025979800206 0.2895846036414021 4 | 3.4032068972605605 3.1666288030028524 0.4083885388119886 5 | 1.1305950769085094 1.8106069342448277 0.2011300589799984 6 | 4.137832287063912 4.544508797962241 0.37314687719358286 7 | 2.545174343743301 2.3877640897642687 0.37564220475582205 8 | 4.747291862075517 1.9889938944680985 0.7941287318889478 9 | 2.906774517667436 2.287562780082636 0.4420865413244475 10 | 4.473263468521113 1.3508201023446693 0.9514261563569992 11 | 3.407501899869233 4.199468171456868 0.32767792661710493 12 | 4.008532268576791 3.1519264475951343 0.4827316089496962 13 | 2.1058770968241385 2.372235210747438 0.31223757615017933 14 | 3.6975189992688993 2.1856896749309014 0.5803325773325834 15 | 2.363096866976872 4.325706959463142 0.22185757543211543 16 | 3.0641515336428884 1.1367572116668905 0.7170097559311699 17 | 3.8766096817410176 1.2625718706077995 0.8566821085554369 18 | 4.064393127013428 3.0163054548412616 0.5059865556433465 19 | 1.1177850892252787 2.912107546225865 0.14286226490675616 20 | 3.535025417142132 1.1361853529261694 0.8274154235492291 21 | 4.030517764382622 1.5393093985184838 0.7936247876556827 22 | 2.1726606718775634 4.178979518767235 0.20975760417707995 23 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.3.24/input_original.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.3.24 Pwr/(4*pi*r**2) 2 | ** Pwr r flux 3 | 2.743142283461401 3.824891688831995 0.014921077544296137 4 | 4.180582621985859 2.831018219042389 0.04150893763585614 5 | 3.799119633927765 3.0817983787041117 0.03183205385791795 6 | 2.86089853697888 2.4165559493105238 0.038985120634142376 7 | 2.9724273110502266 3.661018349143592 0.017648084227204305 8 | 3.9542333276133617 2.5105279129956806 0.049925488088154606 9 | 1.0264304957109718 2.1040363830606816 0.01845071463078366 10 | 2.39141181558755 3.1830265479260658 0.018782957894883857 11 | 2.460555241479979 3.2701351346664844 0.018310148063286857 12 | 1.8847407572245434 3.9950790870361312 0.00939703828041239 13 | 1.621887239090484 2.9614591734917672 0.014716322381067938 14 | 4.236548881834111 4.89814842304175 0.014052010830526993 15 | 2.10653422993182 1.503083865469427 0.0741980053791465 16 | 2.0828991305591114 4.9321960121434465 0.006813617022471493 17 | 3.4546888139358747 2.9502844020822705 0.03158430343586152 18 | 2.4537965910032087 3.542295140039768 0.015561777737468882 19 | 4.974073432905685 1.42101599906644 0.19602180920489592 20 | 3.4499489439749893 2.8532973035512397 0.033721644991878796 21 | 2.253750219765419 3.184319343506179 0.017687346669417126 22 | 4.535411147292651 1.9995033858115514 0.09027396364593897 23 | -------------------------------------------------------------------------------- /data/kepler/README.md: -------------------------------------------------------------------------------- 1 | # PARAMETERS 2 | 3 | ## SOLAR_SYSTEM 4 | 5 | | Entity | Label | Conversion | Units | 6 | | --- | --- | ---- | --- | 7 | | period | p | 1000 * 24 * 60 * 60 | period [days/1000] | 8 | | mass | M | 1.9885 * 10^30 | sun masses | 9 | | mass | m | 5.972 * 10^24 | Earth masses | 10 | | distance | d | 1.496 * 10^11 | distance [astronomical units] | 11 | 12 | 13 | ## EXOPLANETS 14 | 15 | | Entity | Label | Conversion | Units | 16 | | --- | --- | ---- | --- | 17 | | period | p | 1000 * 24 * 60 * 60 | period [days/1000] | 18 | | mass | M | 1.9885 * 10^30 | sun masses | 19 | | mass | m | 1.898 * 10^27 | Jupiter masses | 20 | | Distance | d | 1.496 * 10^11 | distance [astronomical units] | 21 | 22 | 23 | ## BINARY STARS 24 | 25 | | Entity | Label | Conversion | Units | 26 | | --- | --- | ---- | --- | 27 | | period | p | 365 * 24 * 60 * 60 | period [years] | 28 | | mass | M | 1.9885 * 10^30 | sun masses | 29 | | mass | m | 1.9885 * 10^30 | sun masses | 30 | | distance | d | 1.496 * 10^11 | distance [astronomical units] | 31 | 32 | 33 | # CORRECT FORMULA 34 | ``` 35 | p^2 = (4 * (pi^2)) * d^3 /(G * (m1 + m2)) 36 | ``` -------------------------------------------------------------------------------- /reasoning/output/keymaera/keymaera_files/langmuir/langmuir_2sites.kyx: -------------------------------------------------------------------------------- 1 | Definitions 2 | Real kads_1; 3 | Real kdes_1; 4 | Real S0_1; 5 | Real kads_2; 6 | Real kdes_2; 7 | Real S0_2; 8 | End. 9 | ProgramVariables 10 | Real Q; 11 | Real S_1; 12 | Real S_2; 13 | Real Sa_1; 14 | Real Sa_2; 15 | Real P; 16 | Real rdes_1; 17 | Real rads_1; 18 | Real rdes_2; 19 | Real rads_2; 20 | End. 21 | Problem 22 | ( 23 | /*\forall Q \forall S_1 \forall S_2 \forall Sa_1 \forall Sa_2 \forall P \forall rdes_1 \forall rads_1 \forall rdes_2 \forall rads_2 */ 24 | ( 25 | S0_1>0 & S_1>0 & Sa_1>0 & rads_1>0 & rdes_1>0 & kads_1>0 & kdes_1>0 26 | & S0_2>0 & S_2>0 & Sa_2>0 & rads_2>0 & rdes_2>0 & kads_2>0 & kdes_2>0 27 | & Q>=0 & P>0 28 | & S0_1 = S_1 + Sa_1 29 | & rads_1 = kads_1 * P * S_1 30 | & rdes_1 = kdes_1 * Sa_1 31 | & rads_1 = rdes_1 32 | & S0_2 = S_2 + Sa_2 33 | & rads_2 = kads_2 * P * S_2 34 | & rdes_2 = kdes_2 * Sa_2 35 | & rads_2 = rdes_2 36 | & Q = Sa_1 + Sa_2 37 | ) 38 | -> 39 | Q = (S0_1 * (kads_1 / kdes_1) * P)/(1+(kads_1/kdes_1) *P) +(S0_2 * (kads_2/ kdes_2) * P)/ (1 + ((kads_2 / kdes_2) * P)) 40 | ) 41 | End. -------------------------------------------------------------------------------- /data/FSRD_noise/II.11.28/input_original.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.11.28 1+n*alpha/(1-(n*alpha/3)) 2 | ** n alpha theta 3 | 0.635177604714694 0.8425425543109505 1.6513587880727503 4 | 0.32458626435950955 0.2972524380299063 1.09969023112693 5 | 0.7240765229232629 0.9953152939785029 1.9485537444606058 6 | 0.9882865843995291 0.3669709013615269 1.4125453598363718 7 | 0.9250596513947723 0.4132746768839176 1.4381376090438724 8 | 0.1222603342485088 0.41496870708353073 1.0516069589774735 9 | 0.7290573427587248 0.4171214772826114 1.338409540628605 10 | 0.307901496844619 0.24664395057396704 1.0779143669335687 11 | 0.7229801711955336 0.3051965773671912 1.2381684483759898 12 | 0.05280415332517441 0.02421184058031467 1.0012790308165085 13 | 0.6046671194363442 0.677460636628338 1.474418091561546 14 | 0.8052018820757527 0.33696663626885837 1.2983055358719298 15 | 0.6866559652450372 0.2926168260478855 1.2153503272712787 16 | 0.9259797703969357 0.8334647150317004 2.0390830027019398 17 | 0.7642093952201374 0.8462870393317796 1.8244826058914603 18 | 0.7743619889153864 0.23922022189939507 1.1974341478500687 19 | 0.09790749693155165 0.9561187941791127 1.0966262991103117 20 | 0.8967048395303444 0.7250967781144281 1.8301095989868683 21 | 0.9681616008680023 0.02568808766615005 1.0250781195287053 22 | 0.904667447168118 0.16975401104769672 1.1618564073723892 23 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.6.2/input_original.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.6.2 exp(-(theta/sigma)**2/2)/(sqrt(2*pi)*sigma) 2 | ** sigma theta f 3 | 2.564830477319424 1.0663712017158176 0.1426641647178555 4 | 2.8932169466669677 2.8713313517397934 0.08426643057964915 5 | 2.3150505694914836 1.6346393044277656 0.13430348728451916 6 | 1.4298257485557877 2.852188446260336 0.038156252873846254 7 | 2.293784737145745 2.82801732058014 0.08133585378750949 8 | 1.8318338304277022 2.367015484227646 0.09450618997302807 9 | 2.4725006088910035 2.7550933823781945 0.08672661374078769 10 | 2.9338809269763058 2.0363975519855537 0.10686917492400293 11 | 2.62399963248381 2.989921984861936 0.07943518691093042 12 | 2.574624460107822 1.228026616002313 0.13829117040793548 13 | 1.7359866296715916 2.1512730550075094 0.10663428503622473 14 | 2.7687668308068436 1.7648664295270515 0.11759691435064872 15 | 2.041822187122719 1.402249353365658 0.15433906763556254 16 | 2.615782420747607 1.7901571150665574 0.12067172997151068 17 | 2.0327745061238076 1.5584100945121449 0.1462833125630892 18 | 1.7951349015513909 2.499700535801477 0.08428700458657871 19 | 2.4288760007039913 2.4151972828093595 0.10018354919593529 20 | 2.986551282760586 2.2054587137012422 0.1017006169668638 21 | 1.4341166881987735 2.3352080845992296 0.07388770565175935 22 | 2.071338376447274 2.095138653997809 0.1154763198393376 23 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/DataLine.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import utils.Noise; 8 | import utils.UList; 9 | 10 | public class DataLine { 11 | //* which line in the file is it? 12 | public final int index; 13 | public final UList invals; 14 | public final double outval; 15 | 16 | public String toString() { 17 | return "DL(" + invals + " => " + outval + ")"; 18 | } 19 | 20 | public double getx(int i) { 21 | return invals.get(i); 22 | } 23 | 24 | public int sizex() { 25 | return invals.size(); 26 | } 27 | 28 | public UList subListx(int fromIndex, int toIndex) { 29 | return invals.subList(fromIndex, toIndex); 30 | } 31 | 32 | public DataLine(int index, UList invals, double outval) { 33 | this.index = index; 34 | this.invals = invals; 35 | this.outval = outval; 36 | } 37 | 38 | // public DataLine addNoise(Random rand, double add_noise_to_input) { 39 | // return new DataLine(invals, outval * 0.01 * (100 + add_noise_to_input * (2 * rand.nextDouble() - 1.0))); 40 | // } 41 | 42 | public DataLine addNoise(Noise noise) { 43 | double ns = noise.get_normal_sample(); 44 | // printf("NOISE %s%n", ns); 45 | return new DataLine(index, invals, outval + ns); 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.11.19/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.11.19 x1*y1+x2*y2+x3*y3 2 | ** x1 x2 x3 y1 y2 y3 A 3 | 1.6823171277495557 2.849193436404849 2.5054347013361986 2.3070123120660915 2.3244568918176967 3.446585611571099 19.20609979321429 4 | 2.5578936842881257 4.217507332287159 1.4865819586974656 3.0779904715962267 1.9330204740342571 2.922254910611023 20.209059403792498 5 | 4.705817189102271 1.9291615864453049 3.417901148344694 1.1873576896206388 4.170084880306659 2.5100574262159516 22.244487175491233 6 | 2.485279864691045 3.6175735047585014 3.6263825757187904 3.767692901490751 2.654793697325933 2.99073812213833 30.275225480336747 7 | 4.804964590171448 4.133495018858154 1.7607699624900714 1.6679028671726384 3.5415152973403026 4.138948961543161 29.608904027643728 8 | 4.395742238402743 4.8826376078614535 4.57114105848809 4.105260718708454 2.087472982520872 2.980581320117041 41.6748313803644 9 | 1.1743936018396393 2.047908812353544 1.0135117053549414 3.4378754518643913 3.3767803097602114 4.187458362365703 15.210218089778568 10 | 3.510098031918455 4.817364343962854 2.2861927524386503 3.708389629580966 2.5204147059568864 2.523384512022342 30.88616902650121 11 | 2.550281158637876 1.197951909775318 2.934659929591128 1.6272588623423574 3.4802455759236084 1.6978787573279601 12.983951407566819 12 | 2.933625991553406 2.3561026191798407 4.256450507994014 2.8916032007489196 1.3204197319048405 2.289442751221438 21.6824775089172 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.40.1/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.40.1 n_0*exp(-m*g*x/(kb*T)) 2 | ** n_0 m x T g kb n 3 | 3.4345164328396507 2.566120533468647 1.18148717336731 3.884228322188393 2.3066337555200915 3.385173810013774 2.0289602345223203 4 | 3.160252557864872 1.9515852899525141 1.7137371319748578 2.900302319474255 2.590081535794371 1.9854957650689853 0.7057702330026872 5 | 4.088053946204761 3.1132593164792355 2.738591351691266 2.548875163956465 3.9735030709112635 1.5108446603249281 0.005224268614232061 6 | 2.8941864776478967 2.422790300825818 1.713609090675973 4.84267135074305 3.87301319108983 1.6202660104512097 0.36202807191594283 7 | 4.615306436394276 4.899764048876407 4.44257833635382 4.13598563918104 2.8922139847689285 3.244335805517128 0.04084779149902258 8 | 2.2370776299496704 3.0159007744397317 4.2885234134782095 3.304927111903606 4.077012152641011 1.0256016212114063 0.009099813469259308 9 | 1.9370190341088858 4.71200685859591 4.769136455891333 2.7635330092157226 3.205178498163346 3.4700088102679234 -0.006370548574558473 10 | 1.1372799527621784 1.0714650476686938 3.838442276525451 1.75045420459319 3.6648816866910963 1.9973702545559204 0.016968748232428523 11 | 3.7733184293406588 3.544086352515932 2.6433979734624713 3.196122178129473 3.3392073056201577 2.4136461335622306 0.06648305855607306 12 | 4.630338989558059 3.6394552459771217 2.0952550165505412 3.9201573477148726 3.014904139237588 1.1221554011618662 0.018796564636348535 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/II.6.15a/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman II.6.15a p_d/(4*pi*epsilon)*3*z/r**5*sqrt(x**2+y**2) 2 | ** epsilon p_d r x y z Ef 3 | 2.8033987761570813 1.1540517043145126 2.97018167616876 2.642675633037137 2.491100163674006 1.1516320317449853 0.004627830224531065 4 | 2.5482677635946365 2.5883195983253513 1.1997293603483838 1.9734874014901758 2.1756629082796013 2.775605955089288 0.7953566091687322 5 | 1.3299942550141393 1.5292032270908227 2.0421789661859493 1.4399591063547552 2.251141817050577 2.994440196296928 0.06388899942343713 6 | 1.4975989298685775 1.2152944280963418 1.2610739897429157 1.9531343492944941 2.6283941749110413 2.1226935808854295 0.4206565693384674 7 | 2.2727851218193615 1.4775682230100995 2.3093649773315343 2.1498245083322685 1.9569579549137683 2.415892076168384 0.013108430047106868 8 | 2.7323534119713564 2.3503771464718275 2.713921954514115 2.4368841432351664 2.160514408561185 2.0266355222398915 0.0054081976872086875 9 | 2.029511430816572 2.3643516599721557 1.1614565804454824 2.318898687465147 2.955800151697461 1.5455894371481331 0.7687171931028716 10 | 2.209239696411648 2.5753867561669637 1.5993217498368058 2.5620053240325933 1.8996402659346232 2.2640598276016 0.19461730038735814 11 | 1.6975329116410152 2.58945917517702 1.6487312334295188 1.7080424206592528 1.4217878289288783 2.4301244575194945 0.17290865788659204 12 | 2.504835444827136 2.122677575740796 1.468723226954737 1.5347555747253767 2.78733069035453 2.197583088448313 0.20207316815789664 13 | -------------------------------------------------------------------------------- /data/FSRD_noise/I.32.17/input.dat: -------------------------------------------------------------------------------- 1 | # Feynman I.32.17 (1/2*epsilon*c*Ef**2)*(8*pi*r**2/3)*(omega**4/(omega**2-omega_0**2)**2) 2 | ** epsilon c Ef r omega omega_0 Pwr 3 | 1.6072378954515156 1.387905224409736 1.3420822386412277 1.5948994554146085 1.188837328075321 4.475357446544432 0.23408565519058835 4 | 1.1255326501291614 1.2625075613912682 1.4277555546968776 1.019020298128009 1.684957870271374 3.6496399302790588 0.9004889066115582 5 | 1.5488551138136923 1.4765332063129093 1.4014035869226895 1.3541162107053433 1.9658803473779294 4.582826599222031 1.7745156776793631 6 | 1.7224535434823696 1.348558946330448 1.3161571935093672 1.7234644747631656 1.9753490995947174 4.495354011665681 2.8234476099932935 7 | 1.1518252604960137 1.7868477578871695 1.1811661553616881 1.9623139043342301 1.309796268051487 3.2575315729418275 1.755038647363711 8 | 1.356296577407149 1.7074046328345047 1.3575728487744843 1.7093164797126974 1.9211535981241918 4.800290760991449 1.9439509181392194 9 | 1.6765699437873116 1.978881994942665 1.590597913581636 1.3390608759726612 1.3344321825252128 3.7011071569474083 1.3855814106000663 10 | 1.5071125258743647 1.8413824762560194 1.8091585165956579 1.668985891664371 1.1366544370783953 3.533017621793428 1.4159005346683688 11 | 1.8157450635667503 1.8530777084852026 1.943680358624981 1.778580423688517 1.8856202591106048 4.284172536233704 9.776421240757124 12 | 1.9546652769377433 1.6546610212910324 1.3333054847144958 1.6442754151143442 1.3989321738401848 3.5492443034448047 2.178179535214052 13 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/utils/SSLine.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package utils; 6 | 7 | import static utils.VRAFileUtils.*; 8 | import static utils.VRAUtils.*; 9 | 10 | import java.util.List; 11 | 12 | public class SSLine { 13 | public final String ssName; 14 | public final int lineInSpreadsheet; 15 | public final String line; 16 | public final String[] slots; // old code 17 | public final List cells; 18 | public final Boolean remapped; 19 | 20 | public String toString() { 21 | return "SSL(" + lineInSpreadsheet + "," + line + ")"; 22 | } 23 | 24 | public String fileAndLine() { 25 | return ssName + ":" + lineInSpreadsheet; 26 | } 27 | 28 | static String[] trim_all(String[] ss) { 29 | String[] ss2 = new String[ss.length]; 30 | for (int i = 0; i < ss.length; ++i) 31 | ss2[i] = ss[i].trim(); 32 | return ss2; 33 | } 34 | 35 | public SSLine(String ssName, String line, int lineno) { 36 | this.ssName = ssName; 37 | this.line = line; 38 | this.slots = trim_all(cvs_split(line)); 39 | this.cells = asList(line.split(",")); 40 | 41 | this.lineInSpreadsheet = lineno; 42 | this.remapped = false; 43 | } 44 | 45 | public SSLine(String ssName, String line, String[] slots, int lineno) { 46 | this.ssName = ssName; 47 | this.line = line; 48 | this.slots = trim_all(slots); 49 | this.cells = asList(line.split(",")); 50 | 51 | this.lineInSpreadsheet = lineno; 52 | this.remapped = true; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /symbolic-regression/emf/src/emf/RunResult.java: -------------------------------------------------------------------------------- 1 | // © Copyright IBM Corporation 2022. All Rights Reserved. 2 | // LICENSE: MIT License https://opensource.org/licenses/MIT 3 | // SPDX-License-Identifier: MIT 4 | 5 | package emf; 6 | 7 | import utils.UList; 8 | 9 | public abstract class RunResult { 10 | public final BaronJob baronJob; 11 | 12 | public final boolean max_time_exceeded; 13 | public final boolean infeasible; 14 | 15 | public final boolean heuristic_completion; 16 | 17 | public final boolean isPresent() { 18 | // printf("ISPRES? %s %s%n", !(this instanceof RunResultError), baronJob.expr); 19 | 20 | return !(this instanceof RunResultError); 21 | } 22 | 23 | public static int someSolutionFound(UList resout) { 24 | return resout.findFirstIndex(s -> s.startsWith("The best solution found is:")); 25 | } 26 | 27 | public static boolean heuristicCompletion(UList output) { 28 | return output.some(s -> s.contains("Heuristic termination")); 29 | } 30 | 31 | public static boolean resultInfeasible(UList output) { 32 | return output.some(s -> s.contains("Problem is infeasible")); 33 | } 34 | 35 | public RunResult(BaronJob baronJob, UList output) { 36 | this.baronJob = baronJob; 37 | 38 | this.max_time_exceeded = output.some(s -> s.contains("Max. allowable time exceeded")); 39 | // Optional preproc_val = output 40 | // .findFirst(s -> s.contains("Preprocessing found feasible solution with value")); 41 | this.infeasible = resultInfeasible(output); 42 | 43 | this.heuristic_completion = heuristicCompletion(output); 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /data/FSRD_noise/generate_noise.py: -------------------------------------------------------------------------------- 1 | #import csv 2 | import numpy as np 3 | import sys 4 | import math 5 | 6 | dirname=sys.argv[1] 7 | infilename=dirname+"/input_original.dat" 8 | outfilename=dirname+"/input.dat" 9 | y_rmsfilename="y_rms.dat" 10 | 11 | noiselevel = 0.01 12 | npoints = 10 13 | 14 | # read input file 15 | header = [] 16 | body = [] 17 | i = 0 18 | for line in open(infilename): 19 | if i < 2: 20 | header.append(line) 21 | elif i < npoints + 2: 22 | listwords = line.split() 23 | body.append(listwords) 24 | else: 25 | break 26 | i += 1 27 | 28 | # compute rms 29 | n = len(body) 30 | y = [0.0] * n 31 | sum = 0.0 32 | for i in range(n): 33 | temp = float(body[i][-1]) 34 | sum += temp**2 35 | y[i] = temp 36 | y_rms = math.sqrt(sum / n) 37 | 38 | # create noise 39 | mu = 0.0 40 | sigma = noiselevel * y_rms 41 | sample = np.random.normal(mu, sigma, n) 42 | print("sigma = ", sigma) 43 | print("sample = ",sample) 44 | 45 | # add noise to y values 46 | for i in range(n): 47 | temp = y[i] + sample[i] 48 | body[i][-1] = str(temp) 49 | 50 | 51 | # write output file 52 | print(header[0]) 53 | print(header[1]) 54 | 55 | for x in header: 56 | print(x) 57 | 58 | for x in body: 59 | print(x) 60 | 61 | f = open(outfilename, "x") 62 | f.write(header[0]) 63 | f.write(header[1]) 64 | for x in body: 65 | temp = ' '.join(x) 66 | temp += ' ' 67 | temp += '\n' 68 | f.write(temp) 69 | f.close() 70 | 71 | # write y_rms file 72 | f = open(y_rmsfilename, "a") 73 | temp = dirname + " " + str(y_rms) + '\n' 74 | f.write(temp) 75 | f.close() 76 | 77 | --------------------------------------------------------------------------------