Documentation

Linglib.Tactics.RSAPredict

RSAPredict — Verified RSA Predictions via Reflection #

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

  1. Reifying both sides to RExpr (rational expression trees)
  2. Evaluating via exact ℚ arithmetic or tree-based intervals
  3. Building kernel-verifiable proofs from the interval separation

All invocations use this reflection path exclusively (no native_decide fallback).

Supported Goal Forms #

Usage #

theorem prediction : cfg.L1 u w₁ > cfg.L1 u w₂ := by rsa_predict
def Tactics.tacticRsa_predict :
Lean.ParserDescr

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
  • Tactics.tacticRsa_predict = Lean.ParserDescr.node `Tactics.tacticRsa_predict 1024 (Lean.ParserDescr.nonReservedSymbol "rsa_predict" false)
Instances For