I am new to Ethereum and smart contracts. I understand ethereum is modeled as a state machine and smart contracts work as "agents" to change the state through transactions. However, it seems rather impossible for a miner to verify the smart contract output unless he understands the logic encoded in smart contract.
Consider following examples
A smart contract that transfers the vehicle ownership from A to B. The local account runs this contract with enough gas and input as car registration number, from and to as data ( arguments ) to smart contract. What does miner verifies here? He / She doesn't have access to government vehicle registration database.
A smart contract calls 2 or 3 other contracts and depending upon the output from these contracts, determines the next steps say make a reservation. How miner is going to verify this output?
Please let me know.
Thanks.