DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Data Engineering
  3. Data
  4. Covariant and Contravariant

Covariant and Contravariant

John Cook user avatar by
John Cook
·
Mar. 02, 13 · Interview
Like (1)
Save
Tweet
Share
3.28K Views

Join the DZone community and get the full member experience.

Join For Free

the terms covariant and contravariant come up in many contexts. an earlier post discussed how the terms are used in programming and category theory . the meaning in programming is an instance of the general use in category theory.

vector fields can be covariant or contravariant too. this is also an instance of the categorical usage, except the terminology is backward .

michael spivak explains:

nowadays such situations are always distinguished by calling the things which go in the same direction “covariant” and the things which go in the opposite direction “contravariant.” classical terminology used these same words, and it just happens to have reversed this: a vector field is called a contravariant vector field , while a section of t*m is called a covariant vector field . and no one had the gall or authority to reverse terminology sanctified by years of usage. so it’s very easy to remember which kind of vector field is covariant, and which is contravariant — it’s just the opposite of what it logically ought to be .

emphasis added.

in defense of classical nomenclature, it was established decades before category theory. and as spivak explains immediately following the quotation above, the original terminology made sense in its original context.

from spivak’s differential geometry, volume 1 . i own the 2nd edition and quoted from it. but it’s out of print so i linked to the 3rd edition. i doubt the quote changed between editions, but i don’t know.

- see more at: http://www.johndcook.com/blog/2013/02/28/covariant-and-contravariant/?utm_source=feedburner&utm_medium=feed&utm_campaign=feed%3a+theendeavour+%28the+endeavour%29#sthash.i7qloq9t.dpuf

Data structure IT POST (HTTP)

Published at DZone with permission of John Cook, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Apache Kafka vs. Memphis.dev
  • Explaining: MVP vs. PoC vs. Prototype
  • DevOps Roadmap for 2022
  • Handling Automatic ID Generation in PostgreSQL With Node.js and Sequelize

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: