Comments (2)
Possible one-liners would be
CONV_TAC $ REWR_CONV $ GSYM CONTRAPOS_THM
or
simp[Once $ GSYM CONTRAPOS_THM]
or
ONCE_REWRITE_TAC [GSYM CONTRAPOS_THM]
or
MATCH_MP_TAC $ iffLR CONTRAPOS_THM
But I'd usually do strip_tac >> CCONTR_TAC
, or CCONTR_TAC >> gs[]
, both of which would give you a goal that had p
and ~q
as assumptions, and F
as a goal. (This is what you'd get if you applied one of the one-liners above, and then followed it up with rpt strip_tac
.)
from hol.
This is how I found CONTRAPOS_THM
(and something similar) when I was in need of it:
> DB.match ["bool"] ``~q ==> ~p``;
val it =
[(("bool", "CONTRAPOS_THM"), (|- !t1 t2. ~t1 ==> ~t2 <=> t2 ==> t1, Thm)),
(("bool", "MONO_NOT"), (|- (y ==> x) ==> ~x ==> ~y, Thm)),
(("bool", "MONO_NOT_EQ"), (|- y ==> x <=> ~x ==> ~y, Thm))]: public_data list
from hol.
Related Issues (20)
- Alpha turns into a by accident
- Tools should report config files' location
- Building HOL4 will crash with latest Apple update of Xcode HOT 3
- Remove/Name Anonymous Rewrite for NUM_CEILING HOT 1
- Allow "reduced" info printing in emacs HOT 1
- Use rule-names instead of conjunctions in Inductive definitions HOT 1
- `Holmake: Exception: Subscript` when building HOL with -j12 or greater (but not -j11 or lower) HOT 5
- Limits on the number of jobs for Holmake? HOT 2
- SAT_ORACLE gives wrong answers HOT 11
- "intLib.ARITH_PROVE ``0n = x * Num 0i``" fails unexpectedly HOT 1
- intLib.{ARITH,COOPER}_PROVE can't prove certain goals HOT 5
- intLib.ARITH_PROVE raises exception `NotFound` HOT 1
- Ignore assumption directive for simplifier
- Add spec form to cover both `INST` and `SPEC` of theorems
- Add a q.subpat_{x_,}assum
- A broken generated HTML theory in non-Unicode mode HOT 2
- Moscow ML builds broken after `cv_translator` HOT 1
- General modern "quotation" syntax support
- Q.PAT_X_ASSUM returns bad errors
- C++ compilation failure of `src/HolSat/sat_solvers/zc2hs` on macOS HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hol.