Skip to main content

Ethosoft-Math

Matematik çözümlerindeki her hesabı doğrulanmış bir araç çağrısına (tool-use) çeviren kütüphane. Turn math solutions into verified tool-use traces: 3 + 4 = 7 → add(3, 4) → 7.

import ethosoft_math as em

em.convert("Toplam 3 + 4 = 7 elma.")
# 'Toplam <tool_call>add(3, 4)</tool_call><tool_result>7</tool_result> elma.'

em.execute('solve("x^2 - 4 = 0", "x")')   # '[-2, 2]'
em.verify(em.convert(text))               # (cagri_sayisi, hatali_sayisi)

Neden

LLM'e hesabı "kafadan" yaptırmak yerine aracı çağırtmak için eğitim verisi üretirsin. Her çağrı, çevirme anında yeniden çalıştırılıp doğrulanır; tutmayan hiçbir şey çıktıya girmez. Veride yanlış olan eşitlikler (2 + 2 = 5) olduğu gibi bırakılır.

Protokol

<tool_call>FONKSIYON(arg1, arg2, ...)</tool_call><tool_result>SONUC</tool_result>
  • Operatörler: + add, - sub, * mul, / div, ^ pow, ! fact, √ sqrt
  • Gruplar: aritmetik, yüzde, sayı teorisi, üs/log, trigonometri, geometri, olasılık/istatistik, diziler (sum_range, arith_sum), cebir (solve, expand, factor, equal), analiz, lineer cebir, fonksiyon tanımlama (define).
  • Tam liste: ethosoft-math protocol

Komut satırı

ethosoft-math exec "mul(add(3, 4), 2)"
ethosoft-math protocol > PROTOCOL.md
ethosoft-math convert in.jsonl out.jsonl --field solution

Çalışma modları

Mod Ne yapar
convert(text) (varsayılan) Yalnızca doğrulanabilen eşitlikleri, denklemleri, eşitsizlikleri, toplamları çevirir
convert(text, aggressive=True) Ek olarak = içermeyen salt-sayısal işlemleri de çevirir (küçük ek kapsam, daha gürültülü)

Sınırlar

  • Python/PoT kodu içeren çözümlere dokunmaz.
  • İspat ve sözel anlatım satırlarında çağrı üretilmez (hesap yoktur).
  • Çeviri modelinden önce çalıştırılmalıdır; araç blokları çeviriden korunmalıdır.

Lisans: MIT

Metadata

Release files for Ethosoft-Math 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Ethosoft-Math 0.1.0
File Size Uploaded
ethosoft_math-0.1.0.tar.gz 27.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Ethosoft-Math 0.1.0
File Interpreter ABI Platform
ethosoft_math-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 55.5 kB

Release files / ethosoft_math-0.1.0.tar.gz

Download URL ethosoft_math-0.1.0.tar.gz
Size 27.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f73f1e99a84ea0509c3d2994ee2c98b55ccd836e19038046524d4e691f521dc5
BLAKE2b-256 checksum
How to use checksums
9c01e01c25728445678dbe8e1a631ef7cab950435de3fc89456e2dc5d920f87f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / ethosoft_math-0.1.0-py3-none-any.whl

Download URL ethosoft_math-0.1.0-py3-none-any.whl
Size 28.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da951bfbca25186d28b269d951a7b65491448e6882c1d74ac5df2b00aa507f82
BLAKE2b-256 checksum
How to use checksums
c454258c2d1f3eea8cf1f8451cfa6292cce530833c66fd79671edf441124a52e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release history Release notifications | RSS feed

0.4.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page