coq


Coq: remove constructor from both sides of goal


Consider the following partial proof:
Theorem test : forall (n m : nat),
n = m -> S n = S m.
Proof.
intros n m H.
Executing until this point gives me the following:
1 subgoal
n, m : nat
H : n = m
______________________________________(1/1)
S n = S m
I would like to remove the Ss from the goal, obtaining the goal n = m. Is there a tactic that does this?
You are looking for the f_equal tactic.

Related Links

Defining a finite automata Coq
Proving even + even = even with mutual induction using tactics
Rewriting hypothesis with a more concrete expression
Coq rewriting using lambda arguments
How to rewrite a goal using function definition?
coqtop -lv (version 8.6) no longer displaying proof subgoals?
Coq beginner - Prove a basic lemma
How to do induction differently?
Is is possible to implement a Coq tactic that inspects a HintDb? If so, how?
Need help on proving proposition in Coq
Folding back after unfolding
Could coq derive this solution automatically? Can coq manipulate algebraic expressions when performing the search for a proof?
A special case of Lob's theorem using Coq
How can I implement a coq tactic that iterates over the hypotheses?
How can I automate counting within proofs in Coq?
How to get data from an inductive type Coq

Categories

HOME
google-chrome-extension
multithreading
server
path-finding
appx
syntax
mean-stack
cvs
setup-deployment
google-oauth
elm
adobe-analytics
fancybox-3
user-input
nstableview
resize
flask-wtforms
ups
contextmenu
lucene.net
object-detection
cloudhub
kudan
php-openssl
trading
one-to-many
pingfederate
traffic
tooltipster
social-media
fifo
libuv
libssl
unboundid
instant-messaging
microsoft-chart-controls
webtest
repo
http-referer
hexo
ios5
restlet
serve
neuroscience
azure-ml
mesos-chronos
gulp-sourcemaps
jvm-languages
nomethoderror
sencha-touch-2.3
angular2-meteor
scorm
youcompleteme
qsslsocket
tropo
imanage
orthogonal
smart-table
or-tools
url-masking
file-writing
asp.net-4.5
moveit
prettytensor
captivenetwork
php-internals
system.management
hsv
separator
qtableview
jms2
lemon
retina
content-length
android-listview
cakephp-3.1
mono-embedding
operation
mmc
p2
javax.mail
cdt
relocation
fpml
codeigniter-routing
internet-connection
rdl
rebol3
kgdb
mechanize-ruby
undefined-reference
oracle-warehouse-builder
gridfs
ftps
ember-app-kit
coderush
osql
postgresql-performance
spyware
invite
servicehost
calling-convention
iphone-web-app
telerik-scheduler
remember-me
google-friend-connect
forums
substrings
iweb
libs
phonon
msdev
geneva-server
multiple-languages
3gp
ntvdm.exe

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App