linyongver commited on
Commit
3c86889
·
verified ·
1 Parent(s): 86ff962

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -17
README.md CHANGED
@@ -15,11 +15,10 @@ import json
15
  def statement_translation_inference(informal_statement):
16
  return F"""
17
  I want you to translate a informal statment to formal statement in lean 4, the informal statement of the problem is:
18
- ```
19
  {informal_statement}
20
- ```
21
- The output is
22
- ```lean
23
  """
24
 
25
  model_name = "Goedel-LM/Goedel-Formalizer-32B-LeanWorkbookAnnotated"
@@ -35,19 +34,8 @@ sampling_params = SamplingParams(
35
  )
36
 
37
  data_list = [{
38
- "informal_statement": "Consider the terms of an arithmetic sequence: $-\frac{1}{3}, y+2, 4y, \ldots$. Solve for $y$.",
39
- "informal_proof": """For an arithmetic sequence, the difference between consecutive terms must be equal. Therefore, we can set up the following equations based on the sequence given:
40
- \[ (y + 2) - \left(-\frac{1}{3}\right) = 4y - (y+2) \]
41
-
42
- Simplify and solve these equations:
43
- \[ y + 2 + \frac{1}{3} = 4y - y - 2 \]
44
- \[ y + \frac{7}{3} = 3y - 2 \]
45
- \[ \frac{7}{3} + 2 = 3y - y \]
46
- \[ \frac{13}{3} = 2y \]
47
- \[ y = \frac{13}{6} \]
48
-
49
- Thus, the value of $y$ that satisfies the given arithmetic sequence is $\boxed{\frac{13}{6}}$."""
50
- }]
51
 
52
  model_inputs = [statement_translation_inference(idata["informal_statement"], idata["informal_proof"]) for idata in data_list]
53
 
 
15
  def statement_translation_inference(informal_statement):
16
  return F"""
17
  I want you to translate a informal statment to formal statement in lean 4, the informal statement of the problem is:
18
+
19
  {informal_statement}
20
+
21
+ The output is
 
22
  """
23
 
24
  model_name = "Goedel-LM/Goedel-Formalizer-32B-LeanWorkbookAnnotated"
 
34
  )
35
 
36
  data_list = [{
37
+ "informal_statement": "Consider the terms of an arithmetic sequence: $-\frac{1}{3}, y+2, 4y, \ldots$. Solve for $y$."
38
+ }]
 
 
 
 
 
 
 
 
 
 
 
39
 
40
  model_inputs = [statement_translation_inference(idata["informal_statement"], idata["informal_proof"]) for idata in data_list]
41