Example, if we wanted to correlate the likelyhood obama's election with the price of pinto beans:
predictions: {'type':binary', 'txt':'obama wins the 2012 election', 'title':'obama'}, {'txt':'cost of pinto beans is >=80 cents in 2014', 'title':'pinto', 'type':'binary'}
prediction market: {'predictions':['obama', 'pinto'], 'functions':['swap drop', 'drop'], 'output states':['a', 'b', 'c', 'd'], 'algorithm':'(1, [a, b], (2, [a]), (2, [c]))'}
Example, if we wanted to make a stable-coin against the USD.
predictions: {'txt':'price of BTC in USD, within the range $100-$900', 'type':'scalar', 'title':'btc/usd'}
prediction market: {'predictions':['btc/usd'], 'functions':['800 * 100 + 1 swap /'], 'output states':['stable-coin', 'vol-coin'], 'algorithm':'(1, stable-coin)'}
Or maybe the function should look like this instead: '(/ 1 (+100 (* btc/usd 800)))'
No reason to prefer forth format over scheme format.