Skip to content

How does one select 10 premises in the environment during training time? #29

Answered by yangky11
brando90 asked this question in Q&A
Discussion options

You must be logged in to vote

As shown here:

CoqGym/ASTactic/agent.py

Lines 34 to 41 in 37f93ce

def filter_env(env):
"Get the last 10 toplevel constants"
filtered_env = []
toplevel_consts = [const for const in env['constants'] if const['qualid'].startswith('SerTop')]
for const in toplevel_consts[-10:]:
ast = sexp_cache[const['sexp']]
filtered_env.append({'qualid': const['qualid'], 'ast': term_parser.parse(ast)})
return filtered_env

, we simply take the last 10 environment terms. This is motivated by the fact that terms defined close to the proof are more likely to be useful. However, this is indeed a very poor approximation. We did this because considering all envir…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@brando90
Comment options

@yangky11
Comment options

Answer selected by yangky11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants