coq


Combining two Coq hypotheses


So I have two hypotheses, one that is h : A -> B, and the other which is h2 : A. How can I get h3 : B to appear in my hypotheses?
pose proof (h h2) as h3.
introduces h3 : B as a new hypothesis,
specialize (h h2).
modifies h : A -> B into h : B -- this can be useful if you won't need h later, and symmetrically,
apply h in h2.
converts h2 : A into h2 : B.
Another (not very convenient) way would be to
assert B as h3 by exact (h h2).
That's what the pose proof variant is equivalent to.
Also, in a simple case like the following, you can solve your goal without introducing a new hypothesis:
Goal forall (A B : Prop), (A -> B) -> A -> B.
intros A B h h2.
apply (h h2).
Qed.

Related Links

Coq variable exists in list
What is required for Coq to generate an elimination combinator for an Inductive type?
How to capture parameters under universal quantification (using Modules? Sections?)
Proving for all elements of a list in coq
Coq adding a new variable instead of using the correct one
Simple identity in Coq
Unfold a notation within a scope
Error: Cannot coerce to an evaluable reference in coq
Proof in COQ that equality is reflexivity
How to express “there exists a unique X” in Coq?
Step by step simplification in coq?
Typeclass resolution and autorewrite
Need finding the right tactic over Int.lt
'else' in definitions - Coq
Solving equality / inequality in goal, coq code
Where did lt_index go?

Categories

HOME
twitter
winforms
zeromq
activiti
react-redux
binary-tree
ojdbc
yum
in-app-purchase
directx
medical
gitpitch
python-unittest
ssl-client-authentication
moonmail
workload-scheduler
footer
pugjs
reactive-cocoa
autocad-plugin
autoconf
jquery-ajaxq
web-sql
zurb-foundation-6
fish
facet
url-scheme
atlassian-crucible
framemaker
protovis
html5-fullscreen
catalog
wixsharp
devextreme
lto
libvpx
withings
twitch
xenforo
g-code
import-from-excel
termination
multipeer-connectivity
rdfs
idisposable
feeds
crypt
np-complete
url-masking
ctest
clang-static-analyzer
ios4
freelancer.com-api
javax.sound.midi
django-unittest
spidermonkey
interrupted-exception
e10s
block-device
xc16
angularjs-ng-click
fpml
markers
google-reader
gnu-smalltalk
.aspxauth
bulkloader
jquery-mobile-dialog
html-editor
jelly
factory-method
free-variable
pvrtc
cascalog
tridion-worldserver
regsvr32
assembly-loading
work-stealing
fireworks
deobfuscation
rfc1123
servicehost
.nettiers
ncqrs
compiler-specific
boost-smart-ptr
simpletest
premature-optimization

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