-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBoothRun.lean
More file actions
22 lines (19 loc) · 791 Bytes
/
Copy pathBoothRun.lean
File metadata and controls
22 lines (19 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import Eureka
/-!
The full pipeline against a live LLM: template heuristics discover the base
corpus, then the booth asks the model (Claude on Bedrock) to propose beyond
the templates. Requires the `aws` CLI with Bedrock access; everything the
model returns is untrusted and passes through the same gate.
Run with `lake env lean BoothRun.lean`.
-/
open Lean Eureka.Runtime
#eval show MetaM Unit from do
let corpus ← discover
[identityH, commH, idemH, assocH, distribH, mixerH]
(generations := 2)
let corpus ← booth (Eureka.LLM.invoke Eureka.LLM.defaultConfig)
{ rounds := 3, perRound := 8 } corpus
IO.println ""
IO.println s!"final corpus ({corpus.facts.size} facts):"
for f in corpus.facts do
IO.println s!" {f.name} : {toString (← Meta.ppExpr f.stmt)}"