In [1]:
import $cp.bin.`provingground-core-jvm.fat.jar`
Out[1]:
Fat jars work: Including a fat jar rather than local publishing has worked well.
In [2]:
import provingground._ , interface._, HoTT._, learning._
Out[2]:
In [3]:
repl.pprinter() = {
val p = repl.pprinter()
p.copy(
additionalHandlers = p.additionalHandlers.orElse {
translation.FansiShow.fansiHandler
}
)
}
In [4]:
val terms = FiniteDistribution.unif[Term](Type, Unit, Zero, Star)
Out[4]:
In [5]:
val typs = FiniteDistribution.unif[Typ[Term]](Type, Unit, Zero)
Out[5]:
In [6]:
val ts = TermState(terms, typs)
Out[6]:
In [7]:
val lp0 = LocalProver(ts, cutoff = 0.01)
Out[7]:
In [8]:
val nsT = lp0.nextState
Out[8]:
In [9]:
import monix.execution.Scheduler.Implicits.global
Out[9]:
In [10]:
val nsF = nsT.runToFuture
In [11]:
nsF.value
Out[11]:
In [12]:
val lp = LocalProver(ts).sharpen(10)
val thmsT = lp.theoremsByStatement
val thmsF = thmsT.runToFuture
In [13]:
import scala.concurrent._, scala.util._
val fu = Future(())(ExecutionContext.global)
val fut = fu.flatMap(_ => thmsF)
In [14]:
thmsF.map(_.entropyVec)
In [15]:
Future{Thread.sleep(1000); 5}(ExecutionContext.global)
In [16]:
Future{Thread.sleep(1000); Type ->: Type}(ExecutionContext.global)