Add some forward-only arithmetic operations and make rho render as LaTeX
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
parent
e7d3e840b3
commit
c77bb6f900
|
@ -68,4 +68,5 @@ metavariableToLatex (MkMetavariable s) =
|
|||
noQuestion = String.dropLeft 1 s
|
||||
in
|
||||
if String.startsWith "tau" noQuestion then "\\" ++ noQuestion else
|
||||
if String.startsWith "Gamma" noQuestion then "\\" ++ noQuestion else noQuestion
|
||||
if String.startsWith "Gamma" noQuestion then "\\" ++ noQuestion else
|
||||
if String.startsWith "rho" noQuestion then "\\" ++ noQuestion else noQuestion
|
||||
|
|
|
@ -158,6 +158,10 @@ builtinRules t =
|
|||
Call "int" [Var output] ->
|
||||
let rec i = interleave (suggest "BuiltinInt" (IntLit i) output) (lazy <| \_ -> rec (i+1))
|
||||
in rec 0
|
||||
Call "add" [IntLit i1, IntLit i2, Var output] ->
|
||||
suggest "BuiltinAdd" (IntLit (i1 + i2)) output
|
||||
Call "subtract" [IntLit i1, IntLit i2, Var output] ->
|
||||
suggest "BuiltinSubtract" (IntLit (i1 - i2)) output
|
||||
Call "float" [FloatLit f] ->
|
||||
MkProofTree { name = "BuiltinFloat", conclusion = t, premises = [] }
|
||||
|> pure
|
||||
|
|
Loading…
Reference in New Issue
Block a user