Arthur742Ramos avatar

path-tactics

Use ComputationalPaths path tactics to automate common RwEq goals (path_simp/path_auto/path_normaliz

提供方 Arthur742Ramos|开源

Path Tactics

Automated tactics for RwEq proofs.

Import

import ComputationalPaths.Path.Rewrite.PathTactic

Primary Tactics

TacticUse Case
path_autoTry first for any RwEq goal
path_simpUnit elimination, inverse cancellation
path_normalizeConvert to right-associative form
path_rflClose reflexive goals p ≈ p

Structural Tactics

TacticDescription
path_symmApply symmetry to goal
path_congr_left hRwEq (trans p q₁) (trans p q₂) from h : RwEq q₁ q₂
path_congr_right hRwEq (trans p₁ q) (trans p₂ q) from h : RwEq p₁ p₂
path_cancel_leftClose RwEq (trans (symm p) p) refl
path_cancel_rightClose RwEq (trans p (symm p)) refl

Quick Reference

GoalTactic
RwEq (trans refl p) ppath_simp
RwEq (trans p refl) ppath_simp
RwEq (trans (symm p) p) reflpath_cancel_left
RwEq (symm (symm p)) ppath_simp

Preferred Style

Use calc with notation:

calc p
  _ ≈ p' := rweq_cmpA_refl_left
  _ ≈ q := rweq_symm rweq_tt
path-tactics - 适用于 Claude Code 与 Cursor 的 AI 智能体 Skill | Agent Skills