Documentation

Linglib.Tactics.RSAPredict

RSAPredict — Verified RSA Predictions via Reflection #

The rsa_predict tactic proves ℝ comparison goals on RSA models by:

  1. Trying native_decide (handles ℚ, Bool, finite types directly)
  2. Reifying both sides to RExpr (rational expression trees)
  3. Evaluating via exact ℚ arithmetic or tree-based intervals
  4. Building kernel-verifiable proofs from the interval separation

All ~400 invocations across 38 study files use this reflection path exclusively.

Supported Goal Forms #

Usage #

theorem prediction : cfg.L1 u w₁ > cfg.L1 u w₂ := by rsa_predict

rsa_predict proves RSA prediction goals by RExpr reflection.

The tactic reifies both sides of a comparison to RExpr (rational expression trees), then proves the comparison via exact ℚ evaluation or tree-based interval arithmetic. The kernel verifies that RExpr.denote matches the original ℝ expression via iota-reduction.

Equations
Instances For