Creé un verificador formal de contratos EVM sin solver SMT

Descubre cómo creé un verificador formal para contratos EVM sin Z3 ni SMT. Prueba propiedades, obtén contraejemplos y nunca miente. Conoce el prover de DhrLang.

1 jul 2026 • 2 min read • Q2BSTUDIO Team

Verificación simbólica lineal de contratos EVM

La verificación formal de contratos inteligentes es una disciplina que trasciende la simple ejecución de tests unitarios. Bugs como condiciones de contorno incorrectas, invariantes que se rompen tras una mutación o errores de desbordamiento son frecuentes, pero difíciles de detectar si no se prueba exactamente el caso límite. Ante esta necesidad, un enfoque que combina ejecución simbólica con un procedimiento de decisión lineal, sin depender de solvers SMT externos, demuestra que es posible construir un verificador sólido y honesto: capaz de probar propiedades para todas las entradas posibles o entregar un contraejemplo concreto, y en caso de duda declarar 'no se sabe' en lugar de emitir un falso positivo. Esta honestidad es clave para herramientas de desarrollo serias, donde la confianza en el resultado es tan importante como la cobertura.

El núcleo de este verificador utiliza una forma lineal inmutable para representar términos (constante + coeficientes * átomos) y aplica eliminación de Fourier-Motzkin para decidir la satisfacibilidad del sistema. Lo interesante es que términos no lineales, como multiplicaciones de variables o accesos a mappings, se convierten en átomos opacos internados: si dos expresiones son estructuralmente idénticas, reciben el mismo identificador, permitiendo que el razonamiento lineal funcione incluso sin conocer el valor. Por supuesto, la herramienta tiene limitaciones: no modela bucles, alias de mappings ni llamadas externas; pero su decisión deliberada de no adivinar —veredicto UNKNOWN cuando no puede probar— la convierte en una opción fiable para equipos que buscan calidad y seguridad en sus despliegues. Para empresas que desarrollan aplicaciones descentralizadas o smart contracts, contar con procesos de ciberseguridad y verificación formal es un diferencial competitivo, especialmente cuando se integran con pipelines de integración continua alojados en servicios cloud AWS y Azure.

La experiencia de construir un verificador desde cero enseña lecciones valiosas sobre el modelo de ejecución de la EVM, el diseño por contratos y la ejecución simbólica. Pero más allá de lo técnico, el verdadero aprendizaje está en la disciplina de no sobreprometer: una herramienta que puede fallar honestamente es preferible a una que genera confianza falsa. En el ecosistema actual, donde la inteligencia artificial y los agentes IA empiezan a automatizar partes del desarrollo, la verificación formal sigue siendo un campo donde la lógica humana y la precisión mecánica deben trabajar juntas. Empresas como Q2BSTUDIO ofrecen servicios de software a medida, inteligencia artificial para empresas y servicios inteligencia de negocio con Power BI, ayudando a integrar estas prácticas avanzadas en entornos reales de producción.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.