sazare / cheaplogic Goto Github PK
View Code? Open in Web Editor NEWanalyzer of the proof structure of a clause set by resolution and HOW TO WRITE THE WORLDS BY FOL.
analyzer of the proof structure of a clause set by resolution and HOW TO WRITE THE WORLDS BY FOL.
ビューがおかしいかどうかはわからないが、GLID: L31_R1のビューで
{X=x_C14, Y=y_C14}
になり、値を入れてconfirmすると
2019-07-21 10:08:45:ERROR:Main: ICMP(:x_C14, 8, :unify0sn)
2019-07-21 10:08:45:ERROR:Main: /go?op=postview&X=8&Y=2&how=confirm 500
2019-07-21 10:08:45:CRITICAL:Main: ICMP(:x_C14, 8, :unify0sn)
unify0(::Array{Symbol,1}, ::Symbol, ::Int64) at /Users/shin/Projects/github/cheaplogic/Prover/unify.jl:34
unify0(::Array{Symbol,1}, ::Expr, ::Expr) at /Users/shin/Projects/github/cheaplogic/Prover/unify.jl:67
unify1(::Array{Symbol,1}, ::Expr, ::Expr, ::Array{Symbol,1}) at /Users/shin/Projects/github/cheaplogic/Prover/unify.jl:215
unify(::Array{Symbol,1}, ::Expr, ::Expr) at /Users/shin/Projects/github/cheaplogic/Prover/unify.jl:302
🎂 x_C14とかが変数になっていないのではないか
this is the order
Non procedural, something special for prover.
Propと同じか
they are same lid?
とにかくconfirmしたらliteralは消えてしまう。
入力のなかった項目は、別のliteralで入力されることもあるが、そうでないこともあるのだから、未定義のままでFactになってしまい、confirmする人間の責任が大きすぎるような気がする。
これは成り立たないと思うが、どうか
作る
evalは自動的にground
May it be clear the result?
とはいえ、fp_substをclosure_substにすると関数名が長くなりすぎる。
かといって、closureにするとあのclosureとまぎらわしいのでだめ。
close_substでも長い
ということでおあずけ
いろいろ修正したので、一度、動作が正しいか確認しておく
vdata/vcirc003.cnf
sw=on, lamp=light,
then
pow=chaged, wire=conn
after [],
julia> printmgus(core)
R1:L3:L3=x/light;y/on;ERROR: BoundsError: attempt to access 4-element Array{Symbol,1} at index [5]
補足
good tool.
it may be good to enhance it.
cmd=open -a "Google Chrome.app" http://localhost:8000/go?op=start
run(cmd)
While testing, what functions are useful?
@test size(contradictionsof(core)) == 1
is available now. But more.
after new readcore, happen r1 occured.
it may be some variablename miss.
move global to Dict{session id, prover info}
prover info is the vars now global.
View should be treated as axiom.
But it has no lid.
How I treat it?
Now, web application control rules the flow.
But It makes the figure unclear. I feel so at least for me.
route("/go") is the web control between targets.
But I think eval loop , view or reso loop following.
今は、(x,y)<-(x, f(x)) があったとき、うかつにも(y)<-(f(x))にしてしまったので、xが定数扱いになっている。
呼び出し側でこの関数を使わないように修正したが、ちゃんと(x,y)<-(x,f(x))のままにしないとならぬ
View interface
i make it
don’t find same steps, but find same trials.
it is’nt a mgu.
it should be a literal pair.
An information of a proof is the whole mgu of the proof.
I need the mechanism for tests and proof analysis.
input litid のベクトルは普遍
NLPみたいなことできるか
kpreso.jlにたいして、reso.jlをreso.jl+unify.jl+αにした修正を反映
できるか?
resoの部分とkpunifyの部分とsapplyとかいろいろわける
気がする
it should treated as fail to resolution
For searching all proofs, how many poofs are needed, when terminate to searching are required.
How to estimate it?
A quantifier variable indicate a place.
Variables in formula refer the places.
In this context, substitution and mgu are how are interpreted.
なぜ? REPL上に複数のcoreを作っていたとき、同じ名前で置き換わっているかどうかわからなくなるので
・resoをresoとunifyにわけたあとで発見した
・条件が足りなくなっているのかも
出力変数を初期化するという対処だと、これが原因のとき間違った修正になる
clause setが複数あって、証明がずるずる進んでいかないようにしたほうがよくないか?
そのときのストッパーはCanoになるだろう。
about Genie
the order of vars is not the order of args.
automatic vars generation of cano is not correct.
data/rundata.jlを実行してできるcoreのresolvent数を比較すると、一部のdataでresolent数が異なる。
ml007の場合、naiveでは[]ができていないが、cheapではできている。
なぜだろうか
参照: docs/comparison_naive_cheap.txt
P(a=x,b=y) with -P(b=1,a=2) cant resolved
同じlitralのViewにもどってしまい、confirmしないと先に進まない。
あるliteralのViewでabortしたら、次はviewでもresoでも別のliteralにしてほしい
addnewclause()のコードがあちこちにある。
eval,view,resoの違いをはずして共通化する。
f(x) = f(x-1) の定義があるとIDaxiomと判定してしまう。
明示的にIDAxiomを指定すべきかな
symbol, number and more constants exists.
It allows to write something like Japanese joshi as keywords.
And I hope the keywords opens the other possible expression.
In this point of view, DB's SQL statement assumes many conditions over Logic. It seems interesting.
abortは何も消さない
その場合、どうやってprogressすればいいのか
それとも1つ[]がみつかればそれでいいのか
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.